PureBytes Links
Trading Reference Links
|
How to prevent a round trip on a stops on a daily bar? I can't remember the
trick. Barssinceentry doesn't do it.
Here's a picture and some code:
http://www.gigascanner.com/002.gif
{if (in=0 or in=-1) then begin}
buy ("long") 10000/c shares value17 stop;
if (high >= value17) then in=1;
if (in=1 and barssinceentry>1) then exitlong
value17/(1+factor*AvgTrueRange(5)/100) stop;
if (low <= value17/(1+factor*AvgTrueRange(5)/100) and barssinceentry>-1)
then in = 0;
Thank you,
Phil
|