As part of my strategy I want to use a manual exit instead of a stoploss so I can tag my exit. My thought was to use this:
//Stoploss
if (Close[0] == Position.AvgPrice - 35 * TickSize)
{
ExitLong("Stoploss", "Long");
}
This works eventually, but the market actually moves past (sometimes very far past) the 35 ticks then as it comes back comes back the Exit may get filled. Sometimes price passes though that -35 spot many times.
Oh I got it! Close[0] has to equal that spot. Maybe I just have to say < instead of ==?
Sweet that did it!
I'll post this anyway. Maybe it will help someone else.
Thanks
Comment