if (BarsInProgress == 1){
if(CurrentBar < 20) return;
if ( Trend !=1 )// if down trend then conditions to change trend
{
if(Closes[1][0] > Highs[2][1]+ TickSize){
highDataSeries.Set(Highs[1][0]);
lowDataSeries.Set(Lows[1][0]);
Trend = 1;
//Print(highDataSeries[0]);
//Print(lowDataSeries[0]);
}
}
Print(highDataSeries[0]);
Print(lowDataSeries[0]);
......

Comment