Caught 2 awesome trades with Gold Excel Trader today

Still keeping the DD low as possible and hitting TPs regularly. Great week.

u/Merchant1010 — 14 days ago
▲ 6 r/FOREXTRADING+2 crossposts

Great month for trading USDJPY

I have been trading the USDJPY using Ninja Intraday strategy for about a month... so far the month of July... ROI is 22.68%, expecting it to rise even more by the end of July. For August I am even more optimistic with reference to past data backtesting and seasonality.

From years of hard work, many failures... I have come to conclusion for myself that using one specific strategy with perfect risk management for just one single pair ( in this case USDJPY) in only suitable environment (trading sessions and timeframe) will give you better result than staying glued to the charts for 10 hours.

Another thing that I learned is FX is a great cash cow business, treat trading like a business....trading style like scalping and intraday have become my favorite....swinging is good but I do not prefer to hold positions overnight and over the weekend as FX market is changing rapidly.... just look today the weekend news of Iran not accepting newer terms caused the many pairs to open at a gap, for example XAUUSD, USDJPY. I'd rather swing trade stocks.

My goal for coming months is to keep the DD low as possible, right now DD is 4.9% and max load is 9.5%, these I am targeting to keep it below 10%

u/Merchant1010 — 24 days ago
▲ 6 r/metatrader+2 crossposts

Aiming for this route for USDJPY today

As looking at the dollar basket today and consolidation on USDJPY price, a pullback is expected after the rapid breakout of 163.192 yesterday. This price is Resistance Turned Support. Price action looks good to me.

u/Merchant1010 — 27 days ago

Starting the test for this Algo System

Gave nearly all of my resources and experience to Gold Excel Trader that specializes in Intraday trading of XAUUSD.

Backtest done with 0.01, 0.02, 0.03 lot size respectively on above attached backtest results. Capital is $1k. Feedback on the stats in appreciated!

Backtest done on this environment:

https://preview.redd.it/36nr71ufl0fh1.jpg?width=1051&format=pjpg&auto=webp&s=9a8adaf4d3462b4876798b8a73d7f1fa6c0349c5

u/Merchant1010 — 28 days ago

Appeal for collaboration for EAs

We have bunch of mql5 algorithmic systems that are stuck in the middle of development, if you guys have coding and trading experience in the MQL5 ecosystem... we are offering for a collaboration on the development of these EAs.

If you are interested please contact via Mod Mail, where we give out these MetaTrader systems.

In-Process EAs

reddit.com
u/Merchant1010 — 1 month ago
▲ 0 r/Forex

Quality backtest

I have been creating trading systems for quite some time. 90% of the logic, code and trading systems doesn't pass and go through, other crashes out mid way. 10% of that passes validation and performs well.

I am trying to connect with people that have experience with MQL5 and backtest and give me feedbacks on how to further develop. We can work together. I am these three EA just laying around. We can work on this or I can just giveaway.

https://preview.redd.it/3bg0dm3pu4eh1.png?width=901&format=png&auto=webp&s=537e78398a8fe5555bf620f8c05b7f70feebb8b7

reddit.com
u/Merchant1010 — 1 month ago

Quality backtest

I have been creating trading systems for quite some time. 90% of the logic, code and trading systems doesn't pass and go through, other crashes out mid way. 10% of that passes validation and performs well.

I am trying to connect with people that have experience with MQL5 and backtest and give me feedbacks on how to further develop. We can work together. I am these three EA just laying around. We can work on this or I can just giveaway.

https://preview.redd.it/lkpbpqo7u4eh1.png?width=901&format=png&auto=webp&s=d73e939ec1fe96f75cb1e8c31a2d35aa6e5f2990

reddit.com
u/Merchant1010 — 1 month ago

Base for a working Algo - The Quadrant

Introduction

...

From my quite extensive experience in the FX market, there were many ups and downs periods. The Forex market is indeed a complex market with all the terminology and leverage, but later on I have realized it is a very good cash cow business. 

I have gone through many strategies, research papers and used many. And I am a firm believer that each and every strategy ever created in the world works, we just gotta fine tune and connect it with the best suitable asset class and in the best environment possible.

After countless strategies, right now I am working on automating each and every strategy that I like and works into algos... in this process I have learned many important lessons that I would love to share with others. 

This article will solely focus on the Major 4 factors that I find very important and must treat it as an important base for building an EA. 

The parts of the Quadrant are:

  1. Win Rate (WR)
  2. Drawdown (DD)
  3. Risk to Reward Ratio (RR)
  4. Trade Frequency

 

Connecting the 4 factors

...

Let us connect the 4 parts of the Quadrant.

1) WR

Win Rate (WR) is a percentage of your total trades that results in profit. For example if you traded total of 100 trades in one month and 73 of them were closed in profit (regardless of the dollar value), your WR would be 73%.

2) DD

Drawdown is basically the % lowest point your equity has fallen from the peak equity that you have. If your first position goes down to 4% and it later recovers back to your direction, the statistics will catch the DD to be 4%.

3) RR

Risk to Reward Ratio measures the potential profit of a trade relative to its potential loss. In basic terms, if your SL dollar value is $10 and your TP is $20, you are risking $10 to potentially make $20. 

4) Trade Frequency 

Trade frequency is the number of trades open within the set certain period of time. If you backtest a strategy for 1 year, and the trade count is 500...and as FX market on average works 24/5, 5*4 = 20 days on average per month (averaging out without consideration of public and bank holidays)... so per year, 20*12 = 240 days, the algo system trades 500 trades/240 days = 2 trades/day... this is the trade frequency. 

As I observed other EAs and tried automating my own strategies... for a HEALTHY EA to be profitable, this seems to be the basic/foundational formula: ROI of EA = WR + RR + DD + Trade Frequency. 

Scenario 1:

Suppose the EA has 90%+WR; from what I have observed RR will be compromised.... rarely do we see in retail places that an EA has 90% WR and maintains a minimum of 1:1 RR (not saying there are not, but I haven't found one realistically yet). 90% of the time if the trades are closing in profit, Risk to Reward will be tight, as Risk is normalized but the Reward is bare minimum so the TP is hit more often than regular. Moreover, in this scenario there will be large number of small wins, but one loss will destroy more than half of the wins. 

In this scenario the DD will also be less, and the equity graph will be quite some time of smooth growth and one moment of sudden downfall and then back again to smooth growth... and cycle goes on and on. 

Trade frequency is also crucial.. in whole year if the EA has only taken 10 trades and 9 of them are profitable, the statistics or history report from your broker will show you have the WR of 90% 

Scenario 2:

Suppose the EA has 25% WR but has enormous RR of around 1:5, one trade will make up for your three trades and even some more. The factor of this scenario is that your DD will be high... if you have multiple consecutive losses, the chances of your equity being eroded are pretty high. 

If the Trade frequency is pretty less, the system being right once is a while will eventually cancel out the losses and the equity graph will be slow down slopes with sudden upward spikes. But a huge problem of this scenario is that the account might get blown first before even making a single profit as many numbers of consecutive losses will Drawdown the equity to such extent that the regular lot size position might not be able to open as lack of sufficient fund, that way that one winning trade probability also drops. 

From these two scenarios, what I want the readers to know is that making a healthy EA, the trader/developer must understand the importance of balance between these 4 factors of the quadrant. BALANCE is the key. 

Even with basic permutation and combination of these 4 factors:

P(4,1)+P(4,2)+P(4,3)+P(4,4)=4+12+24+24=64.

After the discussion of two basic scenarios, let us dive deep by using an EA with basic logic and I will tune the RR in various scenarios and how it is going to impact the DD and WR while keeping the trade frequency ceteris paribus, and ultimately the ROI. 

Here is a simple SMA crossover EA that I will be testing on XAUUSD, 15 min timeframe from Jan 1,2026 till July 7, 2026.

Basically this is using 9 SMA and 21 SMA, and here is the backtest result... focus on the factors that we are discussing in this article... WR, RR, DD and Trade Frequency:

https://preview.redd.it/vo921valfkdh1.jpg?width=1892&format=pjpg&auto=webp&s=96987178c9ce2394fa00aa7bf2961eafb35e2619

Here our WR is 33.46%, DD is 49.6% and our Average Profit Trade is $10.50 and $5.52 is our Average Loss Trade, so basically our RR is 1:1.9, we have a great RR but our ROI is ultimately in negative... basically -36%

https://preview.redd.it/46bfnfbnfkdh1.jpg?width=1899&format=pjpg&auto=webp&s=30f1196820a2070e4f31578f4676a694a89f4f75

Now, I will change the InpStopLoss and InpTakeProfit level to higher number to give them more breathing room. 

https://preview.redd.it/4pml70oofkdh1.jpg?width=909&format=pjpg&auto=webp&s=b1e4faec3bf2dedc27181c79b0220e6b148533b4

And here is the backtest result after the input changes:

https://preview.redd.it/wantgmvpfkdh1.jpg?width=1898&format=pjpg&auto=webp&s=5bdcd90a3efd8fbe281cc1fddbfd5ee8d83e2895

Here we can see that the negative ROI has changed by a huge margin...WR has jumped to 42.2% from 33.46% and DD decreased to 37.66% from 49.6%, but a critical thing we must analyze is that the RR has been jumbled up. It is just now approx. 1:1.4, from this two back test I want to show how the same logic, has different result when we just tune the RR part... heavily impacting the WR and DD and ultimately the ROI. 

Input codes: 

input double InpLotSize    = 0.01;
input int    InpFastSMA    = 9;
input int    InpSlowSMA    = 21;
input int    InpStopLoss   = 500;
input int    InpTakeProfit = 1000;
input int    InpMagicNumber = 123456;

Just the InptStoploss and InptTakeProfit was changed. The logic remained the same of 9 SMA and 21 SMA crossover. I have attached the mq5 file of this simple logic EA, you can backtest and try working around by adding filters, indicators and such. 

In the sequence of tuning the RR differently, the results were quite different. From both the backtest result we can clearly see that we do not have a clear winning logic/strategy for the XAUUSD 15min timeframe. But we were able to lower down the loss to some extent. 

The above 2 backtest were done in this environment:

https://preview.redd.it/qlg7k0srfkdh1.jpg?width=1096&format=pjpg&auto=webp&s=9438f9f4c7b6272148ada1b463b50f41f3eddecf

Now let us move to connecting one with the other factor.

WR vs RR:

These two factors are the most common associative part in any strategy, algo or EA. It is also known as one of the classic Trade-Off phenomenon. I am sharing my experience on this part, after testing many of EAs, and my strategies... it is nearly impossible on retail level to have both high WR and superior RR in a single strategy... for example, 80-90% with 1:4-1:5RR. At least till now I haven't found any strategy that has this results with significant compromise on DD and Trade Frequency. 

If one wants to drastically increase the WR, you gotta exit earlier at a very lower Take Profit(TP) level so that more and more of your trade will be closed in profit, that way making them closer and closer to the entry price and making it hard for the strategy to have less losses the strategy also have to maintain the Stop Loss (SL) further and further way. This way is the basic way to increase the WR but RR will surely plummet. 

In the other hand, when you are trying to make a very very logical RR as possible, like have 1:3 or 1:4...if your logic is not the finest and the strongest the WR will inevitably drop to less that 50% or even lower. That way even if you are right, it will take a longer time to achieve the superior RR, and if the entry logic is perfect but there is no guarantee that your position will move smoothly in the direction without sudden pullback or unforeseen news/volatility. 

Impact of WR and RR on the DD:

These two factors have a major role on determining the strategy DD. For example, if the system relies on 1:4RR but only wins 25% of the time, it is mathematically guaranteed to face long streaks of consecutive losses. Eventually the system can be profitable but the losing streak can cause a massive, prolonged DD on the equity curve. 

Another example that I have seen in many of high scalping EAs is that there is literally 90%+ WR that the system is producing in backtesting as well as in real live trading test, the RR is extremely terrible...it is risking certain high for example 20:1RR or 10:1 RR, but it is clearly visible that these system with this WR and RR will have equity curve going straight up and the visible DD will be near zero for long time period. However, the remaining 10% risk probability hits harder sooner or later creating a massive dent on the DD, and if there are 2 or more consecutive losses, DD and Margin-Level is pushed hard. 

Trade Frequency vs WR:

This is very very important... as in data science we need a really good and healthy level of real sample data. Trade Frequency is like a lever, it can tilt to the very low and very high level and from my experience it must be where the strategy is, and we must measure on the basis of the strategy type. 

If the system is a scalper, we have to expect a higher frequency, higher trade count. For scalping system I try to average out on the basis of day. If the Trade Frequency is like 1000/day. I am not touching that scalping system, for me it is way too much and might fall into high frequency trading where retail infrastructure might not be able to support it at all. 

If the system is a intraday, I try to average out on the basis of month. As Forex Market is 24/5, we get about 20 trading days on average without counting the bank holidays and public holidays. So I do not expect to have a trade every single day, on average 15-20 trades/month is good enough for me. Some day there can be 2 trades per day but followed by no trades for 2 days, it is good enough. 

So understanding the balance between proper trade frequency and understanding the type of system is very important so that we get the correct amount of sample data, both in backtest and real account live testing, further more this interconnectivity must aware the trader/developer to stop forcing to create almost (I said 'almost') an impossible system that which has High WR, High RR, Low DD, High Trade Frequency. Looking to create a balanced system having a 'sweet spot' between these basic four factors will be a right and healthier approach in building a system that will last a long time. Not exactly sacrifice but the trader/ developer must balance out one factor to certain extent to promote the remaining three factor. 

One of my favorite personal combination:

Personally I have come to an agreement with myself that I cannot, as a retail trader/developer build a strategy/algo that will have the best nature of these 4 factors that will be durable for 2-5 years continuously. 

This is my top favorite combination = High WR, Low-Normal RR(I am fine with minimum 1:1RR), Low DD, High Trade Frequency. 

I really want to keep my DD very very low, as minimized as possible. Why? Because at backtest we get some approximately clear DD that we can expect, when we test it on a real live account the actual DD will be near to it although we must accept that past result won't perfectly determine the future results. If DD is low on backtest report and forward test report, so at any near point of time we start the system on real account we won't be largely impacted by the consecutive losses in case we have them at the beginning of our live testing. 

From my experience achieving the high RR like 1:4 and 1:5 without volatility and noise in the duration of a position being opened is really rare, FX is a volatile market always changing there will be moments where winners can turn into losers. I prefer consistency over frequent sudden jumps and falls on the equity curve. 

Conclusion

...

The trader/developer who understands the balance with these 4 factors with each other will get an advantageous start in the process of building a working EA, working in a sense we can say profitable. Many of us might be attracted to the high 90% WR, but the health of RR should be also matched... if a system has 90% WR with 1:1RR minimum, no doubt it is profitable... but that system makes 10 trades per year, it won't be enough data so that the EA is healthy as when market dynamics changes that system won't be giving out these attractive numbers. 

Numbers is the thing, playing with them and finding the region that you want to be can be very beneficial, as I told you there are many combinations and permutations; most of them will be a profitable system/strategy but what works for your time, personal finance, patience. Connecting the trader/developer mindset with the foundation of these 4 factors, the QUADRANT, will be the basic for creating an edge for oneself and one's trading journey. 

reddit.com
u/Merchant1010 — 1 month ago

Base for a working EA - The Quadrant

Introduction

...

From my quite extensive experience in the FX market, there were many ups and downs periods. The Forex market is indeed a complex market with all the terminology and leverage, but later on I have realized it is a very good cash cow business. 

I have gone through many strategies, research papers and used many. And I am a firm believer that each and every strategy ever created in the world works, we just gotta fine tune and connect it with the best suitable asset class and in the best environment possible.

After countless strategies, right now I am working on automating each and every strategy that I like and works into algos... in this process I have learned many important lessons that I would love to share with others. 

This article will solely focus on the Major 4 factors that I find very important and must treat it as an important base for building an EA. 

The parts of the Quadrant are:

  1. Win Rate (WR)
  2. Drawdown (DD)
  3. Risk to Reward Ratio (RR)
  4. Trade Frequency

 

Connecting the 4 factors

...

Let us connect the 4 parts of the Quadrant.

1) WR

Win Rate (WR) is a percentage of your total trades that results in profit. For example if you traded total of 100 trades in one month and 73 of them were closed in profit (regardless of the dollar value), your WR would be 73%.

2) DD

Drawdown is basically the % lowest point your equity has fallen from the peak equity that you have. If your first position goes down to 4% and it later recovers back to your direction, the statistics will catch the DD to be 4%.

3) RR

Risk to Reward Ratio measures the potential profit of a trade relative to its potential loss. In basic terms, if your SL dollar value is $10 and your TP is $20, you are risking $10 to potentially make $20. 

4) Trade Frequency 

Trade frequency is the number of trades open within the set certain period of time. If you backtest a strategy for 1 year, and the trade count is 500...and as FX market on average works 24/5, 5*4 = 20 days on average per month (averaging out without consideration of public and bank holidays)... so per year, 20*12 = 240 days, the algo system trades 500 trades/240 days = 2 trades/day... this is the trade frequency. 

As I observed other EAs and tried automating my own strategies... for a HEALTHY EA to be profitable, this seems to be the basic/foundational formula: ROI of EA = WR + RR + DD + Trade Frequency. 

Scenario 1:

Suppose the EA has 90%+WR; from what I have observed RR will be compromised.... rarely do we see in retail places that an EA has 90% WR and maintains a minimum of 1:1 RR (not saying there are not, but I haven't found one realistically yet). 90% of the time if the trades are closing in profit, Risk to Reward will be tight, as Risk is normalized but the Reward is bare minimum so the TP is hit more often than regular. Moreover, in this scenario there will be large number of small wins, but one loss will destroy more than half of the wins. 

In this scenario the DD will also be less, and the equity graph will be quite some time of smooth growth and one moment of sudden downfall and then back again to smooth growth... and cycle goes on and on. 

Trade frequency is also crucial.. in whole year if the EA has only taken 10 trades and 9 of them are profitable, the statistics or history report from your broker will show you have the WR of 90% 

Scenario 2:

Suppose the EA has 25% WR but has enormous RR of around 1:5, one trade will make up for your three trades and even some more. The factor of this scenario is that your DD will be high... if you have multiple consecutive losses, the chances of your equity being eroded are pretty high. 

If the Trade frequency is pretty less, the system being right once is a while will eventually cancel out the losses and the equity graph will be slow down slopes with sudden upward spikes. But a huge problem of this scenario is that the account might get blown first before even making a single profit as many numbers of consecutive losses will Drawdown the equity to such extent that the regular lot size position might not be able to open as lack of sufficient fund, that way that one winning trade probability also drops. 

From these two scenarios, what I want the readers to know is that making a healthy EA, the trader/developer must understand the importance of balance between these 4 factors of the quadrant. BALANCE is the key. 

Even with basic permutation and combination of these 4 factors:

P(4,1)+P(4,2)+P(4,3)+P(4,4)=4+12+24+24=64.

After the discussion of two basic scenarios, let us dive deep by using an EA with basic logic and I will tune the RR in various scenarios and how it is going to impact the DD and WR while keeping the trade frequency ceteris paribus, and ultimately the ROI. 

Here is a simple SMA crossover EA that I will be testing on XAUUSD, 15 min timeframe from Jan 1,2026 till July 7, 2026.

Basically this is using 9 SMA and 21 SMA, and here is the backtest result... focus on the factors that we are discussing in this article... WR, RR, DD and Trade Frequency:

https://preview.redd.it/n2h9o5uq6kdh1.jpg?width=1892&format=pjpg&auto=webp&s=33173db99ca93aac8fd74fb5751c27a587044d11

Here our WR is 33.46%, DD is 49.6% and our Average Profit Trade is $10.50 and $5.52 is our Average Loss Trade, so basically our RR is 1:1.9, we have a great RR but our ROI is ultimately in negative... basically -36%

https://preview.redd.it/l5af2niy6kdh1.jpg?width=1899&format=pjpg&auto=webp&s=8ea3899b2268f218527f221a3e9cfd517b1e91e9

Now, I will change the InpStopLoss and InpTakeProfit level to higher number to give them more breathing room. 

https://preview.redd.it/8hi5phq07kdh1.jpg?width=909&format=pjpg&auto=webp&s=84768652873b79143a08264aa4495365182fc12e

And here is the backtest result after the input changes:

https://preview.redd.it/7bnmdxv17kdh1.jpg?width=1898&format=pjpg&auto=webp&s=a1b56f9efe884b8086735a3655d43250f82ee875

Here we can see that the negative ROI has changed by a huge margin...WR has jumped to 42.2% from 33.46% and DD decreased to 37.66% from 49.6%, but a critical thing we must analyze is that the RR has been jumbled up. It is just now approx. 1:1.4, from this two back test I want to show how the same logic, has different result when we just tune the RR part... heavily impacting the WR and DD and ultimately the ROI. 

Input codes: 

input double InpLotSize    = 0.01;
input int    InpFastSMA    = 9;
input int    InpSlowSMA    = 21;
input int    InpStopLoss   = 500;
input int    InpTakeProfit = 1000;
input int    InpMagicNumber = 123456;

Just the InptStoploss and InptTakeProfit was changed. The logic remained the same of 9 SMA and 21 SMA crossover. I have attached the mq5 file of this simple logic EA, you can backtest and try working around by adding filters, indicators and such. 

In the sequence of tuning the RR differently, the results were quite different. From both the backtest result we can clearly see that we do not have a clear winning logic/strategy for the XAUUSD 15min timeframe. But we were able to lower down the loss to some extent. 

The above 2 backtest were done in this environment:

https://preview.redd.it/uwfrqag37kdh1.jpg?width=1096&format=pjpg&auto=webp&s=8509b5e022de083b2f78a1a304d12c5f29e06812

Now let us move to connecting one with the other factor.

WR vs RR:

These two factors are the most common associative part in any strategy, algo or EA. It is also known as one of the classic Trade-Off phenomenon. I am sharing my experience on this part, after testing many of EAs, and my strategies... it is nearly impossible on retail level to have both high WR and superior RR in a single strategy... for example, 80-90% with 1:4-1:5RR. At least till now I haven't found any strategy that has this results with significant compromise on DD and Trade Frequency. 

If one wants to drastically increase the WR, you gotta exit earlier at a very lower Take Profit(TP) level so that more and more of your trade will be closed in profit, that way making them closer and closer to the entry price and making it hard for the strategy to have less losses the strategy also have to maintain the Stop Loss (SL) further and further way. This way is the basic way to increase the WR but RR will surely plummet. 

In the other hand, when you are trying to make a very very logical RR as possible, like have 1:3 or 1:4...if your logic is not the finest and the strongest the WR will inevitably drop to less that 50% or even lower. That way even if you are right, it will take a longer time to achieve the superior RR, and if the entry logic is perfect but there is no guarantee that your position will move smoothly in the direction without sudden pullback or unforeseen news/volatility. 

Impact of WR and RR on the DD:

These two factors have a major role on determining the strategy DD. For example, if the system relies on 1:4RR but only wins 25% of the time, it is mathematically guaranteed to face long streaks of consecutive losses. Eventually the system can be profitable but the losing streak can cause a massive, prolonged DD on the equity curve. 

Another example that I have seen in many of high scalping EAs is that there is literally 90%+ WR that the system is producing in backtesting as well as in real live trading test, the RR is extremely terrible...it is risking certain high for example 20:1RR or 10:1 RR, but it is clearly visible that these system with this WR and RR will have equity curve going straight up and the visible DD will be near zero for long time period. However, the remaining 10% risk probability hits harder sooner or later creating a massive dent on the DD, and if there are 2 or more consecutive losses, DD and Margin-Level is pushed hard. 

Trade Frequency vs WR:

This is very very important... as in data science we need a really good and healthy level of real sample data. Trade Frequency is like a lever, it can tilt to the very low and very high level and from my experience it must be where the strategy is, and we must measure on the basis of the strategy type. 

If the system is a scalper, we have to expect a higher frequency, higher trade count. For scalping system I try to average out on the basis of day. If the Trade Frequency is like 1000/day. I am not touching that scalping system, for me it is way too much and might fall into high frequency trading where retail infrastructure might not be able to support it at all. 

If the system is a intraday, I try to average out on the basis of month. As Forex Market is 24/5, we get about 20 trading days on average without counting the bank holidays and public holidays. So I do not expect to have a trade every single day, on average 15-20 trades/month is good enough for me. Some day there can be 2 trades per day but followed by no trades for 2 days, it is good enough. 

So understanding the balance between proper trade frequency and understanding the type of system is very important so that we get the correct amount of sample data, both in backtest and real account live testing, further more this interconnectivity must aware the trader/developer to stop forcing to create almost (I said 'almost') an impossible system that which has High WR, High RR, Low DD, High Trade Frequency. Looking to create a balanced system having a 'sweet spot' between these basic four factors will be a right and healthier approach in building a system that will last a long time. Not exactly sacrifice but the trader/ developer must balance out one factor to certain extent to promote the remaining three factor. 

One of my favorite personal combination:

Personally I have come to an agreement with myself that I cannot, as a retail trader/developer build a strategy/algo that will have the best nature of these 4 factors that will be durable for 2-5 years continuously. 

This is my top favorite combination = High WR, Low-Normal RR(I am fine with minimum 1:1RR), Low DD, High Trade Frequency. 

I really want to keep my DD very very low, as minimized as possible. Why? Because at backtest we get some approximately clear DD that we can expect, when we test it on a real live account the actual DD will be near to it although we must accept that past result won't perfectly determine the future results. If DD is low on backtest report and forward test report, so at any near point of time we start the system on real account we won't be largely impacted by the consecutive losses in case we have them at the beginning of our live testing. 

From my experience achieving the high RR like 1:4 and 1:5 without volatility and noise in the duration of a position being opened is really rare, FX is a volatile market always changing there will be moments where winners can turn into losers. I prefer consistency over frequent sudden jumps and falls on the equity curve. 

Conclusion

...

The trader/developer who understands the balance with these 4 factors with each other will get an advantageous start in the process of building a working EA, working in a sense we can say profitable. Many of us might be attracted to the high 90% WR, but the health of RR should be also matched... if a system has 90% WR with 1:1RR minimum, no doubt it is profitable... but that system makes 10 trades per year, it won't be enough data so that the EA is healthy as when market dynamics changes that system won't be giving out these attractive numbers. 

Numbers is the thing, playing with them and finding the region that you want to be can be very beneficial, as I told you there are many combinations and permutations; most of them will be a profitable system/strategy but what works for your time, personal finance, patience. If you need the full code of the above system, you can contact me. Connecting the trader/developer mindset with the foundation of these 4 factors, the QUADRANT, will be the basic for creating an edge for oneself and one's trading journey. 

reddit.com
u/Merchant1010 — 1 month ago

Base for a working EA - The Quadrant

Introduction

...

From my quite extensive experience in the FX market, there were many ups and downs periods. The Forex market is indeed a complex market with all the terminology and leverage, but later on I have realized it is a very good cash cow business. 

I have gone through many strategies, research papers and used many. And I am a firm believer that each and every strategy ever created in the world works, we just gotta fine tune and connect it with the best suitable asset class and in the best environment possible.

After countless strategies, right now I am working on automating each and every strategy that I like and works into algos... in this process I have learned many important lessons that I would love to share with others. 

This article will solely focus on the Major 4 factors that I find very important and must treat it as an important base for building an EA. 

The parts of the Quadrant are:

  1. Win Rate (WR)
  2. Drawdown (DD)
  3. Risk to Reward Ratio (RR)
  4. Trade Frequency

 

Connecting the 4 factors

...

Let us connect the 4 parts of the Quadrant.

1) WR

Win Rate (WR) is a percentage of your total trades that results in profit. For example if you traded total of 100 trades in one month and 73 of them were closed in profit (regardless of the dollar value), your WR would be 73%.

2) DD

Drawdown is basically the % lowest point your equity has fallen from the peak equity that you have. If your first position goes down to 4% and it later recovers back to your direction, the statistics will catch the DD to be 4%.

3) RR

Risk to Reward Ratio measures the potential profit of a trade relative to its potential loss. In basic terms, if your SL dollar value is $10 and your TP is $20, you are risking $10 to potentially make $20. 

4) Trade Frequency 

Trade frequency is the number of trades open within the set certain period of time. If you backtest a strategy for 1 year, and the trade count is 500...and as FX market on average works 24/5, 5*4 = 20 days on average per month (averaging out without consideration of public and bank holidays)... so per year, 20*12 = 240 days, the algo system trades 500 trades/240 days = 2 trades/day... this is the trade frequency. 

As I observed other EAs and tried automating my own strategies... for a HEALTHY EA to be profitable, this seems to be the basic/foundational formula: ROI of EA = WR + RR + DD + Trade Frequency. 

Scenario 1:

Suppose the EA has 90%+WR; from what I have observed RR will be compromised.... rarely do we see in retail places that an EA has 90% WR and maintains a minimum of 1:1 RR (not saying there are not, but I haven't found one realistically yet). 90% of the time if the trades are closing in profit, Risk to Reward will be tight, as Risk is normalized but the Reward is bare minimum so the TP is hit more often than regular. Moreover, in this scenario there will be large number of small wins, but one loss will destroy more than half of the wins. 

In this scenario the DD will also be less, and the equity graph will be quite some time of smooth growth and one moment of sudden downfall and then back again to smooth growth... and cycle goes on and on. 

Trade frequency is also crucial.. in whole year if the EA has only taken 10 trades and 9 of them are profitable, the statistics or history report from your broker will show you have the WR of 90% 

Scenario 2:

Suppose the EA has 25% WR but has enormous RR of around 1:5, one trade will make up for your three trades and even some more. The factor of this scenario is that your DD will be high... if you have multiple consecutive losses, the chances of your equity being eroded are pretty high. 

If the Trade frequency is pretty less, the system being right once is a while will eventually cancel out the losses and the equity graph will be slow down slopes with sudden upward spikes. But a huge problem of this scenario is that the account might get blown first before even making a single profit as many numbers of consecutive losses will Drawdown the equity to such extent that the regular lot size position might not be able to open as lack of sufficient fund, that way that one winning trade probability also drops. 

From these two scenarios, what I want the readers to know is that making a healthy EA, the trader/developer must understand the importance of balance between these 4 factors of the quadrant. BALANCE is the key. 

Even with basic permutation and combination of these 4 factors:

P(4,1)+P(4,2)+P(4,3)+P(4,4)=4+12+24+24=64.

After the discussion of two basic scenarios, let us dive deep by using an EA with basic logic and I will tune the RR in various scenarios and how it is going to impact the DD and WR while keeping the trade frequency ceteris paribus, and ultimately the ROI. 

Here is a simple SMA crossover EA that I will be testing on XAUUSD, 15 min timeframe from Jan 1,2026 till July 7, 2026.

Basically this is using 9 SMA and 21 SMA, and here is the backtest result... focus on the factors that we are discussing in this article... WR, RR, DD and Trade Frequency:

https://preview.redd.it/x4xyg8ku4kdh1.jpg?width=1892&format=pjpg&auto=webp&s=80ac34e16e30d624b09883ef82cba0ebf6862e59

Here our WR is 33.46%, DD is 49.6% and our Average Profit Trade is $10.50 and $5.52 is our Average Loss Trade, so basically our RR is 1:1.9, we have a great RR but our ROI is ultimately in negative... basically -36%

https://preview.redd.it/oeyth7fw4kdh1.jpg?width=1899&format=pjpg&auto=webp&s=1b8f454ab8bb980d05ad86e130166aa8eaffc8b3

Now, I will change the InpStopLoss and InpTakeProfit level to higher number to give them more breathing room. 

https://preview.redd.it/ycj4t3a05kdh1.jpg?width=909&format=pjpg&auto=webp&s=b6f67981ec2f4c05b449a4ae91bf2e3f4f146bca

And here is the backtest result after the input changes:

https://preview.redd.it/i5do7h925kdh1.jpg?width=1898&format=pjpg&auto=webp&s=bb645deaf38b7c1b261b99a8fe5516edecd19b67

Here we can see that the negative ROI has changed by a huge margin...WR has jumped to 42.2% from 33.46% and DD decreased to 37.66% from 49.6%, but a critical thing we must analyze is that the RR has been jumbled up. It is just now approx. 1:1.4, from this two back test I want to show how the same logic, has different result when we just tune the RR part... heavily impacting the WR and DD and ultimately the ROI. 

Input codes: 

input double InpLotSize    = 0.01;
input int    InpFastSMA    = 9;
input int    InpSlowSMA    = 21;
input int    InpStopLoss   = 500;
input int    InpTakeProfit = 1000;
input int    InpMagicNumber = 123456;

Just the InptStoploss and InptTakeProfit was changed. The logic remained the same of 9 SMA and 21 SMA crossover. I have attached the mq5 file of this simple logic EA, you can backtest and try working around by adding filters, indicators and such. 

In the sequence of tuning the RR differently, the results were quite different. From both the backtest result we can clearly see that we do not have a clear winning logic/strategy for the XAUUSD 15min timeframe. But we were able to lower down the loss to some extent. 

The above 2 backtest were done in this environment:

https://preview.redd.it/b3tnhbu35kdh1.jpg?width=1096&format=pjpg&auto=webp&s=6468669e51687db71030768c08311b4b7b99bbe3

Now let us move to connecting one with the other factor.

WR vs RR:

These two factors are the most common associative part in any strategy, algo or EA. It is also known as one of the classic Trade-Off phenomenon. I am sharing my experience on this part, after testing many of EAs, and my strategies... it is nearly impossible on retail level to have both high WR and superior RR in a single strategy... for example, 80-90% with 1:4-1:5RR. At least till now I haven't found any strategy that has this results with significant compromise on DD and Trade Frequency. 

If one wants to drastically increase the WR, you gotta exit earlier at a very lower Take Profit(TP) level so that more and more of your trade will be closed in profit, that way making them closer and closer to the entry price and making it hard for the strategy to have less losses the strategy also have to maintain the Stop Loss (SL) further and further way. This way is the basic way to increase the WR but RR will surely plummet. 

In the other hand, when you are trying to make a very very logical RR as possible, like have 1:3 or 1:4...if your logic is not the finest and the strongest the WR will inevitably drop to less that 50% or even lower. That way even if you are right, it will take a longer time to achieve the superior RR, and if the entry logic is perfect but there is no guarantee that your position will move smoothly in the direction without sudden pullback or unforeseen news/volatility. 

Impact of WR and RR on the DD:

These two factors have a major role on determining the strategy DD. For example, if the system relies on 1:4RR but only wins 25% of the time, it is mathematically guaranteed to face long streaks of consecutive losses. Eventually the system can be profitable but the losing streak can cause a massive, prolonged DD on the equity curve. 

Another example that I have seen in many of high scalping EAs is that there is literally 90%+ WR that the system is producing in backtesting as well as in real live trading test, the RR is extremely terrible...it is risking certain high for example 20:1RR or 10:1 RR, but it is clearly visible that these system with this WR and RR will have equity curve going straight up and the visible DD will be near zero for long time period. However, the remaining 10% risk probability hits harder sooner or later creating a massive dent on the DD, and if there are 2 or more consecutive losses, DD and Margin-Level is pushed hard. 

Trade Frequency vs WR:

This is very very important... as in data science we need a really good and healthy level of real sample data. Trade Frequency is like a lever, it can tilt to the very low and very high level and from my experience it must be where the strategy is, and we must measure on the basis of the strategy type. 

If the system is a scalper, we have to expect a higher frequency, higher trade count. For scalping system I try to average out on the basis of day. If the Trade Frequency is like 1000/day. I am not touching that scalping system, for me it is way too much and might fall into high frequency trading where retail infrastructure might not be able to support it at all. 

If the system is a intraday, I try to average out on the basis of month. As Forex Market is 24/5, we get about 20 trading days on average without counting the bank holidays and public holidays. So I do not expect to have a trade every single day, on average 15-20 trades/month is good enough for me. Some day there can be 2 trades per day but followed by no trades for 2 days, it is good enough. 

So understanding the balance between proper trade frequency and understanding the type of system is very important so that we get the correct amount of sample data, both in backtest and real account live testing, further more this interconnectivity must aware the trader/developer to stop forcing to create almost (I said 'almost') an impossible system that which has High WR, High RR, Low DD, High Trade Frequency. Looking to create a balanced system having a 'sweet spot' between these basic four factors will be a right and healthier approach in building a system that will last a long time. Not exactly sacrifice but the trader/ developer must balance out one factor to certain extent to promote the remaining three factor. 

One of my favorite personal combination:

Personally I have come to an agreement with myself that I cannot, as a retail trader/developer build a strategy/algo that will have the best nature of these 4 factors that will be durable for 2-5 years continuously. 

This is my top favorite combination = High WR, Low-Normal RR(I am fine with minimum 1:1RR), Low DD, High Trade Frequency. 

I really want to keep my DD very very low, as minimized as possible. Why? Because at backtest we get some approximately clear DD that we can expect, when we test it on a real live account the actual DD will be near to it although we must accept that past result won't perfectly determine the future results. If DD is low on backtest report and forward test report, so at any near point of time we start the system on real account we won't be largely impacted by the consecutive losses in case we have them at the beginning of our live testing. 

From my experience achieving the high RR like 1:4 and 1:5 without volatility and noise in the duration of a position being opened is really rare, FX is a volatile market always changing there will be moments where winners can turn into losers. I prefer consistency over frequent sudden jumps and falls on the equity curve. 

Conclusion

...

The trader/developer who understands the balance with these 4 factors with each other will get an advantageous start in the process of building a working EA, working in a sense we can say profitable. Many of us might be attracted to the high 90% WR, but the health of RR should be also matched... if a system has 90% WR with 1:1RR minimum, no doubt it is profitable... but that system makes 10 trades per year, it won't be enough data so that the EA is healthy as when market dynamics changes that system won't be giving out these attractive numbers. 

Numbers is the thing, playing with them and finding the region that you want to be can be very beneficial, as I told you there are many combinations and permutations; most of them will be a profitable system/strategy but what works for your time, personal finance, patience. If you need the full code of the above system, you can contact me. Connecting the trader/developer mindset with the foundation of these 4 factors, the QUADRANT, will be the basic for creating an edge for oneself and one's trading journey. 

reddit.com
u/Merchant1010 — 1 month ago
▲ 6 r/DAYTRADERcollege+2 crossposts

Update and Upgrade on the earlier post

As I posted before, I was working to increase the WR to around 70%, improving and testing both in-sample and OSS data.

Previous reference post: https://www.reddit.com/r/Forex/s/4RtJfQcByG

Ninja Intraday strategy is working smoothly it has reached to 69.2% WR, with bare minimum DD of 4.9%, my main objective is to always have the lowest DD possible with healthy WR and good enough trade frequency for the accurate and logical sample.

Since my DD and ROI for 3.5 weeks is secured I am planning to increase the lot size I use for every trade to 0.02, this all stats is solely from trading USDJPY. Will update for this project after few trades taken on higher lot size than bare minimum, as got good enough ROI I am able to risk a bit more.

Happy Trading!

u/Merchant1010 — 1 month ago

Update and Upgrade on the earlier post

https://preview.redd.it/t9jluf72xedh1.jpg?width=1026&format=pjpg&auto=webp&s=b6e16fd659b81911654010e816dd263e45326b40

As I posted before, I was working to increase the WR to around 70%, improving and testing both in-sample and OSS data.

Previous reference post: https://www.reddit.com/r/metatrader/s/Qp5tyRZOr5

Ninja Intraday is working smoothly it has reached to 69.2% WR, with bare minimum DD of 4.9%, my main objective is to always have the lowest DD possible with healthy WR and good enough trade frequency for the accurate and logical sample.

Since my DD and ROI for 3.5 weeks is secured I am planning to increase the lot size I use for every trade to 0.02, this all stats is solely from trading USDJPY.

Happy Trading!

reddit.com
u/Merchant1010 — 1 month ago

Anybody looking at USDJPY right now?

The major resistance of 162.398, this might be critical breakout or a fake out... if it is a strong breakout, a pullback entry can optimum for swing traders. But also the macro-economic data of USD wrt JPY must be looked upon... not a swing FX trader... but these breakout and pullback of major resistance zone is a very replicable pattern from my experience... these kind of patterns are very common in FX, stock market. If this pattern works, the 162.398 will turn in to resistance turned support level. NFA.

u/Merchant1010 — 1 month ago

Past 2 weeks work.

Working on to move the WR to around 70% and RR to slightly lower for healthy consistency. The stats are for last two weeks of the strategy that trades USDJPY intraday. If my WR and RR ratio is healthy all I am caring about is to keep my DD below 10% for the long run.

Inspiration : "We don't start with models. We start with data. We look for things that can be replicated thousands of times." - Jim Simons

u/Merchant1010 — 2 months ago
▲ 13 r/Forex

Past 2 weeks work, anticipating a good week from tomorrow.

Working on to move the WR to around 70% and RR to slightly lower for healthy consistency. The stats are for last two weeks of the strategy that trades USDJPY intraday. If my WR and RR ratio is healthy all I am caring about is to keep my DD below 10% for the long run.

Inspiration : "We don't start with models. We start with data. We look for things that can be replicated thousands of times." - Jim Simons

u/Merchant1010 — 2 months ago

Done for the week.

I built a focused EA about a month that trades USDJPY with logic that catches repetitive patterns... inspiration is:
"We don't start with models. We start with data. We look for things that can be replicated thousands of times." - Jim Simons

I am anticipating the WR to be around 70%, not 80-90%+ that is extremely hard to get and maintain in the long run from my experience, I might be wrong. Ran the system for exactly 2 weeks.

And one of the CORE goal for my system is to keep the DD less than 10%.... this is very very important... this is the stats of my small real account. I will be updating the parameters input every 3 months so that this algo bot with stay updated with the changing market dynamics. The Sharpe ratio is right now 0.41, if you guys know on how I can increase this to 1-2, please let me know.

u/Merchant1010 — 2 months ago

Ran the algo for 2 weeks, done for the week.

I built a focused EA that trades USDJPY with logic that catches repetitive patterns... inspiration is:
"We don't start with models. We start with data. We look for things that can be replicated thousands of times." - Jim Simons

I am anticipating the WR to be around 70%, not 80-90%+ that is extremely hard to get and maintain in the long run from my experience, I might be wrong.

And one of the CORE goal for my system is to keep the DD less than 10%.... this is very very important... this is the stats of my small real account. I will be updating the parameters input every 3 months so that this algo bot with stay updated with the changing market dynamics. The Sharpe ratio is right now 0.41, if you guys know on how I can increase this to 1-2, please let me know.

u/Merchant1010 — 2 months ago