I had this code from NT7 which I'm trying to convert to NT8 and I think I just have a little bit left to go.
Here is the code:
if (SumABS > 0) DemarkREI = Sum / SumABS;
TDREI = 100*DemarkREI;
rei[0] = (TDREI);
if (IsRising(rei))
{
[B]if(!wasRising) Up.Set(1,rei[1]);[/B]
Up[0] = (TDREI);
wasRising=true;
}
else
{
[B]if (wasRising) Down.Set(1,rei[1]);[/B]
Down[0] = (TDREI);
wasRising=false;
}
Regards
Kay Wai

Comment