Expert Advisors: The "Night" Expert Advisor - page 2

[Deleted]  
AM2:

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! )))

This is standard and on standard settings. There is a suspicion that he drained his EUR/JPY depo on the Alps (since 2002 on 4H)....
[Deleted]  

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....

[Deleted]  

This is the result for EURJPY on MQ quotes from 2002.

The result is worse, but still not bad....



Files:
[Deleted]  
The opening comments (which are displayed in the alerts) for Buy and Sell are the same...
 
Interesting:

А прикольный отчет вышел на тестировании с 2000 года.

параметры тестера: Валюта - EURUSD, ТФ - 4H, Депо - 10 000$.



I had a good trade, too. I changed the TF in the code yesterday.

[Deleted]  
AM2:

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.

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.

[Deleted]  
AM2:

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...

[Deleted]  

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

Files:
 

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