Convert pinescript from trading view to mt4 with some editing

MQL4 Integration

Spezifikation

the base of the code is for the 3 line break chart 

https://www.mql5.com/en/articles/902

https://www.mql5.com/en/market/product/3123

here is the code 

//@version=4

study("Swing High/Low", overlay=true)

tri = input(true, "Plot Triangles")

li = input(false, "Plot High/Lows")

la = input(false, "Plot Price Crossing")


// vars

var lasth = 0.0

var lastl = 0.0


// up

if open < close and open[1] > close[1]

    lastl := low[1]


// down

if open > close and open[1] < close[1]

    lasth := high[1]


// plot

plot(li == true ? lastl : na, color=color.lime, editable=false, style=plot.style_stepline)

plot(li == true ? lasth : na, color=color.red, editable=false, style=plot.style_stepline)


up = lastl == lastl[1] ? na : true and tri == true

dn = lasth == lasth[1] ? na : true and tri == true


plotshape(up, title="Low", style=shape.triangleup, color=color.lime, location=location.belowbar, offset=-1, editable=false)

plotshape(dn, title="High", style=shape.triangledown, color=color.red, location=location.abovebar, offset=-1, editable=false)


crossup = high > lasth and high[1] < lasth[1]

crossdown = low < lastl and low[1] > lastl[1]


plotshape(la == true ? crossup : na, title="Cross", style=shape.cross, color=color.blue, location=location.belowbar, offset=0, editable=false)

plotshape(la == true ? crossdown : na, title="Cross", style=shape.cross, color=color.blue, location=location.abovebar, offset=0, editable=false)


//alerts

alertcondition(crossdown or crossup, "Both", "Price crossed previous High/Low")

alertcondition(crossdown, "Under Low", "Price went below previous low")

alertcondition(crossup, "Over High", "Price went above previous high")




***** but the issue is i want alerts when the current price passes the high low not when the bar closes 

Bewerbungen

1
Entwickler 1
Bewertung
(42)
Projekte
88
14%
Schlichtung
30
30% / 53%
Frist nicht eingehalten
36
41%
Arbeitet
2
Entwickler 2
Bewertung
(563)
Projekte
932
47%
Schlichtung
302
59% / 25%
Frist nicht eingehalten
124
13%
Beschäftigt
Ähnliche Aufträge
I am seeking a coder who has experience in converting an MT4 indicator & EA(.mq4 file, source code provided) to TradingView's Pine Script. The indicator should be identical to the original, with the same inputs and settings. Upon completion of the task, the coder will send me the Pine Script indicator & EA along with the full source code, and the project will remain confidential. This task should be straightforward

Projektdetails

Budget
30 - 100 USD
Für die Entwickler
27 - 90 USD
Ausführungsfristen
bis 5 Tag(e)