I'm trying to control the time of setting an order to make only one trade per day.
MqlDateTime day; if(Buy_Condition && (!PositionSelect(_Symbol))) { if(dt.hour >= 23 || dt.hour < 6) { if(dt.day > day.day) // Trying to check if there was an order today or not. { // Trading here } TimeToStruct(TimeCurrent(),day); // Enter the order time into the structure } }
But this is not correct. A month trades one trade per day and then everything is straight line.
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.
Is it with one trade per night or did you change something else besides the timeframe? The rest of the test was the same.
The MASTER'S business is afraid! )))
It looks like he makes money on MQ quotes, but he drains on the Alps(GBPUSD and EURJPYwere checked )....
TF 4H, deposit 10K $.
PS
Although ACCOUNT_LEVERAGE may be to blame here, it seems to be 500 on demo....
This is the result for EURJPY on MQ quotes from 2002.
The result is worse, but still not bad....
А прикольный отчет вышел на тестировании с 2000 года.
параметры тестера: Валюта - EURUSD, ТФ - 4H, Депо - 10 000$.
I had a good trade, too. I changed the TF in the code yesterday.
I had a good trade, too. I changed the TF in the code yesterday.
You should not change the TF in the code, 15M looks good there too.
PS
By the way, if you replace Stochastic with RSI (with a period of 5), the Expert Advisor brings almost similar results....
I'm trying to control the time of setting an order to make only one trade per day.
But this is not correct. A month trades one trade per day and then everything is straight line.
Trying to control the order setup time to only make one trade per day.
But this is not correct. A month trades one trade per day and then everything is straight line.
That's not how it is done, not like that....
PS
And one deal a day is not a panacea for all troubles...
AM2, here are the results of tests of two revised versions of your Expert Advisor.
Testing was performed on the pair - EURUSD, TF - 30M, starting deposit - 10 000$.
Variant #1 - Nightv2
Added: One more indicator - RSI
Variant #2 - Nightv3
Added: Emulation of withdrawal of funds, changed the way of calculating the trading lot size, added timer
Hello,
if(dt.hour>=21 || dt.hour<6)
it does not work, the hours are not respected
when i run ea
Have you a solution ?
Thanks