Can someone please help me write a simple code - if last closed order was long go only short next time and if it was short go only long.
This is to avoid reopening a new postion when the TP or SL is hit while the trend opening signal is still true.
Many thanks.
This is to avoid reopening a new postion when the TP or SL is hit while the trend opening signal is still true.
Many thanks.