Help me make a simple condition. In the parameters I set the day of the week and the time from and to which trading will be true. Here is the code. I understand that the condition is not correct. Please help me to make it look right.
Parameters:
extern string StartTrade = "00:00";
extern string StopTrade = "06:00";
extern int StartDay = 1;
Execution of the condition:
if (TimeCurrent()>StrToTime(StartTrade) && TimeCurrent()<StrToTime(StopTrade) && DayOfWeek()==StartDay)
143alex: Still asking for help to finish. Changed a few lines... Buy trawls and closes perfectly, but Sell for some reason closes by itself immediately after opening, regardless of the LOSSELL line
143alex: Hooray it seems to have worked!!! A trawl close function that does not depend on the expansion of the DC stops. (Don't judge the code too harshly... You can improve it )
Can't someone help me figure it out? Where are you? I need this code...
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.
Hello, could you please tell me why the expression 0.25+(-0.25) is not "0" but "-0".
Still asking for help to finish. Changed a few lines... Buy trawls and closes perfectly, but Sell for some reason closes by itself immediately after opening, regardless of the LOSSELL line
Please help!!! I need a stop loss code to insert into my EA! I would be very grateful and happy!
There are a lot of variants to calculate.
Hooray it seems to have worked!!! A trawl close function that does not depend on the expansion of the DC stops. (Don't judge the code too harshly... You can improve it )
Hello, could you please tell me why the expression 0.25+(-0.25) is not "0" but "-0".
how to write code in an EA to understand the rebound from the level x.xx25
Not interested in other levels?
There are many variants of calculation.