Any rookie question, so as not to clutter up the forum. Professionals, don't pass by. Nowhere without you - 6. - page 1077
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
Make it like this
Instead of 1, you can put any number except 0. The higher the number, the fewer bars will be counted when the indicator starts.
And remove
it is absolutely useless.
Make it like this
Instead of 1, you can put any number except 0. The higher the number, the fewer bars will be counted when the indicator starts.
And remove
it is absolutely useless.
datetime t1=StrToTime(TimeToStr(dt, TIME_DATE)+" 10:00") + 24*60*60;
Alert("Now = ",dt, " Tomorrow at 10:00 = ",t1);
kocunyc89 : there is a command t1=StrToTime(TimeToStr(dt, TIME_DATE)+" 10:00");how do I set not today 10:00 but tomorrow 10:00? datetime dt=TimeLocal();
datetime t1=StrToTime(TimeToStr(dt, TIME_DATE)+" 10:00") + 24*60*60;
Alert("Now = ",dt, " Tomorrow at 10:00 = ",t1);
Good evening all. Question from a dummy on iLowest and iHighest functions. In the beginning, I wanted to use these functions to find the high/low break in my EA and place a pending order. Everything works with iLowest but iHighest does not set orders. However, this is a word, since I have already solved this problem in a different way. I now have to delete a pending order if it was canceled to open it at a new price. I have tried to use the above functions again. There is no problem with iLowest and removing a pending buy order; I have problems with iHighest removing a sell order - the order is removed when a condition has not yet been met (price is below the maximum), a new order is placed, is removed again and so on. If the price has exceeded the maximum it is deleted and a new one is not executed but as soon as the current price has moved below the previous maximum the "scramble" starts again.
The conditions are written in the following way
if(iHighest(NULL, 0, MODE_HIGH, 70, 2) < iHigh(NULL, 0, 1)
{
DeleteOrders(OP_SELLSTOP, Magic);
}
if(iLowhest(NULL, 0, MODE_HIGH, 70, 2) > iLow(NULL, 0, 1)
{
DeleteOrders(OP_BUYSTOP, Magic);
}
(Delete function is written out separately). What am I doing wrong, what is the error?
Can you tell me why in testing the EA (100$ depot) the absolute drawdown (20$) differs from the values in the table of trades (minimum balance 85$), i.e. the difference is 5$.
The same with the maximum drawdown.
Maybe this 5$ is taken when the balance falls when the price moves in the direction of the stop loss and if so, is it possible to make the absolute/maximum drawdown reflected only according to the trades in the table?
p.s. I have clarified that on this forum(https://www.mql5.com/ru/forum/107382) drawdowns are calculated by equity, not by balance