DeepSeek knows PRT language quite well

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #243223 quote
    MaoRai54MaoRai54
    Participant
    Master

    Try it.  It knows PRT with some mistakes to be corrected but it’s much better than chatgpt

    #243229 quote
    Iván GonzálezIván González
    Moderator
    Legend

    We will try it, thanks!

    #243233 quote
    robertogozzirobertogozzi
    Moderator
    Legend

    I asked DeepSeek for the RSI code. After coding it for a different language, I asked for the correct one and this time the code was this one:

    // RSI Indicator in ProRealTime (ProBuilder)
    
    // Input parameters
    Length = 14 // RSI period length
    Overbought = 70 // Overbought level
    Oversold = 30 // Oversold level
    
    // Calculate upward and downward price changes
    Up = Max(Close - Close[1], 0)
    Down = Max(Close[1] - Close, 0)
    
    // Calculate average upward and downward changes
    AvgUp = WILDERAverage[Length](Up)      //AvgUp = Average[Length](Up)
    AvgDown = WILDERAverage[Length](Down)  //AvgDown = Average[Length](Down)
    
    // Calculate RSI
    myRSI = 100 - (100 / (1 + (AvgUp / AvgDown)))   //RSI = .....
    
    // Plot RSI
    RETURN myRSI AS "RSI", Overbought AS "Overbought", Oversold AS "Oversold" //RSI AS "RSI"....

    it was almost correct, I had to change AVERAGE into WILDERAVERAGE, then it used the keyword RSI wich is reserved so I modified it into myRsi and it worked correctly.

    Maybe when I have some more spare time, I will try to ask for something more complex.

    #243237 quote
    MaoRai54MaoRai54
    Participant
    Master

    I teached it some PRT words and it took into its memory.

    So everytime it’s doing a language mistake you can correct it for the future

    robertogozzi thanked this post
    #243241 quote
    Iván GonzálezIván González
    Moderator
    Legend

    Does it have memory even if you are in another chat? That's very good

Viewing 5 posts - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.
ProRealAI ProRealAI New

Stuck on this ProBuilder code?

Describe what this topic is trying to build, in plain English, and ProRealAI writes the ProRealTime™ indicator, screener or system for you.

Available in 7 languages
Try ProRealAI

DeepSeek knows PRT language quite well


ProOrder: Automated Strategies & Backtesting

New Reply
Author
author-avatar
MaoRai54 @maorai Participant
Summary

This topic contains 4 replies,
has 3 voices, and was last updated by Iván GonzálezIván González
1 year, 7 months ago.

Topic Details
Forum: ProOrder: Automated Strategies & Backtesting
Language: English
Started: 01/30/2025
Status: Active
Attachments: No files
ProRealCode ProRealCode
Loading...