Hey guys,
I have this simple EA that successfully opens a trade when the onchartevent buy/sell button is clicked on. That's all great and it's nice to have a big green/red button for that quick scalp with a set SL/TP.
I've dug around and can find lots of EA's that open and close on a MA cross, but when I hack out the close code into this buttontrader, it just never seems to work. I feel like I'm missing something minor but can't figure it out!
So I'm trying to get a trade to close when two MA's cross. Any ideas?
I have this simple EA that successfully opens a trade when the onchartevent buy/sell button is clicked on. That's all great and it's nice to have a big green/red button for that quick scalp with a set SL/TP.
I've dug around and can find lots of EA's that open and close on a MA cross, but when I hack out the close code into this buttontrader, it just never seems to work. I feel like I'm missing something minor but can't figure it out!
So I'm trying to get a trade to close when two MA's cross. Any ideas?
Attached File(s)
buttontrader.mq4
4 KB
|
284 downloads