I am trying to make a money management EA but the button doesn't wor
-
Hey guys,
I am trying make a money management EA and I am early into it. So I thought lets first work on the buttons to see if it works.
The one part that I am unable to solve the mystery is about Close trades and close pending orders when the button is clicked. When I clicked, it didn't work and I tried in two different ways. Once, On Chart tab, to make a variable to make a condition on the Trade tab, and second time on the chart tab again but ask to close it there (it is off now).
https://fxdreema.com/shared/djZ6yGbqc
What am I doing wrong? How do I make it work and when I click on the Closed trade or pending order, they close it.
TIA
-
I suggest you do everything on tick as well because on chart doesn't work for back test, I also do not use mouse clicked on object, I use a condition. There is an example here that should show you what to do: https://fxdreema.com/shared/hImQx7TYc