close the biggest negative position every day
-
Hello, please help me. I want to tell my robot to close the biggest negative position every day
-
You need to define the time period to consider that. If you are having one only open trade and it is losing, it will be closed. If you are having two open trades and one is wining and the other is losing, it will also be closed. More conditions are required to define more accurately what you need.
-
I have exactly the same problem now. There are many positions and I want to close only one daily, which is also the biggest.
-
Which block should I use?
-
Use a loop for each position check if size is bigger than the biggest recorded in your variable, if so record the trade data in this variable, and then when ready close this trade
-
@jstap Thank you for the help, but it doesn't work. Can you send a picture? Thank you
-
Make your test project, then add a shared link, and I'll have a look at what's happening.
-
-
-
You are not using a loop, I meant more like this:

-
@jstap Dear friend, thank you very much..for helping me..I am testing and will let you know now
-
@jstap I think you don't understand what I want. For example, I have 10 or more open positions. Now I ask the robot to recognize the largest negative position and close it the next day. Because I did not specify the size, thank you again
-
Don't start your answer with you don't think I understand, everything I do is to help people learn, but if I create everything for people, they won't learn, and I will constantly be creating block setups for people.
The principle is the same, but in the loop get the profit, use buys & sells and <

-
@jstap Sorry if I upset you. I have been very busy with it for several days, but I still could not solve it. Thank you