deyron: Good afternoon. I have solved the issue of passing data from the indicator through the buffer to the Expert Advisor with some crunch. But again a mishap, the passed value comes with a delay of several bars ((. In the indicator, from the place where I pass the flag to the buff (0,1,-1) I build trend lines in the indicator using these values. In the indicator everything is rendered as it should be, but the same calculations in the Expert Advisor draw the levels with a delay of several bars. What may be the problem? Ask me a vector code.
Buff_Sign[];
int init(){SetIndexBuffer(5,Buff_Sign);}
int start(){
Buff_Sign[i]=-1;
/*Условие для Crit: Crit=0 Crit=1 */
Buff_Sign[i]=Crir; //это значене уходит в буфер
if(Buff_Sign[i]==0 || Buff_Sign[i]==1){/* расчет для тренд. линий */ }}
in the EA:
double Sign=iCustom(Symbol(),0,"Sign",5,5);
if(Sign==0 || Sign==1){/* тот же самый расчет для тренд. линий только берется max и min*/ }
Dimka-novitsek: Good day! Could you please tell me if you can switch timeframes in the indicator?
Dima! I'll give you the link, of course, but don't blame me when all sorts of nonsense and glitches start to occur. This is not an standard solution for mql. Software switching of TFs
Can you tell me if there are any standard functions used in MQL4. For example, if there is an iStochastic, is there any way to find out how the firm has described them?
paladin80: Can you tell me if there are any standard functions used in MQL4. For example, if there is an iStochastic, is there any way to find out how the firm has described them?
Good afternoon. I have solved the issue of passing data from the indicator through the buffer to the Expert Advisor with some crunch. But again a mishap, the passed value comes with a delay of several bars ((.
In the indicator, from the place where I pass the flag to the buff (0,1,-1) I build trend lines in the indicator using these values. In the indicator everything is rendered as it should be, but the same calculations in the Expert Advisor draw the levels with a delay of several bars.
What may be the problem? Ask me a vector code.
Please give me the code
In the indicator:
Buff_Sign[]; int init(){SetIndexBuffer(5,Buff_Sign);} int start(){ Buff_Sign[i]=-1; /*Условие для Crit: Crit=0 Crit=1 */ Buff_Sign[i]=Crir; //это значене уходит в буфер if(Buff_Sign[i]==0 || Buff_Sign[i]==1){/* расчет для тренд. линий */ }}in the EA:
double Sign=iCustom(Symbol(),0,"Sign",5,5); if(Sign==0 || Sign==1){/* тот же самый расчет для тренд. линий только берется max и min*/ }The end result is:
That's about it. What else to add?
Good day! Could you please tell me if you can switch timeframes in the indicator?
Software switching of TFs
Good day! Could you please tell me if you can switch timeframes in the indicator?
Good afternoon.
This is how I draw the line in the indicator
I try to remove it like this
ClearVLine();
it's not deleting, what's the problem?Good afternoon.
This is how I draw the line in the indicator
I try to remove it like this
ClearVLine();
It doesn't clear, what's the problem?Can you tell me if there are any standard functions used in MQL4. For example, if there is an iStochastic, is there any way to find out how the firm has described them?
https://www.mql5.com/ru/articles/1422