I am trying to code this in my strategy but want to figure out the correct way to do it. Basically, if long/short I want to move my stop order to break even + 1 tick if my current profit is currently at 15 ticks in profit. Then continue to move 1 tick for ever 3 tick that moves in positive direction.
This goes same for shorts.
if (Position.MarketPosition != MarketPosition.Flat )
{
if long () & (currently +15 ticks) then:
{
SetStopL(????) + 1 ?
}
if short () & (currently +15 in ticks) then:
{
}
}
How do i do this correctly?
Comment