Hello,
I have problem to use technical indicators class in standard library. I have scanned through this forum, but no one have similar problem as me.
Basically i want to use technical indicator from standard library, but my outputs are very strange.
Please take look my snippet code:
And here's the output:
Same thing happened when i use other indicator:
Output:
Do i miss something so that this class cannot be used? FYI, i am using MetaEditor 5.00 Build 489 (12 Aug 2011).
Please advice.
Thanks.
CiMA ciMA; ciMA.Create("EURUSD", PERIOD_H4, 10, 0, MODE_EMA, PRICE_CLOSE); ciMA.Refresh(-1); double dbGetMain_0 = ciMA.Main(0);
Hi uncleVic,
Thank you for your answer. It's working now. But i am curious what is '-1' means? It's not working when i replace '-1' with other value like '0' or '1'.
Refer to the manual, refresh method has passing parameter flags.
void Refresh( int flags //flags ) flags : [in] Timeframe update flags.
There is no further explanation what is flags , how to get flags and what kind of flags that is accepted by Refresh method.
If you don't mind, please give me pointer about this.
Thank you again.
Hi uncleVic,
Thank you for your answer. It's working now. But i am curious what is '-1' means? It's not working when i replace '-1' with other value like '0' or '1'.
Refer to the manual, refresh method has passing parameter flags.
There is no further explanation what is flags , how to get flags and what kind of flags that is accepted by Refresh method.
If you don't mind, please give me pointer about this.
Thank you again.
I'd gladly explain you what these flags are, but it will be hard to understand and will take a lot of time. Definitely you don't need it.
Flags are used by the CIndicators class to optimize data downloading for "multi-timeframes" indicators.
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
Hello,
I have problem to use technical indicators class in standard library. I have scanned through this forum, but no one have similar problem as me.
Basically i want to use technical indicator from standard library, but my outputs are very strange.
Please take look my snippet code:
And here's the output:
Same thing happened when i use other indicator:
Output:
Do i miss something so that this class cannot be used? FYI, i am using MetaEditor 5.00 Build 489 (12 Aug 2011).
Please advice.
Thanks.