At this very instant, let's say two prices are calcualted and known. 1695.50 and 1680.50.
I want to achieve the following in code:
- When price moves up to 1695.50, enter long and 1680.50 acts as the stop loss.
- When price moves down to 1680.50, enter short and 1695.50 acts as the stop loss.
I tried using various order types but could not get it to work.
Please someone give me a hand.

Comment