How to run 2 blocks having far numbers
-
Hello,
I was trying to build a small EA with hedging strategy.
I need to check " PIPS AWAY FROM OPEN PRICE" for my currently opened BUY & SELL OPTION. If it is more than 500 pips I need to check whether it is BUY or SELL. If it is BUY I need to take a new SELL position. If it is SELL I need to take a new BUY position.This is my requirement. The problem is I added 2 " PIPS AWAY FROM OPEN PRICE" block for my each BUY & SELL and kept it as wait till pass. When I do that it is stuck with my first block. Not going to the second block to check the condition.
Please help me to resolve this or any alternative solution for this.
-
.
It is stopping at Block 4 Now. -

I tried this alternative option. But this is having 2 issues.
- It is stopping at block 5.
- The same PIPS AWAY is working for my newly opened SELL position at Block 5.
I need to check PIPS away for the BUY & SELL in Block No.2&3 only. Also for whichever (Block 2 or Block 3) is crossing 500 PIPS away I need to take an opposite trade of the same.
Please help me to sort this out
-
@faiz43 HI
please share your project with the link.
you can do in the project menu.That is not a bug, you should move this to "Answer&Question" category and other users can see your question
-
@faiz43
That blocks just run one time because you don't close position and block 1 never run again.
Blocks 2 ;3 opened a position and block 1 stoped forever -
@xfire here is the link. https://fxdreema.com/builder
Also please let me know how can I move this query to Question and Answer.
-
@faiz43 i think you can edit the first post and change it
-
@faiz43 please use the share project menu for creating a project link.
this link is builder base page -
I am sorry, I am just 2 weeks old in fxdreema.
Here is the updated link.https://fxdreema.com/shared/VzlAet27e -
@faiz43 i think you can a little change and use it
-
@xfire Thank You. It is working. Let me add some modification as per my requirements ( I dont need to close the old trades, need to open new trades by keeping the old BUY & SELL ) will please you for any further assistance required.
Thank you so much for your wonderful support -
@faiz43 I'm too new in Fxdreema. you're welcome
-
@faiz43
You have to just delete the close trades block and reconnect orange lines, but if your not using stop loss then you will have to manually close the trades.