Convert two indicators Multicharts PowerLanguage -> MQL5

2020.09.09 Indicators Converting

Specification

I need you to convert two indicators Multicharts PowerLanguage -> MQL5

Please quote each indicator separately.

===============================================

inputs: FastLength( 7 ), SlowLength( 30 );

variables: var0( 0 ), var1( 0 ), var2( 0 ) ;


var0 = JRC_AMA_SCALAR( Close, FastLength ) ;

var1 = AverageFC( Close, SlowLength ) ;

var2 = var0 - var1 ;


If var0 > var0[1] then Plot1( var2, "MACD",green ) ;

If var0 < var0[1] then Plot1( var2, "MACD",red ) ;


//Plot2( var1, "MACDAvg" ) ;

//Plot3( var2, "MACDDiff") ;

//Plot3( var2, "MACDDiff") ;


Plot4( 0, "ZeroLine" ) ;


condition1 = var2 crosses over 0 ;     

if condition1 then

Alert( "Bullish alert" )

else 

begin 

condition1 = var2 crosses under 0 ;

if condition1 then

Alert( "Bearish alert" ) ;

end;


Files:

Responded

1
Developer 1
2020.09.09
Rating
4.89
(102)
Projects
162
25%
Arbitration
47
32% / 26%
Overdue
36
22%
Busy
2
Developer 2
2020.09.09
Rating
0
Projects
0
0%
Arbitration
0
Overdue
0
Free
3
Developer 3
2020.09.11
Rating
5
(38)
Projects
41
22%
Arbitration
0
Overdue
1
2%
Working

Project information

Budget
30 - 100 USD
For the developer
27 - 90 USD
Deadlines
to 5 day(s)

Customer

Placed orders6
Arbitrage count0