Code: Select all
For Counter = IValue To FValue
Begin
Instruction1;
Instruction2;
End;
FValue = final value
or:
Code: Select all
For Counter = IValue DownTo FValue
Begin
Instruction1;
Instruction2;
End;
Code: Select all
For BarNum = 0 To 9
Begin
HighPriceSum = HighPriceSum + High[BarNum];
End;
Code: Select all
For BarNum = 9 DownTo 0
Begin
HighPriceSum = HighPriceSum + High[BarNum];
End;
-------------------------------------------------------
Has this post been helpful to you?