Translate this Pine Script (Tradingview) indicator to MQL4

작업 종료됨

실행 시간 4 시간
고객의 피드백
Fast and good
피고용인의 피드백
Everything is fine. Thanks!

명시

Hello. Simple job, just translate this Pine Script code to MQL4. It is a 200EMA special indicator, that does not appear in the chart when the market is in a range, filtering bad entries for my trend following Expert Advisor. It does that when the price crosses it a certain number of times in a certain time. The red color means a downtrend and the green an uptrend.


The purpose of the indicator is when not showing on the chart, new entries should not be made. I want to use this indicator on my Expert Advisor. It need to be translated exactly in its essence. 


tudy(title="Trading Rush Moving Average", shorttitle="TR EMA", overlay=true, resolution="")

len = 200

src = close

ema1 = ema(src, len)

maColor = if(close[5] > ema1[5] and close[10] > ema1[10] and close[15] > ema1[15] and close[20] > ema1[20] and close[30] > ema1[30] and close[40] > ema1[40] and close[50] > ema1[50] and close > ema1)


    [URL='http://color.green/']color.green[/URL]

else if(close[5] < ema1[5] and close[10] < ema1[10] and close[15] < ema1[15] and close[20] < ema1[20] and close[30] < ema1[30] and close[40] < ema1[40] and close[50] < ema1[50] and close < ema1)


    [URL='http://color.red/']color.red[/URL]

else


    [URL='https://color.new/']color.new[/URL](color.white, 100)

plot(ema1, title="TR EMA", color=maColor, linewidth=4)


응답함

1
개발자 1
등급
(236)
프로젝트
440
26%
중재
125
21% / 57%
기한 초과
96
22%
작업중
2
개발자 2
등급
(805)
프로젝트
1377
72%
중재
113
28% / 48%
기한 초과
343
25%
작업중
3
개발자 3
등급
(563)
프로젝트
932
47%
중재
303
59% / 25%
기한 초과
124
13%
바쁜
4
개발자 4
등급
(259)
프로젝트
420
38%
중재
86
44% / 19%
기한 초과
70
17%
바쁜

프로젝트 정보

예산
30+ USD
개발자에게
27 USD