good afternoon guys, I have been developing a strategy for my robot, and I realized that I have something wrong in my code, what I want is to create trade cycles using hedging, when each cycle/set of trades opens the last trade , for a new cycle of trades, that is, imagining that each set of trades only opens 3 orders, the robot opens groups of 3 trades one at a time, when each group reaches a certain amount of profit, it closes the trades of that group leaving the other open groups, but with the condition that opening all the orders of group 1 opens the first order of group 2, and if group 2 no longer exists, I should open the first order of group 2 again, someone could help me with this question please?!
will I have to eliminate the once per trade condition?
0_1656695325925_b902a514-9816-4e8a-952c-767ea259a55b-image.png
Latest posts made by Alexandre_Diogo
-
SIMPLE LOGIC PROBLEMposted in Questions & Answers
-
RE: how to change the stops of a group of trades to the level of stops further away from the group of ordersposted in Questions & Answers
@l-andorrĂ ok i have to learn a little more about the variables but i will use this method, thanks for the tip

-
RE: how to change the stops of a group of trades to the level of stops further away from the group of ordersposted in Questions & Answers
@l-andorrĂ and yes they should all have the same level but with the volatility and spread it doesn't happen which leads me not to have the sls and tps at the same level so my idea is to just readjust the stops to the same level further away from the group of orders
-
RE: how to change the stops of a group of trades to the level of stops further away from the group of ordersposted in Questions & Answers
@l-andorrĂ hi, the green lines that you see are the buy ordens in the top and sell orders in the bottom, the pink lines in the top are the sl of sell ordens and the tp of buy orders, the pink lines on the bottom are the sl of buy orders an the tp of the sell orders, they are not all opening at the same time, when we have an active buy order we have a pending sell order and vice versa, what I want is to readjust the tp and sl levels to the farthest level whenever a pending order is activated
-
RE: how to change the stops of a group of trades to the level of stops further away from the group of ordersposted in Questions & Answers
@l-andorrĂ but I want to regulate all the sell gain limits with the buy loss limits based on the furthest order, be it a sell tp or a buy sl, I didn't want to define a specific value
-
RE: how to change the stops of a group of trades to the level of stops further away from the group of ordersposted in Questions & Answers
@l-andorrĂ yes, sell orders are supposed to close in profit at the same level as the stop loss of buy orders and taking into account the farthest stop, adjust tp and sl to that stop level whenever a pending order is activated
-
how to change the stops of a group of trades to the level of stops further away from the group of ordersposted in Questions & Answers
hello everyone to finish mine ea i needed to solve this problem, the robot is based on pending orders that will open at the same levels as the previous orders but with volatility and spread the orders will not open at the same level and therefore stops will not to be on the same level, how can I make when another order is opened the stops adjust to the level of the stops further away from the group of orders?
