1) The condition "line1[1]>line2[1]" is not sufficient for the "two lines crossing" signal. Надо "линия1[1]>линия2[1]&&линия1[2]<линия2[2]"
2) The parabolic should not be compared with Open, but with High and Low. Please note that you calculate it on zero bar and take Open[1] from the first bar.
Thank you for your attention to my questions. I did what you advised. But now the EA has stopped trading altogether. Perhaps, I have understood you wrongly and made something wrong, or there are some other errors in the code?
Please help me to understand it, I really want to make this EA trade.
Edit: A big request: if it's possible, please form your answer in a code form. Don't forget that I'm still a complete "dummy" in programming... I don't want to have to ask you again.
Somebody please explain the Ilan 1.4 code to me. I mean, I want to change it for me a little bit, but other people's code does not understand at all. Can someone explain me, at least block by block, what is done?
I don't have enough brains for realization - I've been familiar with MQL4 for only one week.
If anyone can help me, I'd be very grateful, if you can write to delit-0202@rambler.ru
And then, how to determine the trend in an EA? At least a general one, maybe even a lag one. How would one do it?
Thank you for your attention to my questions. I did what you advised. But now the EA has stopped trading altogether. Maybe I misunderstood you and did something wrong, or there are some other errors in the code?
At the moment the code looks like this:
Please help me to understand it, I really want to make this EA trade.
Edit: A big request: if it's possible, please form your answer in a code form. Don't forget that I'm still a complete "dummy" in programming... I don't want to have to ask you again.
How can he trade if this
StochM < StochS && StochM > StochS
Is it a condition that is obviously impossible to meet? You need to calculate stochastic values on the first and second bars.
If you don't mind, I would like to clarify one more thing. I understood my mistake with Stochastic, but what about other indicators? No errors in using Envelope and Parabolic? I should have some)). Please look at both the opening and closing.
Someone here just asked how to change the content of the text. The post disappeared while I was answering it. Just in case someone needs it.
//+------------------------------------------------------------------+//| script program start function |//+------------------------------------------------------------------+int start(){
ObjectCreate("1",OBJ_TEXT,0,Time[0],Open[0]);
ObjectSet("1",OBJPROP_FONTSIZE,16);
ObjectSet("1",OBJPROP_COLOR,Red);
if(!ObjectSetText("1","Пример создания нового текста",16,"Verdana",Red)){
Alert("Ошибка № ",GetLastError()," при изменении описания текста");
}
return(0);
}
//+------------------------------------------------------------------+
buf1[i]/buf2[i]*100 - second parameter of this function should be string. Read parameters here - boolObjectSetText(string name, string text, int font_size, string font_name=NULL, color text_color=CLR_NONE)
Allow the use of cookies to log in to the MQL5.com website.
Please enable the necessary setting in your browser, otherwise you will not be able to log in.
You are signed in. Two-factor authentication has been disabled. Set it up again and scan a new QR code, or continue with two-factor authentication disabled.
How do I find the smallest maximum of a candle in a given bar period?
Try this
bar=iLowest(NULL,0,MODE_HIGH,10,10);
Please note.
1) The condition "line1[1]>line2[1]" is not sufficient for the "two lines crossing" signal. Надо "линия1[1]>линия2[1]&&линия1[2]<линия2[2]"
2) The parabolic should not be compared with Open, but with High and Low. Please note that you calculate it on zero bar and take Open[1] from the first bar.
Thank you for your attention to my questions. I did what you advised. But now the EA has stopped trading altogether. Perhaps, I have understood you wrongly and made something wrong, or there are some other errors in the code?
At the moment the code looks like this:
Please help me to understand it, I really want to make this EA trade.
Edit: A big request: if it's possible, please form your answer in a code form.Don't forget that I'm still a complete "dummy" in programming... I don't want to have to ask you again.
Somebody please explain the Ilan 1.4 code to me. I mean, I want to change it for me a little bit, but other people's code does not understand at all. Can someone explain me, at least block by block, what is done?
I don't have enough brains for realization - I've been familiar with MQL4 for only one week.
If anyone can help me, I'd be very grateful, if you can write to delit-0202@rambler.ru
And then, how to determine the trend in an EA? At least a general one, maybe even a lag one. How would one do it?
Thank you for your attention to my questions. I did what you advised. But now the EA has stopped trading altogether. Maybe I misunderstood you and did something wrong, or there are some other errors in the code?
At the moment the code looks like this:
Please help me to understand it, I really want to make this EA trade.
Edit: A big request: if it's possible, please form your answer in a code form.Don't forget that I'm still a complete "dummy" in programming... I don't want to have to ask you again.
How can he trade if this
Is it a condition that is obviously impossible to meet? You need to calculate stochastic values on the first and second bars.
If you don't mind, I would like to clarify one more thing. I understood my mistake with Stochastic, but what about other indicators? No errors in using Envelope and Parabolic? I should have some)). Please look at both the opening and closing.
And thanks for the latest MT5 build , I already downloaded it.
Someone here just asked how to change the content of the text. The post disappeared while I was answering it. Just in case someone needs it.
I'm not getting a text...
I'm not getting a text...
buf1[i]/buf2[i]*100 - second parameter of this function should be string. Read parameters here - bool ObjectSetText(string name, string text, int font_size, string font_name=NULL, color text_color=CLR_NONE)