Im a new user. I would like to see a sample code for a stop trailing and stop loss.
1) The strategy I want to code uses 5 min bars and once it enters long a stop loss should be placed below the LOW of the entry bar.
If the trade goes ok , a trailing stop should be provided and the original stop loss canceled .
2) I would appreciate if you can show me an example of a stop using ATR:
like: close - ATR(5) etc etc
Thank you
Comment