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 :

    I hope it will be usefull for your trading…

    1 user thanked author for this post.
    #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.
    #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….

    https://www.tradingview.com/script/Ap9HknuH-Bulls-v-Bears/

    #221457

    // BANKER SWING YELLOW SCREENER 22.09.2023

     

    // L3 BANKER FUND SWING by Lucasbest 22.09.2023

    // © blackcat1402 //@version=4

     

     

    angel = exponentialaverage[2](close)

     

    len = 21

    lrc = LinearRegression[len](close)

    lrprev = LinearRegression[len](close[1])

    xslValue = (lrc – lrprev)

    devil = exponentialaverage[42]((xslValue * 20) + close)

     

    long = angel CROSSES OVER devil

    //short = angel CROSSES UNDER devil

     

    len = 21

    lrc = LinearRegression[len](close)

    lrprev = LinearRegression[len](close[1])

    xslValue = (lrc – lrprev)

     

    n = 7 // short term period

    m = 5 // middle term period

     

    //lbuy = angel CROSSES OVER devil

     

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

     

    once ma = undefined

    once b = undefined

     

    sum = sum[1] – var1[n] + var1

     

    IF var1[n] > 0 THEN

    ma = sum / n

    ENDIF

     

    If b[1] = undefined then

    b = ma

    else

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

    Endif

     

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

    once ma2 = undefined

    once var2 = undefined

     

    sum2 = sum2[1] – b[m] + b

     

    IF b[m] > 0 THEN

    ma2 = sum2 / m

    ENDIF

     

    IF var2[1] = undefined THEN

    var2 = ma2

    ELSE

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

    ENDIF

     

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

    mar2 = LOWEST[34](low)

    mar3 = HIGHEST[34](high)

     

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

     

    IF b[1] <> 0 THEN

    //prevB = b[1]

    ELSE

    //prevB = b

    ENDIF

     

    IF sk[1] <> 0 THEN

    //prevSk = sk[1]

    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

    // © blackcat1402 //@version=4

    angel = exponentialaverage[2](close)

    len = 21

    lrc = LinearRegression[len](close)

    lrprev = LinearRegression[len](close[1])

    xslValue = (lrc – lrprev)

    devil = exponentialaverage[42]((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[1])

    xslValue = (lrc – lrprev)

    rdevil = exponentialaverage[42]((xslValue * 20) + close)

    n = 7 // short term period

    m = 5 // middle term period

    lbuy = angel CROSSES OVER devil

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

    once ma = undefined

    once b = undefined

    sum = sum[1] – var1[n] + var1

    IF var1[n] > 0 THEN

    ma = sum / n

    ENDIF

    If b[1] = undefined then

    b = ma

    else

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

    Endif

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

    once ma2 = undefined

    once var2 = undefined

    sum2 = sum2[1] – b[m] + b

    IF b[m] > 0 THEN

    ma2 = sum2 / m

    ENDIF

    IF var2[1] = undefined THEN

    var2 = ma2

    ELSE

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

    ENDIF

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

    mar2 = LOWEST[34](low)

    mar3 = HIGHEST[34](high)

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

    IF b[1] <> 0 THEN

    prevB = b[1]

    ELSE

    prevB = b

    ENDIF

    IF sk[1] <> 0 THEN

    prevSk = sk[1]

    ELSE

    prevSk = sk

    ENDIF

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

    swingBuy = lbuy AND ldb

    IF lbuy THEN

    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
    https://in.tradingview.com/script/wjlDy5tV-Bull-Bear-Power-Trend/

    7 users thanked author for this post.
Viewing 12 posts - 31 through 42 (of 42 total)

Create your free account now and post your request to benefit from the help of the community
Register or Login