cavemann:
Hi Guys,
How can i display the macd open and close level values on a chart. Could someone give me an example of code to enter into the ".mq4" to achieve this..
Rgards
#property strict void OnTick() { Comment(StringFormat( "MACD open = %.5f\nMACD close = %.5f", macd(PRICE_OPEN), macd(PRICE_CLOSE) )); } double macd(ENUM_APPLIED_PRICE mode, int index=0) { return iMACD(_Symbol, PERIOD_CURRENT, 12, 26, 9, mode, 0, index); }
nicholi shen:
I will give it a try thanx buddy..
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
Hi Guys,
How can i display the macd open and close level values on a chart. Could someone give me an example of code to enter into the ".mq4" to achieve this..
Rgards