Help needed with coding an order-script
Either you have a good idea or you please ignore my posting. I only asked for an idea, not for help in programming.
The easiest way is probably to place a label on the chart and use ChartEvent and ObjectClick. Maybe open a message box to confirm in case of accidently clicking the label.I've not had much experience with using buttons, but I did post some code a little while back that uses buttons. You may find it if you search my posts.
Hi forum,
I want to do a script which places a trade according to moneymanagement rules. It should place three lines in the chart. Entry, SL and TP. Of course in different colors/styles to distinguish them. Then I want to drag them to the correct places. That's easy until now. But then I need an idea. The lines are placed and the order should now be sended. But I have to idea how to confirm that the lines are now in the right place. Now I need something like an OK-button to confirm that the order should now be placed according to the lines.
Is that possible with a script? Does anyone have an idea how to do it?
I only have the idea to make two scripts. One places the lines in different colors and with names like "Entry", "SL", "TP". And then I could start a new script which sends the order by using the values of the lines placed by the first script. But maybe there is a possibility to do it with one script?