Trusted Trading Brokers banner
Viewing 15 posts - 1 through 15 (of 20 total)
  • Author
  • #120542

    For context I recently had a 1 to 1 session with Petko over video call which was extremely useful. I wanted his help in understanding why my EAs were performing so differently on demo compared to the backtest results shown in EA studio. I think my problem was that I over optimised all of my strategies, I was so preoccupied with looking for that perfect balance line stability, that I forgot to do any robustness testing.

    I am now entering into a new period of testing. I have devised my Objective (see below).

    Petko, can you tell me whether I have set the right Reactor settings to achieve my objective and if not, can you advise me what to change? Happy if anyone else wants to pitch in too.



    To find 1 unit risk to 1 unit reward EAs across the 6 main pairs, plus EURJPY and EURGBP to balance risk. Also on 5M and 15M timeframes. I want to ultimately find a basket of EAs that must collectively perform with a win / loss rate of c.55% to ensure consistent profits are generated. This is done by setting up the EAs with fixed and equal SL and TP values, ie 40 pip stop loss and 40 pip take profit. Statistically there is a 50% chance each trade will win or lose, but I am convinced there must be some indicators which would give a greater than even chance of resulting in a win, even though the distance from the trade open point to SL or TP is the same. 51.2% is my breakeven point taking into account spread and trading costs. I would like to find c. 30 EAs, each opening 2-3 trades a week, (c. 250-300 trades a month) that can collectively keep delivering the 55%+ win rate, month after month.

    I ran large scale tests and ran multiple demo accounts and hundreds of EAs based on this idea, with a first project starting in August 2021 and a second (still under way) starting in April 2022, but in hindsight I believe I over optimised those strategies as I used no robustness testing in generating them, and the best performers have usually flopped when I have switched them from demo to live.

    I have started running the Reactor again but with different and more robust settings.

    Are these settings correct to help me achieve my objective as per above?

    I plan to run the below Reactor 16 times, 8 * 5 mins timeframe for the 6 main pairs plus EURJPY and EURGBP and 8 * 15m timeframe again for the same 8 pairs. I will collate and evaluate all EAs at the end of the 16 tests, to select the best c. 30EAs based on highest win / loss rate.





    Hey Steve,

    I appreciate you sharing your experience in the Forum. I am glad to hear that the 1:1 session was useful as well.

    So here is my feedback:

    1. I would add the reverse option because it is just logical if there is an opposite signal for the current trade to be closed and a new one to be opened (in the opposite direction).

    2. I can’t really say about the 40-40 SL and TP because I always leave it on the reactor but give it a try…

    3. I am not a fan of Full Data Optimization. Normalizer is alright…check a video I recorded about it:

    4. For Robustness I would use just the Monte Carl. For me, that is enough. With randomize Indicator parameters.

    If you remember in the call I shared with you that I run the Reactor using 100k bars and then I recalculate the collection with the 200k bars so I see which strategies are performing well in the ”unknown” data. That is a trick that guarantees you are using unknown data, which is a great robustness test.

    Let me know if I was useful or if I missed something.



    Thank you for responding so quickly Petko, I really appreciate it.

    I am happy to leave out the full data optimisation. but is there a way to incorporate “Entry Time” into my strategies? I am conscious that almost all EAs perform better at certain times of the day and I’d like that setting to be in my EAs to ensure they only open trades at the most profitable times of the day.

    The only way i could see to incorporate time of day into the EA was to have it as a preset criteria and then ask the Reactor to optimise it (ie select the most profitable hours of the day) in Full Data Optimisation, but if there is another way, please let me know? Thank you


    Also Petko, you mention running the Reactor using 100K bars and then re calculating with 200K bars. Is that not the same as running the reactor and in Generator Settings, setting 50% out of sample? That way your data history could be 200K bars, but the strategy would only be formulated using 100K (50%) bars and then then green zone on the chart would show you how the EA performs in the other 50% (100K bars) out of sample data?

    Samuel Jackson

    Hey Steve,

    I’ll take a second look at your post tomorrow as there is a lot to digest in what you are trying to do.

    A couple of initial points though.

    One is that when Petko suggests checking with 200k bars if have generated using 100k bars this allows a check of OOS BEFORE the insample data as opposed to after the OOS which is done by setting OOS % in generator.

    I agree also to stick with Monte Carlo only for robustness in the Reactor. You could increase it’s effectiveness further by increasing the number of tests, or afterwards running it through the validator a second time perhaps but for me it’s the best robustness tool.

    I also never really using the optimiser but in this case I can see how it probably is useful for what you are doing. As you have so few indicators and no exit indicator along with not allowing optimization of stop loss and take profit I think it’s okay and has a much lower risk of over optimization than normal but generally I would avoid.

    In this specific case I would personally either use only the optimiser in the reactor as you have the setting OR use the normalizer one the reactor as Petko suggests and then for each strategy optimiser only the time entry indicator with reasonable size steps (The more time consuming option but the better of the two in my opinion).

    So ideally in a nutshell: Reactor with normalizer and Monte Carlo and then optimize only the time setting on an individual basis with hourly or two hourly steps for example.

    Also check out the time setting in tools for either control of when your strategy trades.

    Hope that helps


    Hey Steve,

    Yes, that is right, but when generating with 100k bars and then recalculating with 200k bars, you are doing the OOS in the opposite direction.

    I am generating the strategies with the most recent data and then checking if they would work in the previous 100k bars.

    I don’t say it is the better way to go, but just another way to check the robustness.


    I guess Samuel explained it really well because his English is quite better than mine. But just making sure you got my point.:)


    Ok thanks Samuel and Petko, I really appreciate the advice. I am now working on a new 1:1 risk / reward project but the EAs will be generated using adjusted settings as per your recommendations.

    The last couple of days i have been playing with the 100K / 200K bars method, or actually i have been testing using different date periods, for example generating EA using data horizon 1.1.20 to 31.12.21. Then downloading collection and re calculating based on data 1.1.20 to 31.7.22, so each EA shows performance in green on the chart for the “new” 7 month period ie 1.1.22 to 31.7.22. So far i have had mixed results with this, I would have expected that for EAs generated using robustness tools that performed  well in 1.1.20 to 31.12.21 MOST (but not all) would continue to perform well in the 1.1.22 to 31.7.22 period. But that has not been happening, in fact i have yet to generate a collection which has a higher profit figure in Portolio as at 31.7.22 compared to 31.12.21. Is there any reason why that might be? I am sure they have not been over optimised as i have used the settings as per above.


    As ever any advice always appreciated.


    Samuel Jackson

    Hi Steve,

    First point is that you can never be 100% sure that a generated strategy hasn’t been over optimized or will perform well in the future really. Robustness testing will certainly reduce this likelihood and I wouldn’t be trading a strategy that didn’t pass this filter.

    It sounds like you are generating a collection using the reactor and then adding them all to the portfolio and then checking OOS and not getting a profitable single asset portfolio? This isn’t too surprising really

    I would be putting together a multi asset portfolio rather than a single asset portfolio.

    Samuel Jackson

    Also you seem to be very restrictive in the strategies you are targeting with EA studio, care to explain your logic further?

    Often principles of discretionary trading don’t cross over properly to algo trading


    Thanks Samuel

    “It sounds like you are generating a collection using the reactor and then adding them all to the portfolio and then checking OOS and not getting a profitable single asset portfolio? This isn’t too surprising really”.

    That’s basically right, for example I create a collection of my best looking EURUSD 5M strategies, generated using the Reactor with above settings, and over data period 1.1.20 to 31.12.21. I load them into portfolio and calculate and check their collective profit figure at 31.12.21, then change data horizon to 1.2.20 to 31.7.22 ie 7 months extra data, but invariably the collection has lost money over the extra 7 month period.

    I take your point re a multi asset portfolio. I am running my tests across balanced pairs. Then i load collections of EAs and check them in the Portfolio, asset class by asset class, but it is not as if I am seeing great results for say, EUR JPY, which i know will compensate for mediocre results for USDCHF. None of the collections seem to be showing continued profitability for the newly added 7 month data period.

    Unless I am missing something the Portfolio feature can only be used for one asset at a time? You can’t create a portfolio showing EAs from USDJPY, EURUSD, AUDNZD etc at the same time?


    Re your second point Samuel, I think you’re right. I have become fairly obsessed with the principle of the 1:1 Risk: Reward strategies. If you set a strategy that has an equal pip value of stop loss to take profit, the win rate would average out to 50% in totally random market, exactly like a coin toss. But we don’t believe the market is random, and we believe that indicators DO have some predictive qualities (if they didn’t, again we would expect to see a 50% win rate over the long term). So I have left compelled to find those indicators that can tip the win rate to 52/53/54/55%. But as you say it is a very restrictive approach and i think i need to focus on other methods. In my 1 2 1 Petko suggested EAs with large stop losses and smaller TPs have performed better in his tests, have you found the same? Is there any particular approach which has generated strong results for you in the past?

    Samuel Jackson

    Hi Steve, yes you are right in EA studio you can only create a single asset portfolio. But can check the combined results manually easily enough.

    Also I would say that expecting 7 months results to be good for a strategy only developed using 2 years of data on M5 is also pretty unrealistic.

    2-3 months would be a better wf amount in my opinion.

    Also remember you are not managing robots in anyway with that system but simply putting them on and leaving them for 7 months (which is ages).

    Samuel Jackson

    Yes I agree with Petko on large stop loss and small take profit being able to work well.

    Your logic is reasonable, however remember it is the average winning trade / average losing trade x the probability of winning that is important.

    For example what would you prefer:

    Strategy A: 1:1 stop loss or take profit ratio with a 60% win/loss ratio

    Strategy B: 2:1 stop loss to take profit ratio but with a 80% win/loss ratio

    Let’s use 100 dollars risk as an example;

    Strategy A should make 10 trades and win 600 and lose 400 which will mean 200 profit with a profit ratio of 1.5

    Strategy B should make 10 trades and win 400 and lose 200 which is also 200 profit but has a profit ratio of 2

    That example is only expecting a much smaller relative increase in probability of winning against a halving of the tp/sl ratio also and still outperforms it.

    The probability of the trades winning combined with the risk to reward ratio of each trade is what’s important.

    Samuel Jackson

    Also it’s by design that Ea studio portfolio only does a single asset portfolio. It’s purpose is to create a portfolio expert advisor that can only be attached to a single chart so all the strategies in the portfolio must be for the same symbol and timeframe.

    I initially thought it would be good to have a feature to do a combined asset portfolio but its not something I would use anymore even if it existed actually.

Viewing 15 posts - 1 through 15 (of 20 total)

You must be logged in to reply to this topic. Login here