Correct. In order to close any open trade you need to create a separate structure of conditions. Never connect them after Buy/Sell blocks.
Posts made by l'andorrà
-
RE: check 1 last condition after buy orderposted in Questions & Answers
-
RE: formula distanceposted in Questions & Answers
So, If I understand correctly, you will have an initial trade (trade 0) already active and you want to know the distance in pips for several later trades (trade 1, trade 2, etc.), from opening price to opening price. Correct?
How many trades after trade 0 will need to be calculated?
-
RE: Problem with candle ID and "Shift"of indicatorsposted in Bug Reports
I'm sorry to say this but I had to renounce to work on fxDreema's MT5 due to its many troubles and lack of solutions available on the bugs forum :(. Maybe the administrator van give a final answer.
-
RE: Problem with candle ID and "Shift"of indicatorsposted in Bug Reports
Try to redo this project on MT4 and try it. More than probably the problem is just on MT5.
-
RE: EA wont buy, help!posted in Questions & Answers
Try swapping buffer 0 position by buffer 1 on the manually inserted output buffers dialog box. If green colour is working now instead of orange then it probably means that buffer 0 is not understood by the platform. This happens a lot on MT5.
-
RE: My questionsposted in Questions & Answers
@nhamfx said in My questions:
By the way, can I save my project in my Computer in the form of diagram like as I created the project by fxdreema before?
No as far as I know.
-
RE: Count of objects (dynamic s/r project)posted in Questions & Answers
Try this when counting objects:

And use this when counting candles:

-
RE: how to put below and above loop tradersposted in General Discussions
Sorry, what are "loop teaders"?
-
RE: Total lots open on screen?posted in Questions & Answers
You are right CPBonzo. I didn't consider the closed trades. Those lots would still be added to the "Lots" variable. Certainly not a trivial issue to deal with. More thinking is required.
-
RE: I need a good programmer to help meposted in Questions & Answers
Sorry for my delay. I'm still taking a look on it.
-
RE: formula distanceposted in Questions & Answers
Do you mean distance in pips? An then between what? Open price? TP? SL?
-
RE: Script to create a hedge Orderposted in Questions & Answers
Hi this this is what you need:

It's a martingale after all. Just put all required conditions before this block and then play with all parameteres untill you find the combination you are looking for (those shown here are the ones included by default). Let me tell, however, that martingales are never a win on the long run. I hope it helps.
-
RE: Waiting after a certain conditionposted in Questions & Answers
Easy. Just create a Yes/No variable for the arrow condition. Once the arrow is visible your variable will be "Yes". Then use a condition block immediately above your "bull candle" condition block in which the condition is just "Yes".
That way you can have the arrow condition (Yes) but no bull candle, so no order will be executed. On the other hand, if the arrow condition is "NO", no matter how many bull candles will appear, there will not be an order. Only when both conditions are met, there will be an order.
-
RE: Trade if open trades are less than...posted in Questions & Answers
I answered you on your other thread.
-
RE: Total lots open on screen?posted in Questions & Answers
Weird. Can you please include a screenshot and the messages log?
-
RE: Mt5 debug, please recompileposted in Questions & Answers
As far as I can tell, fxDreema is not designed for MT5. Too many bugs and too little action from the administrator to solve them, apparently.
-
RE: Cannot get Hedging basics to work, Master coder required :)posted in Questions & Answers
Honestly it is not an easy thing to do and reward is more than questionable. I strongly recommend you ti read this before considering seriously if you want to do it.
https://fxdreema.com/forum/topic/5216/hedging-audusd
https://fxdreema.com/forum/topic/3331/how-to-create-an-ea-like-Sure-fire/4
https://fxdreema.com/forum/topic/2023/Adding-a-Sure-Fire-Hedge-to-an-Startegy/2Personally I'm afraid I would be interested in a project like that. Sorry!
