I have been trying for a while now to set my stop loss to the low of the entry candle (minus one tick), but without success. I've seen this in many posts, but haven't been able to figure out the solution. Most of my trades are stopped right at the bar that they are initiated. If there were some way to specify that I don't want to stop right at the entry bar (because I'd like to enter in the close - more about that towards the end), it would work, I think.
I have tried many many different ways, so I don't even have one specific snippet of code I'd like help with. I just want to set my stop below the low of the entry candle.
Another thing that's a bit related (but I know it's happening, so I can get around it (provided I can set my stops right)). The backtests give the entry on the OPEN of the candle AFTER my condition has happened, and not right in the close where it happens. This occurs with any strategy, for example buying if close[0] > SMA(21).
Thanks in advance,
hddietrich
Comment