Presently I have a system with the Stop Loss set up on the Strategy Wizard and as a percentage loss...therefore I have in:
- #region Variables
- protected override void Initialize()
- #region Properties
[GridCategory("Parameters")]
public double Stop_Loss
{
get { return stop_Loss; }
set { stop_Loss = Math.Max(0.0025, value); }
}
To achieve that would like to change the Stop Loss so that, when a position is Open it:
- Takes the Low/High of the last 5 bars
- Subtracts or adds the ATR(50)
Therefore, for example in a long position, the Stop Loss would be set as:
I have little programming knowledge and don't how how to change the code properly.
If you could provide the changes I need to do and indicate were on the code I need to paste the new code would be very appreciated.
many thanks in advance
Paulo Ribeiro

Comment