@hasnifx said in Help me to build my first EA:
@l-andorrà can u help me built ea with custome indicator
I'm afraid fxDreema is not designed for custom indicators, sorry.
@hasnifx said in Help me to build my first EA:
@l-andorrà can u help me built ea with custome indicator
I'm afraid fxDreema is not designed for custom indicators, sorry.
Correct. In order to close any open trade you need to create a separate structure of conditions. Never connect them after Buy/Sell blocks.
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?
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.
Try to redo this project on MT4 and try it. More than probably the problem is just on MT5.
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.
@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.
Try this when counting objects:

And use this when counting candles:

Sorry, what are "loop teaders"?
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.
Sorry for my delay. I'm still taking a look on it.
Do you mean distance in pips? An then between what? Open price? TP? SL?
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.
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.
I answered you on your other thread.
Weird. Can you please include a screenshot and the messages log?
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.
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/2
Personally I'm afraid I would be interested in a project like that. Sorry!