Find out which candles closed above the midline and below the midline?
-
Here I have 15 candles from one to 15
Each candle is one minute , I have calculated the midway between the 15 candles to be the center .
Now I want to know the number of candles that closed above the midline, and the number of candles that closed below the midline to find out the direction.
I made a variable for each candle for a minute .
But I could not figure out how to get the expert advisor to count the number of candles above the middle line and below the midline, based on which it will be buying and selling.
Can you help with that please?
https://fxdreema.com/shared/kmIpwCM5 -
@khalids222 This formula is wrong: (HIGHEST_ONETO15+LOWEST_ONTTO15/2)
It should be: (HIGHEST_ONETO15+LOWEST_ONTTO15)/2
-
@l-andorrà ok thank you
But how do I know how many deals 1 to 15 for 1M closed above the midline ? -
@khalids222 What midline? I don't see any in your project?
-
@l-andorrà I put the top and bottom 15 candles, and take the middle of them
I put the highest and lowest point of 15 candles, and i got in the middle of these candles Through highest+lowest/2
Now I want to know the number of candles that closed above the midline and the candles that closed below the midline. -
@khalids222 Ok. Now you will need a loop for that 15 candles segment. Once more I guess we need the help of our loop master, mr. Roar.
-
@l-andorrà @roar can you help me please?