• Get access

Mt4 conversions from pinescript code

2020.02.14 Experts

Specification

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.94
(589)
Projects
1023
74%
Arbitration
76
29% / 42%
Overdue
331
32%
Busy
2
Developer 2
2020.02.15
Rating
4.96
(314)
Projects
493
66%
Arbitration
27
33% / 56%
Overdue
39
8%
Working
3
Developer 3
2020.02.15
Rating
5
(9)
Projects
11
36%
Arbitration
1
0% / 100%
Overdue
1
9%
Working
4
Developer 4
2020.02.15
Rating
4.94
(315)
Projects
486
41%
Arbitration
31
23% / 45%
Overdue
46
9%
Loaded
5
Developer 5
2020.02.15
Rating
5
(373)
Projects
621
69%
Arbitration
12
50% / 17%
Overdue
209
34%
Loaded
6
Developer 6
2020.02.16
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