# Pine script conversion using ChatGPT 4

Forums ProRealTime English forum General trading discussions Pine script conversion using ChatGPT 4

Viewing 12 posts - 31 through 42 (of 42 total)
• #221384

I am also in favour of conversion of Banker Fund Swing … may even be easier than the 2  Support and Resistance indicators mentioned above?

LucasBest you are doing a fantastic job sharing your hard work with us … Big Thank You from Us All!

#221414

I am also in favour of conversion of Banker Fund Swing … may even be easier than the 2 Support and Resistance indicators mentioned above?

LucasBest you are doing a fantastic job sharing your hard work with us … Big Thank You from Us All!

It is for sure easier and shorter than the 2 others… But it is also less accurate for trading 🙁

Whatever, i translated it :

###### 1 user thanked author for this post. GraHal
#221416

For me these kind of indicators are far more usefull… but just my opinion

#221423

Don't be sectarian, some will see an interest in it! Everyone is different 🙂

#221425

Don’t be sectarian, some will see an interest in it! Everyone is different 🙂

Certainly. i just gave my opinion… Late signal with no range filter might kill thee capital slowly but surely, in my point of view.
I try not to be sectarian though, that is why i translated it even if i will never use it myself. 😉

###### 2 users thanked author for this post. GraHal, pror
#221450

¡ Thank you so much Lucas, you are … the best !

Here is the ALD stock

#221456

An other oscillator converted from Pine Script to Probuilder with Chat GPT v4 which does not improve from the begining….

#221457

// BANKER SWING YELLOW SCREENER 22.09.2023

// L3 BANKER FUND SWING by Lucasbest 22.09.2023

angel = exponentialaverage(close)

len = 21

lrc = LinearRegression[len](close)

lrprev = LinearRegression[len](close)

xslValue = (lrc – lrprev)

devil = exponentialaverage((xslValue * 20) + close)

long = angel CROSSES OVER devil

//short = angel CROSSES UNDER devil

len = 21

lrc = LinearRegression[len](close)

lrprev = LinearRegression[len](close)

xslValue = (lrc – lrprev)

n = 7 // short term period

m = 5 // middle term period

//lbuy = angel CROSSES OVER devil

var1 = (close – lowest(low)) / (highest(high) – lowest(low)) * 100

once ma = undefined

once b = undefined

sum = sum – var1[n] + var1

IF var1[n] > 0 THEN

ma = sum / n

ENDIF

If b = undefined then

b = ma

else

b = (var1 + b * (n – 1)) / n

Endif

//var2 = xsa(b,m,1)

once ma2 = undefined

once var2 = undefined

sum2 = sum2 – b[m] + b

IF b[m] > 0 THEN

ma2 = sum2 / m

ENDIF

IF var2 = undefined THEN

var2 = ma2

ELSE

var2 = (b + var2 * (m – 1)) / m

ENDIF

mar1 = (2*close + high + low + open) / 5

mar2 = LOWEST(low)

mar3 = HIGHEST(high)

sk = EXPONENTIALAVERAGE((mar1 – mar2) / (mar3 – mar2) * 100)

IF b <> 0 THEN

//prevB = b

ELSE

//prevB = b

ENDIF

IF sk <> 0 THEN

//prevSk = sk

ELSE

//prevSk = sk

ENDIF

c1 = long

SCREENER [c1]

#221459

/ BANKER SWING YELLOW ONLY  22.09.2023

// L3 BANKER FUND SWING bu Lucasbest 22.09.2023

angel = exponentialaverage(close)

len = 21

lrc = LinearRegression[len](close)

lrprev = LinearRegression[len](close)

xslValue = (lrc – lrprev)

devil = exponentialaverage((xslValue * 20) + close)

long = angel CROSSES OVER devil

short = angel CROSSES UNDER devil

IF long THEN

DRAWTEXT(“B”, barindex, low – 5, SansSerif, Bold, 25) COLOURED(255, 255, 0) // Using yellow color for “BUY”

ENDIF

IF long THEN

DRAWCANDLE(open, high, low, close) COLOURED(255,255,0) BORDERCOLOR(255,255,0) // Yellow candle when ‘long’ condition (crossover) is true

ENDIF

len = 21

lrc = LinearRegression[len](close)

lrprev = LinearRegression[len](close)

xslValue = (lrc – lrprev)

rdevil = exponentialaverage((xslValue * 20) + close)

n = 7 // short term period

m = 5 // middle term period

lbuy = angel CROSSES OVER devil

var1 = (close – lowest(low)) / (highest(high) – lowest(low)) * 100

once ma = undefined

once b = undefined

sum = sum – var1[n] + var1

IF var1[n] > 0 THEN

ma = sum / n

ENDIF

If b = undefined then

b = ma

else

b = (var1 + b * (n – 1)) / n

Endif

//var2 = xsa(b,m,1)

once ma2 = undefined

once var2 = undefined

sum2 = sum2 – b[m] + b

IF b[m] > 0 THEN

ma2 = sum2 / m

ENDIF

IF var2 = undefined THEN

var2 = ma2

ELSE

var2 = (b + var2 * (m – 1)) / m

ENDIF

mar1 = (2*close + high + low + open) / 5

mar2 = LOWEST(low)

mar3 = HIGHEST(high)

sk = EXPONENTIALAVERAGE((mar1 – mar2) / (mar3 – mar2) * 100)

IF b <> 0 THEN

prevB = b

ELSE

prevB = b

ENDIF

IF sk <> 0 THEN

prevSk = sk

ELSE

prevSk = sk

ENDIF

ldb = (b <= 10) AND (sk <= 10) AND (b > prevB) AND (sk > prevSk)

DRAWCANDLE(open, high, low, close) COLOURED(255, 255, 0) BORDERCOLOR(255, 255, 0) // 255, 255, 0 is the RGB code for yellow

ENDIF

RETURN

ESSO stock

#221461

For me these kind of indicators are far more usefull… but just my opinion

nice can you give us the links if they are on PRC?

#221462

For me these kind of indicators are far more usefull… but just my opinion

nice can you give us the links if they are on PRC?

They are not in PRC. Maybe i’ll put them in the Marketplace, when they will be finish (still have lot of work on them)

#222678

This is the conversion of this indicator : Bull Bear Power Trend by Dreadblitz KumoNoJuzza, Msport71, jacquesgermain, pror, Meta Signals Pro, GraHal