if(FirstTickOfBar){
if((High[1]>High[2] ) && (High[2]>High[3] ))
{HigherHigh.Set(1,1);}
else
{HigherHigh.
if((Low[1]<Low[2] ) && (Low[2]<Low[3] ))
{LowerLow.Set(1,1);}
}
from my strategy, i cannot see this 1 value
if(FirstTickOfBar)
{
Print("value of trending Trending(0).HigherHigh[1] " + Trending(0).HigherHigh[1]);
if((Trending(0).HigherHigh[1]==1 ) || ((Trending(0).LowerLow[1]==1 ))){
// Generates an alert
Alert("high or low", NinjaTrader.Cbi.Priority.High, "Reached threshold", "Alert1.wav", 10, Color.Black, Color.Yellow);
}
wheni print it, it seems to print the last prices even through on my indicator i can see it plotted on chart

Comment