tommyjames Posted February 28 Report Share Posted February 28 Hi, I have a saved order that moves my stop to break even. The stop price is "PosPaid". Is there a way to say PosPaid +.02 if long and PosPaid -.02 if short in the same order? My current saved order is attached. Thanks Quote Link to comment Share on other sites More sharing options...
Mike Medved Posted February 28 Report Share Posted February 28 Sure. Instead of PosPaid there, do this: Pos>0?PosPaid+0.02:PosPaid-0.02 or it will also take IF Pos>0 THEN PosPaid+0.02 ELSE PosPaid-0.02 inline conditionals are pretty handy. They can also be stacked - for example if you have no position, you want the price to be Bid? Then you do Pos>0?PosPaid+0.02:Pos<0?PosPaid-0.02:0 Quote Link to comment Share on other sites More sharing options...
tommyjames Posted February 29 Author Report Share Posted February 29 Thanks! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.