• Welcome back! Thank you for being a part of this Traders Community. Let's discuss and share :)
    Selamat datang kembali! Trimakasih telah menjadi bagian dari Komunitas Trader ini. Mari berdiskusi dan berbagi :)

New EA 2P-Breakout EA

Friend G

Member
Credit Hunter
Credits
150
I have an EA for gold trading, the idea is from a member of the FF forum.

here is his idea:

Hello, is there any coder who could build an EA that would meet these conditions?
1. When the EA is turned on, the EA immediately starts recording the lowest value of the instrument it is running on and writes this value to the "Global Variable" in MT4 (for example, NSDQ_low=xxxxx.xx)

2. When it reaches 1% upwards, it turns on a long trade. It places the stop loss at the given lowest value that it has recorded in the "Global Variable" so 1% down.

3. When it reaches another 1%, it starts moving the TSL. The EA therefore never actually ends in TP, but always at SL or TSL.
This strategy works perfectly on the Nasdaq Index and believe me, the backtest results will amaze you.

And, here is the EA. (Timeframe: any)
 

Attachments

I have an EA for gold trading, the idea is from a member of the FF forum.

here is his idea:

Hello, is there any coder who could build an EA that would meet these conditions?
1. When the EA is turned on, the EA immediately starts recording the lowest value of the instrument it is running on and writes this value to the "Global Variable" in MT4 (for example, NSDQ_low=xxxxx.xx)

2. When it reaches 1% upwards, it turns on a long trade. It places the stop loss at the given lowest value that it has recorded in the "Global Variable" so 1% down.

3. When it reaches another 1%, it starts moving the TSL. The EA therefore never actually ends in TP, but always at SL or TSL.
This strategy works perfectly on the Nasdaq Index and believe me, the backtest results will amaze you.

And, here is the EA. (Timeframe: any)
do you have MQL Code file?
 
Is the backtest and live trade are matching?
Seems similar yesterday it enter buy trade and got loss and in beach test it showing so I guess it not history reader.

One thing shall edit some parameters to get into trade frequently?
 
Greetings! Look at the test results. Please note that the test was done with 99% quality. Only such backtests need to be considered. The test of the beginning of the year, for the first five months. Start at $100, long position. And this is without optimization, by default, so even better results are possible.
The shorts were also tested, but they are in a severe negative.
 

Attachments

  • test gold 01.01.25-01.05.25.png
    test gold 01.01.25-01.05.25.png
    39.6 KB · Views: 95
  • Desktop.zip
    Desktop.zip
    12.4 KB · Views: 21
Greetings! Look at the test results. Please note that the test was done with 99% quality. Only such backtests need to be considered. The test of the beginning of the year, for the first five months. Start at $100, long position. And this is without optimization, by default, so even better results are possible.
The shorts were also tested, but they are in a severe negative.
Do you know what 1% of $100 is?
 
Back
Top