| TradeStation Custom Programming Discuss projects, ideas, obstacles in programming with TradeStation. |
![]() | | Tweet | |
| | #1 | ||
| SetProfitTarget SetStopLoss How do I set a profit target and stop loss for long, and different target and stop loss for short? Right now, I call setProfitTarget and setStopLoss, and they set a global target and stop loss. Thanks | |||
| |
|
| | #2 | ||
![]() | Re: SetProfitTarget SetStopLoss Quote:
it will not get you an answer any faster.
__________________ Only an idiot would reply to a stupid post | ||
| |
|
| | #3 | ||
![]() | Re: SetProfitTarget SetStopLoss Quote:
map out how you want the logic to work, then code it accordingly.
__________________ Only an idiot would reply to a stupid post | ||
| |
|
| | #4 | ||
| Re: SetProfitTarget SetStopLoss I know the logic that I want to implement. I don't know enough abut EasyLanguage to make the right function calls to set different stops and profit targets. | |||
| |
|
| | #5 | ||
![]() | Re: SetProfitTarget SetStopLoss Quote:
http://www.traderslaboratory.com/for...uage-help.html
__________________ Only an idiot would reply to a stupid post | ||
| |
|
| | #6 | ||
![]() | Re: SetProfitTarget SetStopLoss Quote:
More less you can use something like this: Code: If marketposition>0 then begin Setstopcontract; setprofittarget(100); setstoploss(100); end; If marketposition<0 then begin Setstopcontract; setprofittarget(400); setstoploss(400); end; Linetrol Development | ||
| |
|
| | #7 | ||
![]() | Re: SetProfitTarget SetStopLoss Quote:
__________________ Only an idiot would reply to a stupid post | ||
| |
|
![]() |
| Thread Tools | |
| Display Modes | Help Others By Rating This Thread |
| |
| ∧ Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Different SetStopLoss and SetProfitTarget | dumpforjunk | Coding Forum | 0 | 08-17-2011 02:53 PM |