- Início
- Comunidade
- Programação
- I need help coding my buy and sell positions and closing the...
Advertisement
Edit Your Comment
I need help coding my buy and sell positions and closing them, and lot size to
Membro Desde Oct 26, 2019
1 postagens
Oct 31, 2020 at 23:41
Membro Desde Oct 26, 2019
1 postagens
Hi guys,
So I'm a resident doctor who's gotten hooked on trading, 2years so far and dare I say it's profitable.
So cus of my schedule I decided to learn how to code my own EA.
Here goes..
My plans quite simple, basically 5 and 10 MA cross-over.
I've successfully defined all my parameters and how it should go.
But the problem I keep getting errors in is opening and closing buy and sell orders and lot sizes.
What I want is simply to buy when 5 crosses above 10,then close when 5 crosses below 10 and open a sell order immediately, just 1 order at a time.
And for the lot sizes, I want it to automatically calculate my lot size to always take one fifth of my free margin so I wouldn't get stuck on a fixed lot size as my balance grows.
I'd really appreciate whomever can guide me through this process.. Thanks in anticipation, all ideas are welcome.
So I'm a resident doctor who's gotten hooked on trading, 2years so far and dare I say it's profitable.
So cus of my schedule I decided to learn how to code my own EA.
Here goes..
My plans quite simple, basically 5 and 10 MA cross-over.
I've successfully defined all my parameters and how it should go.
But the problem I keep getting errors in is opening and closing buy and sell orders and lot sizes.
What I want is simply to buy when 5 crosses above 10,then close when 5 crosses below 10 and open a sell order immediately, just 1 order at a time.
And for the lot sizes, I want it to automatically calculate my lot size to always take one fifth of my free margin so I wouldn't get stuck on a fixed lot size as my balance grows.
I'd really appreciate whomever can guide me through this process.. Thanks in anticipation, all ideas are welcome.
Membro Desde Aug 06, 2020
3 postagens
Dec 17, 2020 at 02:23
Membro Desde Aug 06, 2020
3 postagens
Step by Step
Membro Desde Oct 26, 2020
27 postagens
Dec 21, 2020 at 12:22
Membro Desde Oct 26, 2020
27 postagens
Even if you have half-baked knowledge of programming you should be able to create an algorithm for yourself using python for MT4. It’s fairly easy to use. I thought of myself as technologically-challenged before I created 2 EAs for daytrading stocks and forex on charles schwab and fxview. Although I use RSI for trend trading and manually sit in front of my system but at times I make use of eas to trade and send me alerts. To be honest if I could do it anybody can :)
Membro Desde Aug 27, 2017
84 postagens
Jan 05, 2021 at 07:13
Membro Desde Aug 27, 2017
84 postagens
It's a fairly simple strategy. But please understand that some of the programmers need to get paid for doing this project.
Trading is a marathon, not a sprint.

*Não serão tolerados uso comercial ou spam. O não cumprimento desta regra poderá resultar na exclusão da conta.
Dica: Ao adicionar uma URL de imagem/youtube, você estará automaticamente incorporando-a à sua postagem!
Dica: Digite o símbolo @ para que o nome de um usuário que participe desta discussão seja completado automaticamente.