Greetings @roar ,
A thousand apologies for disturbing you. I just wanted to thank you for your earliest response and support.
Just to give you a brief on my project. I am simply trying to create an EA on mt5, where positions are open based on the RSI indicator (Overbought/Oversold). Essentially there are no stop-loss, there is a take-profit (which is very minimal). Opened positions are closed after a candle or two has passed by.
I am positive that the first couple trades are going to take minimal profit, at the same time I am positive the last trade opened, is going to be a loss. Which is why I would like the EA to open the first couple positions with lot size of 1.0 (must be adjustable) and as more positions have been closed, the lot size will decrease. For example, if the first position started at lot 1.0, then every 2 positions (for example, must be adjustable) lot size will decrease by 0.1. However, when EA closes the two positions, both with lot size of 0.1, then the next positions taken will be 0.01 (because you can not take positions a 0 lot position (0.1-0.1=0) until a new candle/bar is opened.
When the new candle is opened, and no position are opened, then restart. What do I mean by restart. I mean the positions that will be opened on a new candle when conditions are met, shall start over starting with lot size of 1.0, then every two positions closed, decrease lot size by 0.1, until lot size reaches 0.01. And the process goes on and on.
I just wanted to explain it to you in detail.
I would like to tell you that I am not a programmer, and I am really new to the whole mt5 forex trading world. As much as I read the articles presented by fxdreema, I still have blank mind unfortunately. So I kindly request from you, at your earliest convenience to baby step me, as in tell me exactly what should I do in fxdreema (what to type in, which blocks to connect) in order to complete this project.
My struggle is how to start the lot size by 1.0 (adjustable) when conditions are met, and then every 2 positions closed (adjustable), decrease the lot size by 0.1 (adjustable) until the EA reaches lot size 0.01. Then on new candle restart lot size, start with lot size of one and decrease as positions are taken.
I kindly request help from the one and only @roar with my struggle.
Shared Project: https://fxdreema.com/shared/ntRhJgAUc
Sincerely
Rami