Code written in pine script and mql4 to be converted to lua

If you need an Indicator or Signal developed or translated from other language, please post all Indicator development REQUESTS to this section here.

Moderator: admin

Code written in pine script and mql4 to be converted to lua

Postby Jennieh814 » Thu Apr 25, 2019 3:45 pm

I need an existing tradingview indicator to be converted into the appropriate code for fxcm trading station, which I believe is lua

Thanks
Jennieh814
 
Posts: 16
Joined: Thu Apr 25, 2019 3:36 pm


Re: Code written in pine script and mql4 to be converted to

Postby 00808060 » Tue Feb 23, 2021 3:27 pm

could you please convert this code (trading view ) to lua
Code: Select all
//@version=4
//@DayTradingOil
// I wrote this to make it easier to precisely draw in and highlight Key Price Levels given out in my Telegram Group.
// We use these levels to base our trades and determine market sentiment. The use of this script makes it easier to adjust
// Key Price Levels when using TradingView's Mobile App.
study("Manual Levels Plotter", overlay=true)
a1 = input(0, minval=0, type=input.float, title="Horizontal Line 1")
b1 = input(false, type=input.bool, title="Highlight Line 1?")
c1 = b1 == true ? color.red : color.yellow
hline(a1, title="Horizontal Line 1", color=c1, linestyle=hline.style_solid, linewidth=2)
plot(a1)

a2 = input(0, minval=0, type=input.float, title="Horizontal Line 2")
b2 = input(false, type=input.bool, title="Highlight Line 2?")
c2 = b2 == true ? color.red : color.yellow
hline(a2, title="Horizontal Line 2", color=c2, linestyle=hline.style_solid, linewidth=2)
plot(a2)

a3 = input(0, minval=0, type=input.float, title="Horizontal Line 3")
b3 = input(false, type=input.bool, title="Highlight Line 3?")
c3 = b3 == true ? color.red : color.yellow
hline(a3, title="Horizontal Line 3", color=c3, linestyle=hline.style_solid, linewidth=2)
plot(a3)

a4 = input(0, minval=0, type=input.float, title="Horizontal Line 4")
b4 = input(false, type=input.bool, title="Highlight Line 4?")
c4 = b4 == true ? color.red : color.yellow
hline(a4, title="Horizontal Line 4", color=c4, linestyle=hline.style_solid, linewidth=2)
plot(a4)

a5 = input(0, minval=0, type=input.float, title="Horizontal Line 5")
b5 = input(false, type=input.bool, title="Highlight Line 5?")
c5 = b5 == true ? color.red : color.yellow
hline(a5, title="Horizontal Line 5", color=c5, linestyle=hline.style_solid, linewidth=2)
plot(a5)

a6 = input(0, minval=0, type=input.float, title="Horizontal Line 6")
b6 = input(false, type=input.bool, title="Highlight Line 6?")
c6 = b6 == true ? color.red : color.yellow
hline(a6, title="Horizontal Line 6", color=c6, linestyle=hline.style_solid, linewidth=2)
plot(a6)

a7 = input(0, minval=0, type=input.float, title="Horizontal Line 7")
b7 = input(false, type=input.bool, title="Highlight Line 7?")
c7 = b7 == true ? color.red : color.yellow
hline(a7, title="Horizontal Line 7", color=c7, linestyle=hline.style_solid, linewidth=2)
plot(a7)

a8 = input(0, minval=0, type=input.float, title="Horizontal Line 8")
b8 = input(false, type=input.bool, title="Highlight Line 8?")
c8 = b8 == true ? color.red : color.yellow
hline(a8, title="Horizontal Line 8", color=c8, linestyle=hline.style_solid, linewidth=2)
plot(a8)

a9 = input(0, minval=0, type=input.float, title="Horizontal Line 9")
b9 = input(false, type=input.bool, title="Highlight Line 9?")
c9 = b9 == true ? color.red : color.yellow
hline(a9, title="Horizontal Line 9", color=c9, linestyle=hline.style_solid, linewidth=2)
plot(a9)

a10 = input(0, minval=0, type=input.float, title="Horizontal Line 10")
b10 = input(false, type=input.bool, title="Highlight Line 10?")
c10 = b10 == true ? color.red : color.yellow
hline(a10, title="Horizontal Line 10", color=c10, linestyle=hline.style_solid, linewidth=2)
plot(a10)

a11 = input(0, minval=0, type=input.float, title="Horizontal Line 11")
b11 = input(false, type=input.bool, title="Highlight Line 11?")
c11 = b11 == true ? color.red : color.yellow
hline(a11, title="Horizontal Line 11", color=c11, linestyle=hline.style_solid, linewidth=2)
plot(a11)

a12 = input(0, minval=0, type=input.float, title="Horizontal Line 12")
b12 = input(false, type=input.bool, title="Highlight Line 12?")
c12 = b12 == true ? color.red : color.yellow
hline(a12, title="Horizontal Line 12", color=c12, linestyle=hline.style_solid, linewidth=2)
plot(a12)

a13 = input(0, minval=0, type=input.float, title="Horizontal Line 13")
b13 = input(false, type=input.bool, title="Highlight Line 13?")
c13 = b13 == true ? color.red : color.yellow
hline(a13, title="Horizontal Line 13", color=c13, linestyle=hline.style_solid, linewidth=2)
plot(a13)

a14 = input(0, minval=0, type=input.float, title="Horizontal Line 14")
b14 = input(false, type=input.bool, title="Highlight Line 14?")
c14 = b14 == true ? color.red : color.yellow
hline(a14, title="Horizontal Line 14", color=c14, linestyle=hline.style_solid, linewidth=2)
plot(a14)

a15 = input(0, minval=0, type=input.float, title="Horizontal Line 15")
b15 = input(false, type=input.bool, title="Highlight Line 15?")
c15 = b15 == true ? color.red : color.yellow
hline(a15, title="Horizontal Line 15", color=c15, linestyle=hline.style_solid, linewidth=2)
plot(a15)

a16 = input(0, minval=0, type=input.float, title="Horizontal Line 16")
b16 = input(false, type=input.bool, title="Highlight Line 16?")
c16 = b16 == true ? color.red : color.yellow
hline(a16, title="Horizontal Line 16", color=c16, linestyle=hline.style_solid, linewidth=2)
plot(a16)

a17 = input(0, minval=0, type=input.float, title="Horizontal Line 17")
b17 = input(false, type=input.bool, title="Highlight Line 17?")
c17 = b17 == true ? color.red : color.yellow
hline(a17, title="Horizontal Line 17", color=c17, linestyle=hline.style_solid, linewidth=2)
plot(a17)

a18 = input(0, minval=0, type=input.float, title="Horizontal Line 18")
b18 = input(false, type=input.bool, title="Highlight Line 18?")
c18 = b18 == true ? color.red : color.yellow
hline(a18, title="Horizontal Line 18", color=c18, linestyle=hline.style_solid, linewidth=2)
plot(a18)

a19 = input(0, minval=0, type=input.float, title="Horizontal Line 19")
b19 = input(false, type=input.bool, title="Highlight Line 19?")
c19 = b19 == true ? color.red : color.yellow
hline(a19, title="Horizontal Line 19", color=c19, linestyle=hline.style_solid, linewidth=2)
plot(a19)

a20 = input(0, minval=0, type=input.float, title="Horizontal Line 20")
b20 = input(false, type=input.bool, title="Highlight Line 20?")
c20 = b20 == true ? color.red : color.yellow
hline(a20, title="Horizontal Line 20", color=c20, linestyle=hline.style_solid, linewidth=2)
plot(a20)

a21 = input(0, minval=0, type=input.float, title="Horizontal Line 21")
b21 = input(false, type=input.bool, title="Highlight Line 21?")
c21 = b21 == true ? color.red : color.yellow
hline(a21, title="Horizontal Line 21", color=c21, linestyle=hline.style_solid, linewidth=2)
plot(a21)

a22 = input(0, minval=0, type=input.float, title="Horizontal Line 22")
b22 = input(false, type=input.bool, title="Highlight Line 22?")
c22 = b22 == true ? color.red : color.yellow
hline(a22, title="Horizontal Line 22", color=c22, linestyle=hline.style_solid, linewidth=2)
plot(a22)

a23 = input(0, minval=0, type=input.float, title="Horizontal Line 23")
b23 = input(false, type=input.bool, title="Highlight Line 23?")
c23 = b23 == true ? color.red : color.yellow
hline(a23, title="Horizontal Line 23", color=c23, linestyle=hline.style_solid, linewidth=2)
plot(a23)

a24 = input(0, minval=0, type=input.float, title="Horizontal Line 24")
b24 = input(false, type=input.bool, title="Highlight Line 24?")
c24 = b24 == true ? color.red : color.yellow
hline(a24, title="Horizontal Line 24", color=c24, linestyle=hline.style_solid, linewidth=2)
plot(a24)

a25 = input(0, minval=0, type=input.float, title="Horizontal Line 25")
b25 = input(false, type=input.bool, title="Highlight Line 25?")
c25 = b25 == true ? color.red : color.yellow
hline(a25, title="Horizontal Line 25", color=c25, linestyle=hline.style_solid, linewidth=2)
plot(a25)

a26 = input(0, minval=0, type=input.float, title="Horizontal Line 26")
b26 = input(false, type=input.bool, title="Highlight Line 26?")
c26 = b26 == true ? color.red : color.yellow
hline(a26, title="Horizontal Line 26", color=c26, linestyle=hline.style_solid, linewidth=2)
plot(a26)

a27 = input(0, minval=0, type=input.float, title="Horizontal Line 27")
b27 = input(false, type=input.bool, title="Highlight Line 27?")
c27 = b27 == true ? color.red : color.yellow
hline(a27, title="Horizontal Line 27", color=c27, linestyle=hline.style_solid, linewidth=2)
plot(a27)

a28 = input(0, minval=0, type=input.float, title="Horizontal Line 28")
b28 = input(false, type=input.bool, title="Highlight Line 28?")
c28 = b28 == true ? color.red : color.yellow
hline(a28, title="Horizontal Line 28", color=c28, linestyle=hline.style_solid, linewidth=2)
plot(a28)

a29 = input(0, minval=0, type=input.float, title="Horizontal Line 29")
b29 = input(false, type=input.bool, title="Highlight Line 29?")
c29 = b29 == true ? color.red : color.yellow
hline(a29, title="Horizontal Line 29", color=c29, linestyle=hline.style_solid, linewidth=2)
plot(a29)

a30 = input(0, minval=0, type=input.float, title="Horizontal Line 30")
b30 = input(false, type=input.bool, title="Highlight Line 30?")
c30 = b30 == true ? color.red : color.yellow
hline(a30, title="Horizontal Line 30", color=c30, linestyle=hline.style_solid, linewidth=2)
plot(a30)

00808060
 
Posts: 7
Joined: Tue Feb 23, 2021 1:00 pm

Re: Code written in pine script and mql4 to be converted to

Postby Apprentice » Wed Feb 24, 2021 3:54 am

Your request is added to the development list.
Development reference 226.
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 36341
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia


Re: Code written in pine script and mql4 to be converted to

Postby 00808060 » Mon Mar 01, 2021 1:47 pm

thank you too much brother the indicator works fine ... great job.... i appreciate that.
00808060
 
Posts: 7
Joined: Tue Feb 23, 2021 1:00 pm


Return to Indicator and Signal Requests

Who is online

Users browsing this forum: No registered users and 9 guests