Just curious. Are all those Constants really necessary? 
Posts made by l'andorrà
-
RE: Lot size of last closed trade due to Stop Lossposted in Questions & Answers
-
RE: red newsposted in Questions & Answers
Dear trader.philipps. Would be so kind to share it once you develop it?

-
RE: auto equity calculationposted in Questions & Answers
Another one is resetting that same variable to 0 at the end of every day through a time filter block.
-
RE: How to close these orders?posted in Questions & Answers
This loop within a loop is a very interesting feature, ambrogio. I don't fully understand how it works. If I guess it correctly, the first 'For each trade' block will find the newest open buy and then, the second 'For each trade' below will seach for the oldest two open buys?
If so, how can you link each pending orders with the exact previous buy? I can't see it now.
-
RE: red newsposted in Questions & Answers
If you know exactly at what time those events happen, you can create two string variables to specify those opening/closeing periods within a 'Time filter' block.
-
RE: auto equity calculationposted in Questions & Answers
You will need a variable that should be reset every day. Then try this:

-
RE: positive stoplossposted in Questions & Answers
In general, yes, but that will depend on your combination of blocks. Can you please share you project?
-
RE: How to close these orders?posted in Questions & Answers
Just curious. What looping direction should be used?
-
RE: Please Help how to use Betting: Custom Sequence?posted in Questions & Answers
Not sure if that is the correct MM system you need. I would recommend you Paroli/Martingale. Apparenty that's exactly what you are describing. Youy can find how it works here:
https://fxdreema.com/instructions/builder/money-management
And here:
-
RE: How/what blocks can i use the blocks to structure this problem?posted in Questions & Answers
It depends. How many orders can ther be open at the same time. Linking each one to 'its own' pending can be solved with arrays. Sadly that is something that can't be done with fxDreema, so I can't either :(.
However, roar craeted a wonderful example not long ago and maybe could geive you a hand.
-
RE: CUSTOM INDICATOR IN SEPERATE WINDOWposted in Questions & Answers
Ok. First questions. HHow are 1st and 2nd symbol z score got? Are they the values of that indicator on candles Id 1 and 2 possibly?
-
RE: Pleas help me how to partially close the trade one time for 50% from initial volume lot sizeposted in Questions & Answers
You can try this, but beware that will happen as soon as the trade is open.
https://fxdreema.com/shared/dXqq4QTmb
You will need additional conditions if you want it otherwise (as I guess).
-
RE: Unreliable onTrade filter events on MT5posted in Bug Reports
This problem is already known by the administrator, but apparently he is not specially motivated to fix it, I'm afraid.

-
RE: How can I get value to Accumulation/Distribution ?posted in Questions & Answers
Easy. Create a double variable and use it here:

-
RE: Manual Trailing stop lossposted in Questions & Answers
Trader.philipps is right. Do you have a project to start with? That would ease the possible solution you are looking for.
-
RE: Add more than two variablesposted in Questions & Answers
This is what you need to calculate each median value per candle and store it on each of your variables:

This is just for candle ID 1. You need to do the same for all other candles (from Id 2 to ID 15). Then you would need a custom code block calculating the average value of all those stored numbers. Sadly, I don't know hot that custom cose should be, sorry.

-
RE: Change position of pending orderposted in Questions & Answers
My first suggestion is erasing every pending order and then opening a new one as price moves as you want. You don't need to 'move' the same pending order. Just make it evolve. Obviously that would be more efficient on a 'Once per bar' basis. Is that the case?
-
RE: Manual Trailing stop lossposted in Questions & Answers
Will all trades be opened manually? If so your EA will have to use number zero as Magic Number. Otherwise, it will not work. On the other hand, I guess the common 'Modify stops' block would do the job. As trader philipps said, it should be put on the 'On trade' tab.
