Thanks majinrex, I tell you:
https://fxdreema.com/shared/ObgZFYHce
1.- Okay.
2.- I manually open the positions to test this losing strategy, so you don't need anything in "on Tick".
3.- and 4.- In the "on Init" tab, block 13 "> losser" is a button called >losser, when pressing it on the chart it executes in "on Chart" the block "Mouse clicked on object" that It refers to the button called "> losser" and so later the entire sequence of blocks attached to this block is executed.
5.- Blocks 6, 7 and 8 work well, what they do is that once the position with the greatest loss is defined, its volume is obtained and multiplied by a constant to increase its volume, and another position is opened with this higher volume but against, and it was buy, sell opens and if it was sell, buy opens.
6.- The problem is that blocks 3, 4 and 5, which are to define the position of greatest loss, do not work, this is the part that I need help with.
How to get the highest losing position ?
Posts made by Rodrigo Ortuzar
-
RE: The largest losing position of all open positionsposted in Questions & Answers
-
RE: The largest losing position of all open positionsposted in Questions & Answers
Hi majinrex, I don't want to close the position, but open another against it with higher volume.
jstap you are right to execute when you press a button on the chart it should go in "on Chart"
https://fxdreema.com/shared/eqydhdYtb
That's the way it is, but blocks 2,3,4,5 don't work to obtain the position with the greatest loss, apparently it can't be done, I don't know ? -
RE: The largest losing position of all open positionsposted in Questions & Answers
If you totally agree with "on Chart", there is also the "on Init" button.
The logic to identify the biggest losing position is that I'm lost, how to get to a losing position, it's like a loop in a loop, how to do it, I need lights.
https://fxdreema.com/shared/p8nMSxiXb

-
RE: The largest losing position of all open positionsposted in Questions & Answers
Does something like this make logical sense to you ?
https://fxdreema.com/shared/RlgvwyjGd

-
RE: The largest losing position of all open positionsposted in Questions & Answers
I am using a button on the chart that, when I press it, searches all the open losing positions, only finding the one with the greatest loss, that is why I develop it in "on Chart", to later place other conditions or close it or open another against etc
Sorry for the rest of how to find the position with the greatest loss, I only understood that you have to compare each position and see which is the one with the greatest loss, but I did not understand how, can you explain it to me in more detail please. -
RE: Control panelposted in Questions & Answers
Thanks jstap, I analyze it and then I'll tell you. Can you help me with this block:
http://fxdreema.com/forum/topic/14822/the-largest-losing-position-of-all-open-positions
I would appreciate. -
The largest losing position of all open positionsposted in Questions & Answers
Hello, can you help me with this block, I need to select a position, the most losing of all, I have not been able to, can someone give me some light.
shared/mMuxmaclb

-
RE: Control panelposted in Questions & Answers
Very clear jstap explanation thanks, another issue, I couldn't understand how to do it so that when you see the buttons you know if a button is pressed or not, you have a simple one that explains how to do it, I would appreciate it.
-
RE: Control panelposted in Questions & Answers
Thanks l'andorrà, as always you were right and I found several. I was doing it in "on Tick" and the majority that I saw had it developed in "on Timer" is there a special reason to do it in "on Timer" and how do you indicate that it updates every xx seconds?
-
Control panelposted in Questions & Answers
Hi, someone has developed a control panel on open trades.
By buy, sell and total, volumes, pips, money and management buttons
Or something similar, it would be great to see how? -
RE: Groups of positions and trailing stops of groupsposted in Questions & Answers
Hello Iándorra, the reason for joining the two positions is to close them together when the profit of both is positive, but you are right, it is not essential.
The problem that I think the strategy must work "on Trade" for each position that is against, with a position opening against only. And I don't know how to do that, but when you have time.
https://fxdreema.com/shared/6dab2T1xb -
RE: Groups of positions and trailing stops of groupsposted in Questions & Answers
Thank you l'andorrà, I tried both ways:


And in both of them I opened one tars another as I show;

But if this works for me, but not blocks 9 and 10.

The question is what is missing for them to work?

-
RE: how i use option bucket position in Modify Variables ?posted in Questions & Answers
Hello fxdreema, reviewing information in this case in MT5, can you indicate in this "Filter Condition (Advanced)" that the profit is in pips and how would it be ?
Thanks -
Groups of positions and trailing stops of groupsposted in Questions & Answers
This loss strategy works well from block 1 to block 8. Can someone help me and tell me how to make groups of block 9 positions that I don't know what is missing and thus be able to confirm that block 10 works.
I would be very grateful.
https://fxdreema.com/shared/WQbNOGwoc -
RE: I share loss strategyposted in Questions & Answers
Thanks l'andorrà, but I don't know what my logic failed. I did the two alternatives one in "on Trade" and another in "on Tick" and both do not open the position against the open position of loss. If you have a minute I would appreciate it if you could send me lights on where it is failing.
I think that in "on Trade" it fails because I don't know how to indicate that the profit is in pips, block , and in "on Tick" I am lost because it doesn't open the position against it.
https://fxdreema.com/shared/NayFdLm9e -
I share loss strategyposted in Questions & Answers
For each open position that the loss is <= -2 pips, open another position in the opposite direction (Buy, Sell - Sell, Buy) with the same volume plus 10%.- with which the loss is netted with the option to close positive in the future.
The problem is that I have not been able to detect why it does not work where the execution stops.
Can someone tell me what is happening where it is wrong or how to detect the problem. I need help. -
How to capture the volume of an open positionposted in Questions & Answers
Hello, can someone help me how to capture the volume of an open position and copy it into a variable?
I try like this but it doesn't work for me.

-
RE: Block that opens an operation by copying anotherposted in Questions & Answers
Ok jstap, I also made two corrections: 3.- Only positions <= - 30 pip Constant "Loss" I did not find a block that checks the profit in PIP, is there one?
I also put a block that leaves the variable "Volume_Size" = 0
But can you help me with point 4.- Capture the volume and increase it by a constant 10% "Extend" copy it in the variable "Volume_Size" (I'm not sure if it's right)
https://fxdreema.com/shared/OZwD22xsb -
RE: Block that opens an operation by copying anotherposted in Questions & Answers
Look at jstap, the loss strategy:
1.- On Trade
2.- If there are open positions
3.- Only positions <= - 30 pip Constant "Loss"
4.- Capture the volume and increase it by a constant 10% "Extend" copy it in the variable "Volume_Size" (I'm not sure if it's right)
5.- With the volumes increased
6.- Selections if it is a buy.
7.- If it is Buy, open a Sell position and if it is not Buy, open a Buy position.https://fxdreema.com/shared/6t8p6p7ib
Can you help me correct from point 4.-
Is it possible to later join the two positions in a Bucket apart from the other open positions ?A million thanks
-
RE: Block that opens an operation by copying anotherposted in Questions & Answers
Thank you jstap, but since I use Spanish in the translation, my name may change and that's why I can't find it, can you tell me specifically what it is, please?
