Error:
void OnTick() { string cookie=NULL,headers; double MA30 = iMA(NULL,PERIOD_CURRENT,14,0,MODE_SMA,PRICE_CLOSE);
the indicator handle (read the iMA help - it is of type 'int', not 'double') should be received ONCE and should be done in OnInit !!!.
Creating an iMA indicator handle, getting indicator values
Documentation on MQL5: Technical Indicators / iMA
- www.mql5.com
iMA - Technical Indicators - MQL5 Reference - Reference on algorithmic/automated trading language for MetaTrader 5
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
I am trying to do http post request for practicing. I am receiving http post on my node server. However, req.body returns undefined. How can I add MA value to the http post request in this case?