• Sign up >>

Mt4 conversions from pinescript code

2020.02.14 Experts

Specification

Hello


Can you do mt4 conversions from pinescript code ?

//@version=2
strategy("Exponential", overlay=true)
src = input(ohlc4, title = "source")
len = input(21, title = "timeframe / # of period's")
e = ema(src,len)
evar = (src - e)*(src - e)
evar2 = (sum(evar,len))/len
std = sqrt(evar2)
Multiplier = input(2, minval = 0.01, title = "# of STDEV's")
upband = e + (Multiplier * std)
dnband = e - (Multiplier * std)
//SL = input(defval=50, minval=0, maxval=10000, title="Stop loss in ticks (leave zero to skip)")
//tradeSize = input(defval=1, minval=1, title="Trade size")

longCondition = crossover(src,e)
if (longCondition)
strategy.entry("My Long Entry Id", strategy.long)

//if( 0 != SL )
//strategy.exit("EXIT BUY", "BUY", qty=tradeSize, loss=SL)
//strategy.exit("EXIT SELL", "SELL", qty=tradeSize, loss=SL)
shortCondition = crossunder(src,e)
if (shortCondition)
strategy.entry("My Short Entry Id", strategy.short)

plot(e, color = purple, linewidth = 2, title = "basis")
plot(upband, color = red, linewidth = 2, title = "up band")
plot(dnband, color = green, linewidth = 2, title = "down band")


Responded

1
Developer 1
2020.02.14
Rating
4.98
(491)
Projects
651
69%
Arbitration
9
33% / 33%
Overdue
33
5%
Loaded
2
Developer 2
2020.02.14
Rating
4.85
(359)
Projects
648
49%
Arbitration
208
55% / 28%
Overdue
138
21%
Loaded
3
Developer 3
2020.02.14
Rating
5
(373)
Projects
621
69%
Arbitration
12
50% / 17%
Overdue
209
34%
Loaded
4
Developer 4
2020.02.15
Rating
0
Projects
0
0%
Arbitration
0
Overdue
0
Working

Project information

Budget
30+ USD
For the developer
27 USD
Deadlines
from 1 day(s)

Customer

Placed orders19
Arbitrage count0