I am trying to learn AmiBroker AFL. I have code from an indicator that I am trying to understand.
See my comments that begin with "//"
Please check my interpretation for each line of code.
I am lost on the 5th line of code.
// Set the variable "BarColor" equal to Color (Is "Color a variable also?)
BarColor = Color;
// Set the variable "Range" equal to the current bar's High minus the current bar's Low
Range = High - Low;
// Set the variable "Value1" equal to the current bar's Volume
Value1 = Volume;
// Set the variable "Value2" equal to the current bar's Volume multiplied by the current bar's calculated Range
Value2 = Volume * Range;
// Here is the line of code that I need help interpreting
Value3 = IIf(Range < Ref(Range, -1) OR Range > Ref(Range, -1), V, IIf(Range == Ref(Range, -1), V / Range , 0));
Thank you...
Don
See my comments that begin with "//"
Please check my interpretation for each line of code.
I am lost on the 5th line of code.
// Set the variable "BarColor" equal to Color (Is "Color a variable also?)
BarColor = Color;
// Set the variable "Range" equal to the current bar's High minus the current bar's Low
Range = High - Low;
// Set the variable "Value1" equal to the current bar's Volume
Value1 = Volume;
// Set the variable "Value2" equal to the current bar's Volume multiplied by the current bar's calculated Range
Value2 = Volume * Range;
// Here is the line of code that I need help interpreting
Value3 = IIf(Range < Ref(Range, -1) OR Range > Ref(Range, -1), V, IIf(Range == Ref(Range, -1), V / Range , 0));
Thank you...
Don