My EA Issue

 

Hi

I Wrote an EA using MQL5 to execute Limit orders and stop orders Automatically in the chart.

my EA works in Backtest  but when I drop it on my demo account chart, nothing happen(the same chart and the same timeframe).


my EA:

not timeframe related.

     not Symbol related.

             not time range related.

                   I checked Allow Algo trading.

                        in Tools/Options/Expert Advisers checked  .


What should I do?


Thanks 

Files:
MyEA.png  42 kb
 
Reza Salmany:

Hi

I Wrote an EA using MQL5 to execute Limit orders and stop orders Automatically in the chart.

my EA works in Backtest  but when I drop it on my demo account chart, nothing happen(the same chart and the same timeframe).


my EA:

not timeframe related.

     not Symbol related.

             not time range related.

                   I checked Allow Algo trading.

                        in Tools/Options/Expert Advisers checked  .


What should I do?


Thanks 

Check your journal for possible errors!!

 
Abubakar Saidu #:

Check your journal for possible errors!!

Thanks for your replay

my Journal just says Expert loaded successfully. 

 
Reza Salmany #:

Thanks for your replay

my Journal just says Expert loaded successfully. 

What about the expert tab?
 
  1. Reza Salmany: 2022.07.25 04:32 my EA works in Backtest  but when I drop it on my demo account chart, nothing happen
    When did you put it on your chart. The FX market opens 07.24 17:00. Other markets open today after 08:00.
  2. Are you connected to your broker? Check the journal.

  3. Reza Salmany: I Wrote an EA using MQL5 to execute Limit orders and stop orders Automatically in the chart.
    There is no need to create pending orders in code.
    1. The pending has the slight advantage, A) you are closer to the top of the queue (filled quicker), B) there's no round trip network delay (filled quicker.)
    2. Don't worry about it unless you're scalping M1 or trading news.
    3. Humans can't watch the screen 24/7, so they use pending orders; EAs can, so no need for pending orders, have it wait until the market reaches the trigger price and just open an order.
 

Finally I found that my broker disable my Automatic trading :(

Thanks for your Help

Best Wishes