Trading GUI Not Entering Trades
-
https://fxdreema.com/shared/7f3zkzwyd
Does anyone know why it’s not executing trades?
It’s also not showing up the close pending orders button on mt5 -
You are drawing infinite buttons one on top of the previous one because its blocks are in the 'on tick' tab. Those blocks should be moved to the 'on init' tab instead.
-
Because the buttons are set to redraw it wont create infante buttons just constantly redraw the same one. on tick works for buttons, but you need a block above to tell the EA when to redraw, generally on init to draw at start, then redraw somewhere else if needed like on tick.
-
will changing the buttons to 'on tick' make the close pending orders button show up, and make the trades execute?
-
draw them on init and then decide if you want to do something else
-
@jstap There is no block deleting the old ones, so how can ther be 'redrawn'? A new one is drawn, but where are the old one being deleted?
-
@l-andorrà That is not how it works, redraw will delete the original to draw a new
-
@jstap Interesting. I didn't know that. Useful info, as always!

-
@jstap shared/L1K7fv1T I made the changes, the button to delete the pending orders still isnt showing, and the pending orders button isn't entering the trades.
-
There is no structure to that, what is starting the delete process? As is, it should delete on every tick, personally, I would use a name so you are referring a specific object.
-
I put a name on the “draw buttons” and then put the name inside the “mouse clicked” buttons, I don’t know what I’m doing wrong, the close pending orders button still won’t show up.
-
You mean on chart? This only works on a live/demo chart, not backtest, is this where you are testing?
-
When I add it to the chart to trade live
-
Both buttons are being drawn in the same [lace, so they will be drawn on top of each other
-
Oh, that makes sense, how do I fix this?
-
Add 20 to the x position
-
Okay, and what do I do to delete the buttons on de init
-
Add a delete block, and make sure it is connected to another or has a pass block above
-
Hello, so I changed the x and y coordinates, and added a delete function, but the button to place the pending orders still won’t work.
-