[ARCHIVE!] Any rookie question, so as not to clutter up the forum. Professionals, don't pass by. Can't go anywhere without you - 4. - page 486
![MQL5 - Language of trade strategies built-in the MetaTrader 5 client terminal](https://c.mql5.com/i/registerlandings/logo-2.png)
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
We should also add a check for EMPTY_VALUE
Ah, no! Both buffers are filled with214783647 on every tick, whether there is an arrow or not.
Is this normal at all?
Afternoon,
I am making an EA that after an opening moves the stop to breakeven. That is it modifies the order, but the problem is that it constantly modifies what looks like a trailing stop. How to make it modify once and then only once. I even inserted a variable in the code, mod1=1 but then mod1 has to be bigger, but the language doesn't notice it.
Thank you!
while(true)
{
if (tip==0 && open_b==true && mod1<=1 && Bid>ma+15*Point)
{
Alert("popitkaa perenesti stop v b/u" ,ticket);
RefreshRates();
modify=OrderModify(ticket,Ask,Bid-mod*Point,0,0);
if(modify==true)
{
Alert("zakrit modificirovanij order",ticket);
mod1++;
return;
}
return;
}
if (tip==1 && open_s==true && mod1<=1 && Bid<ma+15*Point)
{
Alert("popitkaa perenesti stop ",ticket, "v b/u");
RefreshRates();
modify=OrderModify(ticket,Bid,Ask+mod*Point,0,0);
if(modify==true)
{
Alert("zakrit modificirovanij order",ticket);
mod1++;
return;
}
return;
}
break;
}
Thank you for not helping, I had to think about it myself, maybe it's for the best. I just needed to bring the variable to the global level.
Now the question is this:
Some programming languages have function like "tracking program code", you press F7 and some line of code is shown, when you press F7 again you get another line, it's very useful when you get confused and can see if the language is reading the same line of code or not. Does mql have such a feature?
Last question, how to make the quality of modelling be high, when I test on 5 minutes the quality is 87-89%, when I take the same EA on a watchmaker it is 34% modelling. How to increase the modelling ? and is it possible to trust the 34% modelling ?
Thank you
Dear Experts. Can you please advise on what indicators are required to adequately assess the performance of an Expert Advisor with its trading history on a certain account? I am referring to the overall statistics, not the consideration of each individual order. I need the formulas for calculation. Maybe there are some articles on this subject.
I am not sure of the correctness of these calculations. Thank you.
Dear Experts. Can you please advise on what indicators are required to adequately assess the performance of an Expert Advisor with its trading history on a certain account? I am referring to the overall statistics, not the consideration of each individual order. I need the formulas for calculation. Maybe there are some articles on this subject.
I am not sure of the correctness of these calculations. Thank you.
Strategy Tester, try or open a demo account and let the Expert Advisor trade on its own with virtual money, but using real quotes. True, the first option will greatly reduce the time for statistics
Try a strategy tester or open a demo account and let the Expert Advisor trade on its own with virtual money, but with real quotes. But the first variant will considerably decrease the time for statistics.
Why do I need a tester? I already have a trading history on this EA. I just need to adequately evaluate it.
Will this work for you?
You'll be fine with this.
You might want to try this one.
Thank you. I've been looking and thinking too.
Victor, do you know where else you can find training articles on MCLs by Roche?