Button on click not working
-
I want to start a trade when pushing a button. I made a small project. The thi g is that nothing is happening when pushing the button. Can someone help me please?
-
You do know on chart events don't work in backtest?
-
Yes I know but I tried for real and the button is there. But on mouseclick it is not making a new trade.
-
@OLLIFDG The logic is correct. Is that just part of your project? If not, the problem is elsewhere.
-
@OLLIFDG said in Button on click not working:
Yes I know but I tried for real and the button is there. But on mouseclick it is not making a new trade.
i tested your project in real and works fine on my side. Check the journal if there are any errors
-
Thanks all. I will check
-
@ambrogio
I added a block to make a button. When pressed the green button shows up on the screen. After clicking on the green button the yellow is added on the screen so the push activated the output correctely. But the trade is not been made. I'm working with MetaTrader 5 terminal. When I make a bot which is adding trades it is working fine. I don't understand why it is not working via the screen. Do you have any idea what can be wrong? The journal is just telling that the expert has been loaded succesvolly. No error message

-
@OLLIFDG no error messages right? I was thinking about stop loss or take profit too tight.
-
@OLLIFDG forgive me, is the Algo Trading button active? This is because your yellow button appears even if it is turned off. Don't trust this. Please check both journal and expert table at the bottom

-
@ambrogio
You made my day. So happy with this. Indead it was the algo trading causing the issue. Lost a lot of money because I trade in seconds manually and don't have the time to set the stoploss. Now I feel safe. Your great. Appreciate your help.

-
@OLLIFDG you're welcome!