Why the ea only open sell orders and loss money?

ft kensin  
Hi,I learned a set of trading methods from a creator's video as below and made it ea by Algowizard .

But there are many problems in the mt5 backtesting, which is different from the test results in the video.

For example, the test results has only short transactions and the test report shows that it is a loss of money.

I know it must be caused by not understanding coding, please help me to see what needs to be modified by Algowizard.

The strategy is simple as the following:  ( XAUUSD,M15 at the mainchart.)
BUY order:  The current price is above the ATR pressure line and the RSI is below 40.   ( ATR pressure line:  The daily opening price +  0.4 * ATR (day))

           TP: order enter price + 4 * ATR(M15)

           SL:  ATR support line

           Trailing stop : ATR support line of the day (because during an uptrend the support line of the day will also be raised)

SELL order: The current price is below the ATR support line and the RSI is above 60.     ( ATR support line: The daily opening price -  0.4 * ATR (day))

           TP: order enter price - 4 * ATR(M15)

           SL:  ATR pressure line

           Trailing stop :  ATR pressure line of the day

My algowizard setting and mq5 file are in the attachments. If you want to test run, you need to download exclusive indicators such as attachments.

Documentation on MQL5: Common Functions / TesterStatistics
Documentation on MQL5: Common Functions / TesterStatistics
  • www.mql5.com
TesterStatistics - Common Functions - MQL5 Reference - Reference on algorithmic/automated trading language for MetaTrader 5
Files:
pic1.png  280 kb
algowizard.png  162 kb
ATRpullback.mq5  236 kb
Indicators.zip  65 kb
Fernando Carreiro  
ft kensin: Hi,I learned a set of trading methods from a creator's video as below and made it ea by Algowizard ... My algowizard setting and mq5 file are in the attachments. If you want to test run, you need to download exclusive indicators such as attachments.

If you are using AlgoWizard by StrategyQuant, then I suggest that you ask them for support. We cannot help you much here.

We can only guide you and offer advice if you put in the effort to learn the MQL language and code your EA manually based on your own abilities and thoughts.

Any advice or instruction we could give you, you would not understand because you don't know how to code in MQL.

If you are using 3rd party generated code, then you will have to resolve the issue with their support.
Reason: