If the trades are not that long you can use barsinceentry as a lookback to get the lowest low over past 2 bars relative to the entry day
If barsinceentry>0 then
ExitLong("","",1,Lowest(Low,2,barssinceentry-1),stop,day)
end if
We have a new version coming up with let's you access entry day values by signal na,name. You can also use barssinceentryplus(SignalName) to do it by signal name. |