but try hard and always fail
can any one help?
thanks
protected override void OnBarUpdate()
{
if (CurrentBar < 1) return ;
if (High[0] < High[1] && Low[0] > Low[1])
ID[0] = 1 ; // inside
else if (High[0] > High[1] && Low[0] < Low[1])
ID[0] = -1 ;// outside
else
ID[0] = 0 ; // neither
}
Comment