Grid placing to many trades.
-
Ok you are using different groups, do you want pending trades to work as well as instant trades?
-
Yes. That is exactly what I am trying for right now.
-
-
https://fxdreema.com/shared/CBJlAA1pe
I tried this as well.
-
You know the saying of trying to run before you can walk? Choose 1 type, test on backtest, when working as you want, add the other. Then groups will separate the trade type.
-
Hmmm...I am not sure why the orders pending are not closing.
-
Then I have one last part I need to build then I think the grid will be complete.
-

-
The thing only seems to work sometimes even. I made it delete orders when SL hit but the pending order doesn't always stay.
-
when SL hit needs to be done on the ontrade tab, purple block trade closed by SL - delete
-
Hmm. That is interesting. I think I will try that. Thank you.
-
I did that. Now it opens another buy pending order after the first one is placed. I put a check positions count above the check pending orders count and it still doesn't seem to work.
-
the problem now is as soon as 1 closes a new is viable to be opened, you need to add some logic to stop this from happening, for now add a once per bar above pending order on tick, this will limit the number of trades per candle.
-
Yes but if it happens per bar it will likely still happen to many times,
-
That wasn't how to correct your problem, it was to show you your logic changes this, decide what logical process will limit the order replacing to how you want.
-
I see! Thank you for that.
-
This is complex. How could limit the number of pending orders per bar? I tried a once per positions (grouped per the initial buy market) and it is still not working.
-
I think the pending orders are being deleted at like 20 sl when I had it set to 5.
-
On trade only works if you start the tree with a on trade block

-
Those events are not showing up on my screen.