Stuck iCustom and CopyBuffer functions slow down the price movement on the chart.
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!
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?