raviucla
New member
Hi,
Total newbie here. How can I write code that when I go long, I can have the stop loss automatically be placed when the current bar closes below the low of the previous candle. So for example, a long entry is taken at 9:32 a.m. eastern time. If at 9:40 a.m. eastern, we close below the 9:30 a.m.-9:34 a.m. candle, we exit that long entry as a trailing stop loss.
Thanks!
Total newbie here. How can I write code that when I go long, I can have the stop loss automatically be placed when the current bar closes below the low of the previous candle. So for example, a long entry is taken at 9:32 a.m. eastern time. If at 9:40 a.m. eastern, we close below the 9:30 a.m.-9:34 a.m. candle, we exit that long entry as a trailing stop loss.
Thanks!