Конвертировать индикатор из TradingView в MT4

MQL5 Experten

Auftrag beendet

Ausführungszeit 2 Tage
Bewertung des Entwicklers
Приятно работать с такими людьми
Bewertung des Kunden
Работа выполнена на высшем уровне, быстрее чем ожидалось, мне как новичку все подробно объяснили, и проконсультировали по всем вопросам. Рекомендую!)

Spezifikation

Конвертировать готовый скрипт из программы TradingView в MT4.Сам скрипт находится в открытом доступе. Его я закрепляю ниже. 


//@version=4 

strategy("scalping low lag tema etal", shorttitle="Scalping tema",initial_capital=10000, overlay=true) 

mav = input(title="Moving Average Type", defval="temadelay", options=["nkclose", "ema", "emadelay", "fastema", "tema", "temadelay"]) 

lenb = 3 

N = input(8) 

K = input(1.2) 

fracCap = input(1.0) 

in = close + K*mom(close,N) 

source = close 

length = 8 

sigma  = 12.0 

offset = 0.9 

p = 4 

// length = 10 

// sigma  = 6.0 

// offset = 0.85 

tema(src,len) => fastemaOut = 2*ema(src, len) - ema(ema(src, len), len) 

 

 

a = 0.0 

b = 0.0 

c = 0.0 

if mav == "nkclose" 

    a := ema(in, 12) 

    b := a[1] 

    c := a[2] 

if mav == "ema" 

    a := ema(close, 12) 

    b := ema(close, 26) 

    c := ema(close, 55) 

if mav == "emadelay" 

    a := ema(close, 12) 

    b := a[1] 

    c := a[2] 

if mav == "fastema"

a := ema(in, 12) 

    b := ema(in, 26) 

    c := ema(in, 55) 

if mav == "tema" 

    a := tema(close, 12) 

    b := tema(close, 26) 

    c := tema(close, 55) 

if mav == "temadelay" 

    a := tema(close, 12) 

    b := a[1] 

    c := a[2] 

 

TP = input(200) 

SL = input(130) 

TS = input(1) 

// TP = input(50) 

// SL = input(110) 

// TS = input(1) 

 

orderSize = floor((fracCap * strategy.equity) / close) 

long = cross(a, c) and a > b 

short = cross(a, c) and a < b 

plot(a, title="12", color=color.red, linewidth=1) 

plot(b, title="26", color=color.blue, linewidth=1) 

plot(c, title="55", color=color.green, linewidth=1) 

 

strategy.entry("Long", strategy.long, qty=orderSize,  when=long) 

strategy.entry("Short", strategy.short, qty=orderSize,  when=short) 

// strategy.entry("Long", strategy.long,  100.0, when=long) 

// strategy.entry("Short", strategy.short,  100.0, when=short) 

// strategy.entry("Long", strategy.long, 100.0, when=long) 

// strategy.entry("Short", strategy.short, 100.0, when=short) 

// strategy.entry("Long", strategy.long, 1.0, when=long) 

// strategy.entry("Short", strategy.short, 1.0, when=short) 

 

TPP = (TP > 0) ? TP : na 

SLP = (SL > 0) ? SL : na 

TSP = (TS > 0) ? TS : na 

// strategy.exit("Close Short", "Short", qty_percent=100, profit=TPP, loss=SLP, trail_points=TSP, when=long) 

// strategy.exit("Close Long", "Long", qty_percent=100, profit=TPP, loss=SLP, trail_points=TSP, when=short) 

// strategy.exit("Close Long", "Long", qty_percent=100, profit=TPP, loss=SLP, trail_points=TSP, when=long[1]) 

// strategy.exit("Close Short", "Short", qty_percent=100, profit=TPP, loss=SLP, trail_points=TSP, when=short[1])


Bewerbungen

1
Entwickler 1
Bewertung
(10)
Projekte
13
8%
Schlichtung
3
67% / 33%
Frist nicht eingehalten
0
Frei
2
Entwickler 2
Bewertung
(51)
Projekte
66
30%
Schlichtung
2
0% / 0%
Frist nicht eingehalten
0
Frei
3
Entwickler 3
Bewertung
(252)
Projekte
462
26%
Schlichtung
139
20% / 60%
Frist nicht eingehalten
100
22%
Frei

Projektdetails

Budget
30 - 80 USD
Ausführungsfristen
von 1 bis 10 Tag(e)