People find the value of the CCI using a formula like this...
CCI = (Typical Price - 20-period SMA of TP) / (0.015 x Mean Deviation)
My question is I would like to know how to write the mq4 code to chart the Typical Price in the main window for the CCI values of +100 or -100.
1) Upper overbought line....
Typical Price = 20-period SMA of TP + 100 x (0.015 x Mean Deviation) <----
2) Lower oversold line
Typical Price = 20-period SMA of TP - 100 x (0.015 x Mean Deviation) <----
That way the overbought and oversold region would be dynamically represented in the main chart window.
Is anyone able to post mq4 formula for this problem? Thank you.
CCI = (Typical Price - 20-period SMA of TP) / (0.015 x Mean Deviation)
My question is I would like to know how to write the mq4 code to chart the Typical Price in the main window for the CCI values of +100 or -100.
1) Upper overbought line....
Typical Price = 20-period SMA of TP + 100 x (0.015 x Mean Deviation) <----
2) Lower oversold line
Typical Price = 20-period SMA of TP - 100 x (0.015 x Mean Deviation) <----
That way the overbought and oversold region would be dynamically represented in the main chart window.
Is anyone able to post mq4 formula for this problem? Thank you.