Grid + Hedge problem
-
Hi, Iam currently testing on Grid and Hedge function.
I manage to do a grid with these block . when price goes down it will open buy trade . if price goes up it will open sell trade. its follow grid distance i set. no problem at all


The problem start when I want to hedge the position by using 'check trade' block . What I want to do is. When there is a total 5 buy trade. EA will open sell trade.
When there a sell trade, I TURN OFF buy block. then if Price goes down more, I want sell trade to be open accordingly to the grid distance I set.
But in result,I got a lot sell trade open up and down near the first sell trade. Its not follow the grid distance I set. look at the image below.


Please help me identify the problem. Here is the project link. Thanks in advance
-
I don't fully understand the logic. When is the bot supposed to begin hedging? At the fith consecutibe buy/sell? Or after the first one?
-
At the fiveth buy trade .Robot will open a sell trade and when price going down the bot will continue open a sell trade
-
Here is my illustrations of the concept. Hope you can understand the logic
.
-
@l-andorrà please look at the illustration above. thanks
-
never mind. I think I will go for this approach . Instead of make it open sell order. I just create a sell pending order in grid indead. easy not too complicated with the block



-
Congrats!
