Buy and Sell Button Don't Work on Current Chart
-
https://fxdreema.com/shared/lJfCyHabc
My buttons are only working on the initially loaded chart. I have a buttons indicator that allows me to change pairs on the same chart. Unfortunately, once I change charts, the buy and Sell buttons don't work for the new pair, only for the initial pair.
Maybe I don't understand the workings of buttons or is there a way to refresh the EA once I switch pairs?
-
I tried this one and it works for me: https://fxdreema.com/shared/VMwxP2Odd
But I manually change the symbol by dragging different symbol over the chart.I found another problem, that if I use "Market Properties -> Name: Symbol", only the initial symbol name is printed. But otherwise the button click is detected.
Do you see some error messages or for some reason the button name is changed?
-
@fxdreema I'll try it out, no error messages. Lets say I start the EA on EURUSD then switch to GBPUSD via the buttons indicator (the one that changes the chart pair) and I proceed to click "buy" the terminal picks it up as a buy for the initially loaded chart. In this case, the EURUSD.
If it doesn't work, I simply created a shortcut to the ea, CTRL+R and I can refresh it everytime I switch charts and plan on using a different pair.
Thank you administrator for your response and thank you for fxDreema
-
Thank you, It worked. Removed all the blocks between "mouse clicked on object" and the "buy/sell" buttons.
