manafu:
just change the variable。I have an ea(mt4),it has the code like this:
(enum BuyOrSell0 {only buy = 0,only sell = 1,buy and sell = 2};
input BuyOrSell0 = 2;
when I type 1 where <input BuyOrSell>, it only sells,type 0,it only buys,
type 2,it buys and sells.
But I have to finish this bfore it starts.
I want it automatically change the direction.I hope that when FastMA>SlowMA, it will buy and stop selling and when FastMA<SlowMA it will stop buying and continue selling..
How can I add some code like this?
Can anyone help me?
if (FastMA<SlowMA)BuyOrSell0=0;
ywc
I have an ea(mt4),it has the code like this:
(enum BuyOrSell0 {only buy = 0,only sell = 1,buy and sell = 2};
input BuyOrSell0 = 2;
when I type 1 where <input BuyOrSell>, it only sells,type 0,it only buys,
type 2,it buys and sells.
But I have to finish this bfore it starts.
I want it automatically change the direction.I hope that when FastMA>SlowMA, it will buy and stop selling and when FastMA<SlowMA it will stop buying and continue selling..
How can I add some code like this?
Can anyone help me?