Pine script conversion using ChatGPT 4

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

Viewing 15 posts - 16 through 30 (of 42 total)
  • #221191

    So the code you wrote above is correct or not ?
    ma = undefined
    if srcValue1[lenValue1] >0 then
    ma = sumf/len
    endif

    If UNDEFINED can only be assign once, can we write “ma = undefined” ?
    Or we should write “once ma = undefined” ?

    #221198

    Hello

    in

    //banker increase position with green candle
    IF fundtrend > bullbearline THEN
    DRAWCANDLE(fundtrend, bullbearline, fundtrend, bullbearline) COLOURED(0,255,0) // Green color
    ENDIF

    add

    IF fundtrend > bullbearline and not bankerentry THEN
    DRAWCANDLE(fundtrend, bullbearline, fundtrend, bullbearline) COLOURED(0,255,0) // Green color
    ENDIF

    then the yellow candle will appair …

    #221201

    Hi @lucasbest

    « Whatever the prompt i use at the begining Chatgpt does a lot of errors, syntax errors and confusion between the different languages »

    If you believe in the power of a leveraging by working with others, can I propose you share the prompt you used?
    So that we can build a step by step translation process that could maybe have better final results?

     

    #221204

    I used th prompt of Nicolas first times, and then i tried to feed chatgpt with list of all instructions of probuilder. Now i don”t use any long prompt but just say “can you translate this pine script code to probuilder language ?”.

    Sometimes chatgpt remember what i said and what it did before and do a good job with colors (splitting them in 3 variables) and with function…
    But what i don’t understand is that sometimes chatgpt go completly wrong, using new instructions, like “function(…)” or “x = IF… THEN… EDNDIF” or even “color = RGB(colorR,colorG,colorB)” in the same discussion like if it forget everything (CHATGPT have alzheimer?) we did or said before…

    It is like if probuilder language is not yet anchored in his DNA, it tries to learn but if a prompt makes it doubt about what it learned previously, then it delete all and become dumb! It is very frustrating… as i accept to loose more time helping him because i thought it will become more and more accurate in translating codes from pine script to probuilder, but i can tell after more than 15-20 indicators conversion that it isn’t the case.

    Maybe best way is to use it partilly for the things it does the best and convert the rest alone?

    1 user thanked author for this post.
    #221251

    An other Pine script indicator convrsion.
    Original script here below :
    https://www.tradingview.com/script/y80r44fM-Advanced-GET-Tom-Joseph-s-XTL-DMA-Cloud-Breakout-Signals/

    2 users thanked author for this post.
    #221255

    If UNDEFINED can only be assign once, can we write “ma = undefined” ? Or we should write “once ma = undefined” ?

    Whatever, it will have the same effect.

     

    1 user thanked author for this post.
    #221257

    What you need to understand with ChatGPT is that generative AI will do everything to satisfy you, even if it means inventing new instructions, as you’ve seen. Since it doesn’t have all the necessary notions to completely translate code from one language to another (here for ProBuilder), it will do its best to help you, even if it means generating code that isn’t compatible. That’s its purpose, that’s why it was created.
    When ChatGPT tells you that you should talk to someone more accustomed to doing translations, rather than him, it’s again not to disappoint you, it’s a bit like his “soul” talking to you. I also think he detects your insistence and annoyance in the prompt you used at the time 🙂

    *** Thanks again for sharing the indicators you’ve translated, it’s a lot of effort to help the community and I really appreciate it! ***

    #221258

    Hi @LucasBest,

    you see this answer right?

    https://www.prorealcode.com/topic/create-strategies-codes-with-chatgpt-for-prorealtime/page/4/#post-217866

    Are you using GPT4?

    1 user thanked author for this post.
    #221266

    a Lucasbest

    Would it be possible to create the “L3 Banker fund flow osci” indicator in the form of a curve (moving average type) that would be applied directly to the price graph.
    Thanks for sharing.

    #221275

    I also think he detects your insistence and annoyance in the prompt you used at the time 🙂

    *** Thanks again for sharing the indicators you’ve translated, it’s a lot of effort to help the community and I really appreciate it! ***

    It’s true, I admit I’ve been a little hard on him sometimes and even called him a dumb once or twice… 😳

    No problem for helping the community. I learned a lot here too, and still learning every day.

    #221276

    Hi @LucasBest,

    you see this answer right?

    https://www.prorealcode.com/topic/create-strategies-codes-with-chatgpt-for-prorealtime/page/4/#post-217866

    Are you using GPT4?

    Just saw it. I have same issue after few hours of using it…
    It is v4 yes.

    #221277

    a Lucasbest

    Would it be possible to create the “L3 Banker fund flow osci” indicator in the form of a curve (moving average type) that would be applied directly to the price graph.

    Thanks for sharing.

    From same author, there is this swing indicator on price :
    https://www.tradingview.com/script/ZkAray4F/

    Is that what you want ?

    #221278

    a La Maille

    This Banker swing code is interesting, showing the yellow candles.
    But a curve would be the best.
    thank for your post

    Can anyone translate the swing?

    #221361

    For those who have tradingview and can try those 2 indicators below, which one is the best/more accurate ?
    https://fr.tradingview.com/script/CapG3ivf-Bjorgum-Key-Levels/
    https://fr.tradingview.com/script/iOrhpIqc-Support-and-Resistance-Signals-MTF-LuxAlgo/

    Both do almost the same work, both are long and hard to convert… Can you vote and tell me which one worth to be translated more than th other ?

    #221382

    to Lucas,

    I’m sorry, but the last two indicators you suggested don’t appeal to me.
    The one that catches my eye, on the other hand, is the Banker Fund Swing. Translated into a curve, it would be the best, and in colours identical to the candlesticks, it would be impossible.
    But the impossible is impossible.
    Nicolas might be able to help you with that.
    Thanks for your help.
    Have a nice day.

Viewing 15 posts - 16 through 30 (of 42 total)

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