MetaTrader 4 Gann Hexagon Formula below

#1
Hi Traderji

Would someone be good enough to write the MetaTrader 4 code or the Gann Hexagon Formula below
I do not know how to write the Square root and Power Functions MetaTrader 4 code
All of the brackets are necessary for precedence in the formula in MetaStock
Thank you in advance
Derek
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Pivot:=Highest(HIGH); {VISABLE ON THE CHART}
Decrement:=Input("Enter Decrement"1.5,12.5,2.5);
RING :=( Square root (9 + 12* Pivot))+3)/6;
PLOT HORIZONTAL LINE AT LEVEL :=(Power((((RING -Decrement)*6) -3),2) -9)/12;
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 
#2
The attached PNG Screen Shot is just to show how the Gann Hexagon is Calculated
I only wish to Plot a Single Horizontal Line on a MT4 Chart for the the Value From Gann Hexagon Formula
I am not trying to Plot (Display) the Full Gann Hexagon on a Metatreder 4 Chart
Derek
 

Attachments

Zerodha – Open Paperless Account

Open online account with Zerodha. Free delivery trading and Max Rs 20 for Intraday, F&O, Currency and Commodity Trading. Intraday High leverage with MIS, CO and BO.

Name:Phone:
Email:City:
State:
Are you a day trader?