Button if trade
-
Is there any examples of how to make a button with a BUY and one for SELL so the user can decide if there should be a trade?
I want to make an EA that is setting the SL, TP and things like that. And if I am ready for a trade that looks good I want to make the trade by pressing the BUY or SELL button. So the EA is waiting for the press before making a trade. -
But you already have these buttons on the chart, when you go in the upper left corner and click on the small triangle object
-
Yes, but I thought about making a button that is setting the stop loss and take profit depending on some indicators and things like that.
Once I made one that printed the information on the screen so I could trade with those numbers, but it would be nice to have a button for BUY that trigger the BUY order and one for SELL.Just like an automatic EA, but where the user can decide if it should take the trade.
-
https://fxdreema.com/shared/hYgvHgC3b
The problem is that the default button is more like a switch, so I added small custom code to "depress" is automatically. As a result, now it looks like rectangle with text
