Variables and Formulas for retracement levels
-
Hi,
I am trying to make my EA draw horizontal lines at the following percentage levels of the previous day:
(100, 66, 50, 30, 0 )I accomplished the following:
100 = Daily Bar 1 High
50 = Daily Bar 1 Median price
0 = Daily Bar 1 LowI tried Variable and formula combinations but I have had no luck with the 66 and 33 percent levels.
Below is what I accomplished so far.


This is the project...https://fxdreema.com/shared/rsEtYrKub
Thank you in advance!
-
@right-edge If this will help but, if you add high to low divide by 2, you get the 50 mark, so divide by 3 and you get the 33.33 mark, divide by 1.5 and you get 66.66 mark, add and divide and you should get all the levels you need.
-
@jstap Thank you so much for your reply. Unfortunately, I am still having issues. I created the 66 and 33 with the mathematical formula you suggested and I still cannot get the EA to plot the trend lines along side the 0,50, and 100. I don't know what I am doing wrong my friend! If you have any other suggestions please share and thank you again.
-
@right-edge Put this formula into a comment, this way you can see the number line would draw. If you use a calculator all numbers will match.