How I can open the same number of long positions in the sale, and vice versa in the BUY with a ONE increase
-
Thank you very much I will try the experiment when the market starts and I will give you the result.
Thanks again, and I appreciate your time and effort -
@khalids222 I run it in tester and it opened a lot of trades but never closed one. Maybe you want to re-set your counter in case a trade is closed?!
-
@trader-philipps I apologize for you, but I need your help, you already helped me in the way I buy and sell in order one by two three and so on.
But after I added the closing of all deals upon profit, I found that the EA completes the opening of the deals meaning
When opening sales contracts 0.01 - 0.02 - .0.3 etc after close this and open a new position start from 0.04 not start from 0.01 again
I think there is a problem with the variables
https://fxdreema.com/shared/BTbHzM7oc -
@trader-philipps how i can rest ?
-
@khalids222 I really have no idea what your strategy could be, but it looks a bit dangerous! However, let's first get the errors out.
You have a constant called LOT and a variable. Delete the variable and use the constant in the BUY and the SELL block. Alternatively you might use a variable block on the init tab and specify the value of the constant (rename it before) and put it as value for the LOT variable.
Next you need to specify where the reset should appear. I reset the variable on entering of the close trade block (#41).
https://fxdreema.com/shared/jJthvY2RdCheck it out and let me know, if that's what you want to achieve!
-
@trader-philipps
Thank you very much.
When the market opens, I will try it and let you know sure -
@trader-philipps Are you sure that lonely block on the 'On Init' tab will work? What about the 'never use lonely blocks' mantra?
-
@l-andorrà Yepp, why not? You may set a pass block in front of it.
-
The EA will not execute single blocks, so a pass is necessary

-
As you can see, it works well without Pass, in testing and the market is closed.

-
@roar As you can see, it works well without bass, in testing and the market is closed
-
@khalids222 Put a pass block in front anyways! It's the better approach.
-
Good to know it works, though. Interesting.
-
Yes, it is true that I noticed, despite IT work, that sometimes it did not work well without pass .
with pass very good -
@khalids222 said in How I can open the same number of long positions in the sale, and vice versa in the BUY with a ONE increase:
@roar As you can see, it works well without bass, in testing and the market is closed
No, a block will not execute without a connection.
Luckily, in this particular case the OnInit tab doesn't actually do anything, because the variable gets value 0.01 when its first declared.

-
@roar THANK YOU FOR ALL
-
@roar Good to know, roar.