I want to change the dataseries minutes based on the timeframe of the chart.
I want to change the profit target and stop loss based on values passed it.
Can I do this and when should I do this, since configure probably only fires once when a strategy starts.
else if (State == State.Configure)
{
AddDataSeries(Data.BarsPeriodType.Minute, 240);
SetProfitTarget("", CalculationMode.Pips, 250);
SetStopLoss("", CalculationMode.Pips, 50, false);
}
Thanks!!
Comment