Get your handles to iMA, iMA, and iCustom in OnInit().
Also, if you look at the example indicators supplied with MT5, you will see how they use prev_calculated and rates_total in a way so that all values are not copied and recalculated each time. An example is Examples\ATR.mq5.Anthony Garot:
Get your handles to iMA, iMA, and iCustom in OnInit().
Also, if you look at the example indicators supplied with MT5, you will see how they use prev_calculated and rates_total in a way so that all values are not copied and recalculated each time. An example is Examples\ATR.mq5.Hi Anthony,
thanks a lot! I also see another mate here, that do almost the same as i do, and it make my mind clear.
As a developer, i really know in theory, what i am doing wrong. But, at that time, i was really stuck.
So, againg, thanks a lot!
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,
i apreciate any help.
I am stuck, i think this is little problem, that i can't see because my inexperience, even to search about my problem.
I start a indicator, that plots on chart an arrow from technical indexes from 2 indicators.
It actually analizes the crossing of 2 EMA's and and index from a custom Brazilian Indicator, named RAFI.
Basically, if the 2 EMA is crossed and RAFI gives me the buffer 3 it plots the arrow, for buy or sell depending on the case.
But i think, that my inexperience, is causing me trouble.
It Works! But it let the princing movemento of opened candle very slow, and after i remove it. It just comes back in high speed, till the actual current price of the candle.
Can someone please, help me!
I just can't see wich part of code is my mistake.
i will let this indicator after some tests free.
Just help on this please?