CONVERSION OF PINESCRIPT STRATEGY TO FOREX ROBOT

MQL4 Experts Converting

Job finished

Execution time 22 hours
Feedback from customer
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
Feedback from employee
He is a great customer. Thanks...

Specification

//@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 :)


Responded

1
Developer 1
Rating
(354)
Projects
630
26%
Arbitration
89
73% / 13%
Overdue
12
2%
Working
2
Developer 2
Rating
(11)
Projects
28
68%
Arbitration
2
0% / 0%
Overdue
9
32%
Working
3
Developer 3
Rating
(88)
Projects
143
39%
Arbitration
21
19% / 48%
Overdue
30
21%
Free
4
Developer 4
Rating
(400)
Projects
528
74%
Arbitration
9
44% / 0%
Overdue
24
5%
Free
5
Developer 5
Rating
(546)
Projects
823
73%
Arbitration
15
53% / 13%
Overdue
193
23%
Free
6
Developer 6
Rating
(555)
Projects
922
48%
Arbitration
300
59% / 25%
Overdue
123
13%
Working
Similar orders
Hello Good evening, I would like to convert an MT4 indicator to MT5. Is this possible? I will send you a screenshot of how the indicator works. It has up and down arrows. that's all. What is your cost for labor and delivery time
Convert Trading View indicator to MT5. The source code is available for free on Trading View. Changing the colors of buffers used for each color must be allocated to separate buffers This is so that there is no difficulty in making a robot through the indicator need source file
Recherche codeur pour convertir mon script de stratégie pine script en mql5 afin d’en faire un ea fonctionnel gratuit si possible car très rapide ou alors arrangement à mes premier gain
Hello, I am kindly looking for a developer to help with the migration of an existing Expert Advisor from MQL4 to MQL5. The primary tasks required are: Code Migration: The current EA is based on MQL4 and needs to be rewritten for compatibility with MQL5. It is a straightforward mechanical limit order inventory management strategy (Grid), but it requires precise handling to ensure that its functionality remains
already have an advisor on mql4 and I want to adapt it to mql5, and chance some things on it, I was working with a developer but he is to busy to keep working on it the advisor has been tested and it does most of what we want it to do but, I need some adjusts
Hello there, I need a developer that can help me convert 2 TradingView Indicators into MT4 in 2 days. I need this to be perfectly converted and as soon as possible. Thanks
👋 hello great developer am looking for expert to help me with convert with this 2 pine script indicator into mt4 indicator? I will be looking for great developer to bid for this project. Best regards
Hello there, I need a developer that can help me convert 2 TradingView pinescripts into MT4 in 2 days. I need this to be perfectly converted and as soon as possible. Thanks
👋 hello great developer am looking for expert to help me with convert pine script indicator into mt4 indicator? I will be looking for great developer to bid for this project Best regards
Hello, I am looking for a developer, that can convert my MQL5 EA to MQL4 EA. The code is simple and not too long, just a little above 300, including comments. I will be willing to communicate for fast and clean partnership. Have a great day everyone! Kind regards, Morka555

Project information

Budget
50+ USD
For the developer
45 USD