I would like to calculate everage High - Low price of for example 2 former bars and save this price in variables.
Waht is the syntax to calculate average price?
Sample: ((High[1]-Low[2])+(High[2]-Low[2]))/2
I know I should create double variable "average"
if something..
{
average = ?????
}
What should be on right side??
Rgds
Czarek

Comment