Not sure I fully understand. If I understand it correctly all open trades should be closed if overall profit is $10, no matter is some are in profit and other in loss, right? I don't get the last part where you want to close the 'more profitable' trades only.
Posts made by l'andorrà
-
RE: I am stuck Please Helpposted in Questions & Answers
-
RE: help build a simple EAposted in Questions & Answers
Do you have any initial project to begin with?
-
RE: how can I measure distance and save in to a variable value?posted in Questions & Answers
I replied to this into your other thread. Do you really need the lines? The bot cannot see them.
-
RE: Multiple Posiposted in Questions & Answers
You will have to create your customized loop, not using any existing block. And that will depend on how many different values the TP can take.
-
RE: Need a guide on thisposted in Questions & Answers
Do you really need the lines to be visible? The bot doesn't ned them for calculations.
-
RE: How to close 75% in profits of total trades runningposted in Questions & Answers
@Mdfaculty You can always create a Constant that can be embedded into the block so you can use different values as an input parameter.
-
RE: Last trade resultposted in Questions & Answers
You should use the purple (on trade) dot in block 7 instead of the pink one selected now.
-
RE: Draw Fibonacci obj with custom level descriptionposted in Questions & Answers
AFAIK that is not possible in fxDreema unless you add some custom code, sorry.
-
RE: How can I get my ea to read previous days price action and current day price action?posted in Questions & Answers
You should store that information as soon as the 'once per day' block is executed but only if that block is executed at the exact hour the 'look back period' is closed. Otherwise values would be distorted.
-
RE: Blocks being skiptposted in Questions & Answers
You should separate both blocks 5 and 6 from this structure. They are not executing any calculation, just showing info on the chart. You can combine both of them into one and use a separate block tree.
-
RE: Something like break even pointposted in Questions & Answers
Ok. So what is the minimum profit beyond 1 pip to consider as the minimum to close the trade?
-
RE: draw line at the next open price (stock)posted in Questions & Answers
Then horizontal lines are not necessary, you just need the calculation for the arrow, right? When you say 2%, you mean a 2% in price level, correct?
-
RE: Multidimensional Arraysposted in Questions & Answers
Man, I'm still learning how array works.
What you want goes beyond my comprehension, I'm afraid. I hope roar can give us a hand, because I find this very interesting. -
RE: stop lossposted in Questions & Answers
@massoud-fe Then you need to name the line in a way that the bot can recognize it. You can call it for example SL_line and do this:

-
RE: controlling the prev last barsposted in Tutorials by Users
Candle -1 means a candle that doesn't exist yet. That means the bot cannot have any value for any EMA on that candle. The minimum should be candle ID 0. Then you can create a loop counting how many candles within the last 8 are meeting that condition.
-
RE: Multiple Posiposted in Questions & Answers
You can use as many blocks as different TP levels or one only block with a loop changing the TP distance.
-
RE: Positive - Negativeposted in Questions & Answers
Yes, but please don't forget to renumber those blocks I specified.