
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
Hello, me too I'm trying to create SMA on price but I can't understand what I have to insert as "position" variable... (the first parameters).
Example: if I want a SMA 200 periods writing SimpleMA(?, 200, close) where close is native array of OnCalculate function
Whether I put zero (as positoin) it doesn't work, even because into the code there is
so 0-1 isn't possible...
Thanks in advance.
AND why don't you try to pass with the ima() function?
AND why don't you try to pass with the ima() function?
I'm trying but I can't understand what put as "position"!
I'm trying but I can't understand what put as "position"!
there is no "position" to give in ima()
iMA - Technical Indicators - MQL5 Reference - Reference on algorithmic/automated trading language for MetaTrader 5
I'm trying but I can't understand what put as "position"!
In MT5 you have to use the iMA part to get a handle , once , and then use the handle to request data
Here is one example
Hello everyone, I've recently started learning MQL5, and I wrote a simple code for iMA, but unfortunately, I keep getting Error 2. Can anyone guide me on where my problem might be?
note the comments regarding handles. check the comment above yours for OnInit.