Gentlemen, I have identified the cause. The problem is in the calculation of the balance, which is needed to allow for a day's output, and although this formula does not produce errors, it does not work.
datetime TimeCheck_sb = StrToTime("1:00");
if(TimeCurrent()==TimeCheck_sb)
{
sb1 = AccountBalance();
}
// и это мне вы тут насоветовали на форуме!!!!!!
далее там условие такое if(sb1 + sb1/100*LotRisk*(DayMultiplicatorProfit/100) > AccountBalance())
{
условие открытия ордера...
}
Gentlemen, I have identified the cause. The problem is in the calculation of the balance, which is needed to allow for a day's output, and although this formula does not produce errors, it does not work.
Sorry, but I still don't get it - how to set KEY_TILDE to two events - Highlight and Unselect. I get either simultaneous triggering and displaying a message in terminal or only this default option. How can a dumbass explain how to do it?
Sorry, but I still don't get it - how to set KEY_TILDE to two events - Highlight and Unselect. I get either simultaneous triggering and displaying a message in terminal or only this default option. How can a brainless person explain how to do it?
Detected event - check status... If it's selected - deselect. Otherwise it is selected.
Sorry, but I still don't get it - how to set KEY_TILDE to two events - Highlight and Unselect. I get either simultaneous triggering and displaying a message in terminal or only this default option. How can a dumbass explain how to do it?
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.
Gentlemen, I have identified the cause. The problem is in the calculation of the balance, which is needed to allow for a day's output, and although this formula does not produce errors, it does not work.
If you do it for fun, it works.
if you do it for fun, it doesn't work
double sb1; - declared if anything...
The question should be solved with
Gentlemen, I have identified the cause. The problem is in the calculation of the balance, which is needed to allow for a day's output, and although this formula does not produce errors, it does not work.
If you do it for fun, it works.
if you do it, it doesn't
double sb1; - is declared if anything...
Solve the issue with
it doesn't have to work every day... moreover, it's strange if it will work regularly at all
it doesn't have to be triggered every day...in fact, it would be strange if it was triggered regularly at all
and how do i fix the balance at the beginning of the day?
Sorry, but I still don't get it - how to set KEY_TILDE to two events - Highlight and Unselect. I get either simultaneous triggering and displaying a message in terminal or only this default option. How can a dumbass explain how to do it?
Sorry, but I still don't get it - how to set KEY_TILDE to two events - Highlight and Unselect. I get either simultaneous triggering and displaying a message in terminal or only this default option. How can a brainless person explain how to do it?
Detected event - check status... If it's selected - deselect. Otherwise it is selected.
Sorry, but I still don't get it - how to set KEY_TILDE to two events - Highlight and Unselect. I get either simultaneous triggering and displaying a message in terminal or only this default option. How can a dumbass explain how to do it?
and how do i fix the balance value at the beginning of the day then?
does anyone have any ideas?
Anyone have any thoughts?
anyone have any thoughts?
catch the change of the day and calculate the balance value at that moment.
It's not for nothing that they said "take the right indicator" - it won't fit into a couple of lines of code. It's quite a capacious algorithm.
catching the day change is easy, "the known day number now is not equal to the day number before", but further it is difficult