I'm wanting to place a profit target and stop loss when I enter into the market.
I have been playing around with this and looking in the forum but I cant quite script it in the correct way.
- I want my profit target to = ATR20 on bar "0".
SetProfitTarget(????????????????)
- And I want my Stop loss to = Low of bar "0", -2 ticks.
SetStopLoss(??????????????????)
Can you please let me know how to script this and also let me know if it goes under Initialize() or OnBarUpdate()
Many Thanks,
Michael
Comment