What are the best practices for developing an EA?

 
While developing more and more EAs, I'm starting to realize that I don't have a solid foundation for building them, so I want to learn and ask about the best practices.
 
Osmar Sandoval Espinosa:
While developing more and more EAs, I'm starting to realize that I don't have a solid foundation for building them, so I want to learn and ask about the best practices.
interesting question I am curious what others also do, Usually everything starts with a plan and that plan I talk with AI untill i have a detailed strategy. After that I usually create the code (also with AI it saves me a lot of time lol) and after that I start my whole backtest pipeline and then at the end I place my Expert Advisor in a small live account and watch how it goes, If everything goes right I let him play with a larger live account.
 
Thomas Eduard Van Der Jagt #:
interesting question I am curious what others also do, Usually everything starts with a plan and that plan I talk with AI untill i have a detailed strategy. After that I usually create the code (also with AI it saves me a lot of time lol) and after that I start my whole backtest pipeline and then at the end I place my Expert Advisor in a small live account and watch how it goes, If everything goes right I let him play with a larger live account.
How is your backtest pipeline?
 
Osmar Sandoval Espinosa #:
How is your backtest pipeline?

At this moment my backtest pipeline is:

single backtest to look or my bot is doing what it is supposed to do

after that full optimization 

after that I will do single backtesting with a lot of more time for example full optimization is from 2023 to 2025 and single backtesting is from 2020 to 2026 most of the times I can see now which are overfitting but sometimes is that not enough that is why i do after that monte carlo testing

If the bot still survived the previous rounds then I place it with a small live account to see or the backtest and live results are the same. And after that the real game begin :)

Do you have any backtest pipeline?

 
Thomas Eduard Van Der Jagt #:


Do you have any backtest pipeline?

It depends on what I'm building. For EAs meant for trading, I backtest them using the Strategy Tester, check the stats, and then move them to demo and live accounts.

But recently I started a project on an EA designed for account protection, so I tested it mostly on live accounts.

 
Osmar Sandoval Espinosa #:

It depends on what I'm building. For EAs meant for trading, I backtest them using the Strategy Tester, check the stats, and then move them to demo and live accounts.

But recently I started a project on an EA designed for account protection, so I tested it mostly on live accounts.

okay okay sound interesting, how does the EA protect your account?
 
Thomas Eduard Van Der Jagt #:
okay okay sound interesting, how does the EA protect your account?

It is based on the stochastic oscilator.

Overbought and oversold zones for closing trades. :)

 
Osmar Sandoval Espinosa #:

It is based on the stochastic oscilator.

Overbought and oversold zones for closing trades. :)

I would call that a dynamic exit strategy.

When I see "account protection," I tend to think of account balance, margin call level, and/or drawdown being referenced.

Admittedly, I'm a stickler for terminology.