CONVERSION OF PINESCRIPT STRATEGY TO FOREX ROBOT

MQL4 专家 转化中

工作已完成

执行时间22 小时
客户反馈
Mehran made my script for a very competitive price all in just 1 day. I couldn't be happier. I will continue to use him in future if i need a freelancer. Would highly recommend
员工反馈
He is a great customer. Thanks...

指定

//@version=4
strategy("OSPREY NO VISUAL", shorttitle="OSPREY NO VISUAL", overlay=true, pyramiding=1, calc_on_every_tick = false)


tick_round(x) => 
    round(x / syminfo.mintick) * syminfo.mintick

position = 0

//EMAs
ema_1 = ema(close, 55)
ema_2 = ema(close, 110)
ema_3 = ema(close, 200)

//Keltner Channel
ma      = sma(close, 20)
rangema = sma(tr, 20)
upper = ma + rangema 
lower = ma - rangema

// Signal for crossing Keltner Channel
crossUpper = crossover(close, upper)
crossLower = crossunder(close, lower)

//Signal for EMA Crossover
long_cross = crossover(ema_1, ema_2)
short_cross = crossover(ema_2, ema_1)

// Buying price - first high after the cross
bprice = 0.0
bprice := crossUpper ? low+syminfo.mintick : nz(bprice[1])

// Selling price - first low after the cross
sprice = 0.0
sprice := crossLower ? high -syminfo.mintick : nz(sprice[1]) 

crossBcond = false
crossBcond := crossUpper ? true 
 : na(crossBcond[1]) ? false : crossBcond[1]

crossScond = false
crossScond := crossLower ? true 
 : na(crossScond[1]) ? false : crossScond[1]

// Condition to cancel orders
cancelBcond = crossBcond and (close < ma or high >= bprice )
cancelScond = crossScond and (close > ma or low <= sprice )


// Active stop long order
waitingB = false
waitingB := position[1] == 1 ? false : crossUpper ? true : cancelBcond ? false : nz(waitingB[1])


// Active stop short order
waitingS = false
waitingS := position[1] == -1 ? false : crossLower ? true : cancelScond ? false : nz(waitingS[1])


// Long/Short signals
long1 = long_cross 
long2 = high >= bprice 
long3 = close > upper
long4 = close > ema_3

short1 = short_cross
short2 = low <=  sprice
short3 = close < lower
short4 = close < ema_3

long = 0
if (long1 and long2 and long3 and long4)
    long := 1

short = 0
if (short1 and short2 and short3 and short4)
    short := 1


// Keeping track of current position
position := long ? 1 : short ? -1 : nz(position[1])


//Limit Levels
stop_level_long = strategy.position_avg_price * (1 - 0.004)
take_level_long = strategy.position_avg_price * (1 + 0.008)
stop_level_short = strategy.position_avg_price * (1 + 0.004)
take_level_short  = strategy.position_avg_price * (1 - 0.008)

//Entries
strategy.entry("Long Entry", strategy.long, when=long)
strategy.exit("SL/TP", "Long Entry", stop=stop_level_long, limit=take_level_long)

strategy.entry("Short Entry", strategy.short, when=short)
strategy.exit("SL/TP", "Short Entry", stop=stop_level_short,limit=take_level_short)

Hi! I currently have a working strategy script on trading view that I have developed and am happy with the backtest data. I want you to take the entry and exit criteria that currently works so well, but implement them into an EA. The only input that the EA needs would be the risk % which the EA needs to correctly calculate the position size.


I would also like you to add comments throughout the code so i understand it :)


反馈

1
开发者 1
等级
(356)
项目
632
26%
仲裁
89
73% / 13%
逾期
12
2%
空闲
2
开发者 2
等级
(13)
项目
31
68%
仲裁
2
0% / 0%
逾期
10
32%
工作中
3
开发者 3
等级
(88)
项目
143
39%
仲裁
21
19% / 48%
逾期
30
21%
空闲
4
开发者 4
等级
(409)
项目
537
75%
仲裁
9
44% / 0%
逾期
24
4%
空闲
5
开发者 5
等级
(549)
项目
826
73%
仲裁
15
53% / 13%
逾期
193
23%
工作中
6
开发者 6
等级
(563)
项目
932
47%
仲裁
302
59% / 25%
逾期
124
13%
已载入
相似订单
CTRADER 30+ USD
can you help me with this project? Retrieve US30 asset price data from Ctrader Convert it to YM futures data Display the converted data on TradingView The reason why I need to convert US30 cfd prices from Ctrader into YM future prices is because all of my trading signals are from ctrader, and i need to trade on tradingview. Thanks
I need help with a small project. Basically I need to convert us30 asset price on Ctrader platform into YM futures on tradingview. Can you do it? It should be quite straight forward this is an example of what my trade signals look like
I have an Expert Advisor in ex4 and mq4 file formats that I would like to recreate with its original strategy. I believe the file have a bug or one error inside or maybe also is a Decomp file , and as a result, I am unable to understand the rules it follows to evaluate the market and open orders. I am looking for a developer who can help me reconstruct the strategy accurately. The mql4 format file would need to be
Skarito98 30 - 100 USD
Always stay winning and survive....we all want a better life now this is a chance someone can take,to change their lives for the better.No one is supposed to suffer in this world,we create and invert new things and come up with ideas to solve situations we come across especially when it comes to finance. We all need better things in life and God want good things for us
hello i need a professional to convert a fully functioning buy and sell signal strategy on tradingview to EA mt4 , the signals trigger when the bar closed match all conditions , it has a specific calculation for strength of each pair
Attached is a ThinkScript Strategy. I would like to convert it into an Expert Advisor for MQL4. Here is a link of a PineScript code for a similar indicator. This is just to give you additional info about the indicator, hence helping you to convert it from Thinkscript to MQL4
Only with feedbacks 30 - 100 USD
PINESCRIPT->MQL4 i need a exactly conversion of the file attached to mql4 with source code (i need the source code), obviously as indicator for mt4 let me know your bid and timeline
C onversion from Ninjatrader to Tradingview. This includes thorough testing and debugging to guarantee that the script functions as intended on Tradingview...If you are in for this job kindly bid
Hi, i have a tos script i need converted to Ninja script, but someone who knows both coding. Cant be someone who is just going to paste into chat gpt, it requires more understanding for compatibility
Hi, i have a tos script i need converted to Ninja script, but someone who knows both coding. Cant be someone who is just going to paste into chat gpt, it requires more understanding for compatibility

项目信息

预算
50+ USD
开发人员
45 USD