Could you please convert this code below to mt4 expert thank you.
Fst:=Mov(C,12,E); Fst; Slw:=Mov(C,26,E); Slw;
Bullish:=MACD()>0; Bearish:=MACD()<0;
Buy:=Bullish AND Ref(Bearish,-1); BuyPrice:=ValueWhen(1,Buy,C);
ProfitLong:=100*((C-BuyPrice)/BuyPrice);
Sell:=Bearish AND Ref(Bullish,-1);
SellPrice:=ValueWhen(1,Sell,C);
ProfitShort:=100*((SellPrice-C)/SellPrice);
Grn:=Bullish AND C>Fst;
Red:=Bearish AND C<Fst;
Ylw:=(Bullish AND CSlw) OR (Bearish AND CFst);
Blu:=(Bullish AND CSlw);
[/CODE]
[CODE]
{Wave 2}
Bullish:=FmlVar("above code","Bullish");
Bearish:=FmlVar("above code","Bearish");
Ylw:=FmlVar("above code","Ylw");
Blu:=FmlVar("above code","Blu");
Bullish AND C>Ref(C,-1) AND ((Ylw AND C>Ref(C,-1)) OR Blu) AND BarsSince(Bearish)<=14;
First formula are signals based on a simple MACD. A lot of similar MACD signals can be found already for mt
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
Could you please convert this code below to mt4 expert thank you.
Fst:=Mov(C,12,E); Fst; Slw:=Mov(C,26,E); Slw;
Bullish:=MACD()>0; Bearish:=MACD()<0;
Buy:=Bullish AND Ref(Bearish,-1); BuyPrice:=ValueWhen(1,Buy,C);
ProfitLong:=100*((C-BuyPrice)/BuyPrice);
Sell:=Bearish AND Ref(Bullish,-1);
SellPrice:=ValueWhen(1,Sell,C);
ProfitShort:=100*((SellPrice-C)/SellPrice);
Grn:=Bullish AND C>Fst;
Red:=Bearish AND C<Fst;
Ylw:=(Bullish AND CSlw) OR (Bearish AND CFst);
Blu:=(Bullish AND CSlw);
[/CODE]
[CODE]
{Wave 2}
Bullish:=FmlVar("above code","Bullish");
Bearish:=FmlVar("above code","Bearish");
Ylw:=FmlVar("above code","Ylw");
Blu:=FmlVar("above code","Blu");
Bullish AND C>Ref(C,-1) AND ((Ylw AND C>Ref(C,-1)) OR Blu) AND BarsSince(Bearish)<=14;