Hi y'all, Does anyone know how to code easy language so that it places an order that reverses your position. Say I'm short one contract and hit a price where I want to reverse and go short. I'm trying to do it with an 'If market position = -1/1 then what?? how do you reverse or say buy/sell 2 contracts next bar at market?? Thanks for your help Indie
Indie there are four orders. If you are short and want to reverse, just use the term "BUY". To Ts this tells it to cover and buy.
Unless it's changed recently; 'Buy' and 'Sell' will automatically cover the outstanding short or long position, resp., and enter a new position in the new direction(I've heard it call 'flip the trade'). 'ExitLong' and 'ExitShort' can be used for stops or to go flat. Hope this helps.