Create strategies codes with ChatGPT for ProRealTime

Forums ProRealTime English forum General trading discussions Create strategies codes with ChatGPT for ProRealTime

Viewing 6 posts - 76 through 81 (of 81 total)
  • #235975

    Links work for me.

    Are you on paid subscription to gpt?

    #235977

    Ah that is it … no, I am not on paid subscription.

    Another conundrum solved, thank you.

    #249117

    Have anyone tried coding using the Microsoft Copilot+ PC? Is it usefull for ProBuilder?

    As I understand it, its a built in Chat GPT in microsoft, or in some Microsoft tools.

    Is it even possible to use the ProRealCode integration with it, or is it better to stick with the standalone Chat GPT?

     

    #249135

    ProRealCode has no integration with AI currently.

     

    #249194

    I have used AI/ChatGPT a bit lately, summarizing trading books and creating strategies from that book for me. For that use case it works really nice! Included strategies down below are from the trading book “Long term secrets to short term trading” by Larry Williams. Have fun, and please share any refinements or proper strategies based on these 🙂

    5 users thanked author for this post.
    #249319

    I have used AI/ChatGPT a bit lately, summarizing trading books and creating strategies from that book for me. For that use case it works really nice! Included strategies down below are from the trading book “Long term secrets to short term trading” by Larry Williams. Have fun, and please share any refinements or proper strategies based on these 🙂

    // 1. 1-2-3 Low Reversal
    defparam cumulateorders = false

    // 1-2-3 Low setup
    if low[2] < low[3] and high[1] > low[2] and low < low[2] then
    buyTrigger = high[1]
    endif

    if not onmarket and close crosses over buyTrigger then
    buy 1 contract at market
    entryBar = barindex
    endif

    // Exit after 2 days
    if onmarket and (barindex – entryBar) >= 2 then
    sell at market
    endif

    // I did a backtest and liked this code. I have added a short and did some updates. it shows promis and I will backtest on live data for a few days and see if I can refine it a bit more. 1H Timeframe

    // === SETTINGS ===
    DEFPARAM CumulateOrders = False

    // === VARIABLES ===
    if barindex = 0 then
    entryBar = 0
    buyTrigger = 0.0
    sellTrigger = 0.0
    endif

    // === 1-2-3 LOW REVERSAL SETUP (LONG) ===
    if low[2] < low[3] AND high[1] > low[2] AND low < low[2] THEN buyTrigger = high[1] endif // === 1-2-3 HIGH REVERSAL SETUP (SHORT) === if high[2] > high[3] AND low[1] < high[2] AND high > high[2] THEN
    sellTrigger = low[1]
    endif

    // === LONG ENTRY ===
    if NOT onmarket AND close crosses over buyTrigger THEN
    buy 10 CONTRACT AT MARKET
    entryBar = barindex
    endif

    // === SHORT ENTRY ===
    if NOT onmarket AND close crosses under sellTrigger THEN
    sellshort 10 CONTRACT AT MARKET
    entryBar = barindex
    endif

    // === LONG EXIT ===
    if LONGONMARKET AND (barindex – entryBar) >= 20 AND close > tradeprice THEN
    sell AT MARKET
    endif

    // === SHORT EXIT ===
    if SHORTONMARKET AND (barindex – entryBar) >= 20 AND close < tradeprice THEN exitshort AT MARKET endif

    3 users thanked author for this post.
Viewing 6 posts - 76 through 81 (of 81 total)

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