I am trying to translate this part of TS code
ExCondL = Volume[NL3] crosses above WAverage(TriAverage(Highest(Volume, NL4), NL5), NL6);
EndofSess = false;
If DataCompression >= 1 and DataCompression <= 4 then
EndofSess = time = SessionEndTime(0, 1);
I wrote in NT the following but I think it is not correct
EndofSess = false;
ExCondL = CrossAbove(Volume[NL3],WMA( TMA(MAX(Volume, nL4), nL5), nL6),0);
if(BarsPeriod.BasePeriodType==PeriodType.Tick || BarsPeriod.BasePeriodType==PeriodType.Minute ||BarsPeriod.BasePeriodType==PeriodType.Day||BarsP eriod.BasePeriodType==PeriodType.Week ||BarsPeriod.BasePeriodType==PeriodType.Month)
{
if(now.TimeOfDay==this.EndFirstSession)
EndofSess=true;
}
Any suggestion?
thanks in advance
Comment