Moxie indicator conversion

Forums ProRealTime English forum ProBuilder support Moxie indicator conversion

Tagged: 

Viewing 9 posts - 1 through 9 (of 9 total)
  • #167742

    I am just wandering if anyone could help to convert moxie indicator and scanner from TOS (think of swim) to PRT.

    Code as below

     

    indicator

     

    Trade Signal

     

    Scanner

     

     

     

    #167771

    Please post pictures in order to get the same look into PRT.

    #167900

    Here you go. Thanks Nicolas

     

    #167906

    Here is the translated code of Moxie indicator. Apply it twice, on the price chart in order to see the arrows of the trading signals and separated as an oscillator. Lot of useless code have been wiped out. This indicator seems to be a daily normalized MACD.

     

    #167914

    The signal and indicator don’t show up on my 1 hr chart

    #168066

    Apply it twice, on the price chart in order to see the arrows of the trading signals and separated as an oscillator.

    Just follow the instruction ^^ 🙄

    #248132

    Hi Nicolas,

    I have tried to use this code for Trading View. Do I require any ammendments in order for it to work?

    Currently get this error

    ps – I am no coder
    #248133

    update: used chatgpt

    gave me this code

    //@version=5
    indicator(“ST_Moxie_Hourly”, overlay=false)

    // === Input Parameters ===
    s5v = input.int(12, “Short EMA”, minval=1)
    s5r = input.int(26, “Long EMA”, minval=1)
    s5g = input.int(9, “Signal EMA”, minval=1)
    scaleFactor = input.int(1000, “Visual Scale”, minval=1) // Adjust for asset

    // === Moxie Calculations ===
    vc1 = ta.ema(close, s5v) – ta.ema(close, s5r)
    va1 = ta.ema(vc1, s5g)
    moxieRaw = vc1 – va1
    moxie = moxieRaw * scaleFactor

    // === Color Based on Trend Direction ===
    isUp = moxie > moxie[1]
    isDown = moxie < moxie[1]
    moxieColor = isUp ? color.green : isDown ? color.red : color.gray

    // === Line Plot ===
    plot(moxie, title=”Moxie Line”, style=plot.style_line, color=moxieColor, linewidth=2)

    // === Reference Line ===
    hline(0, “Zero Line”, color=color.gray, linewidth=1)

    It doesnt look like the original, unsure why. However do you think this is okay? Not got the arrows on the graph and I see you say paste it twice but that does not work and creates an error.
    Also, can this code be used for any time frame or just the one hour? Do I need to make ammendemnets to it so I can switch between time frames and the data is still correct? cheers

    #248266

    Hello @jamjamjam,

    Conversion of codes from Tradingview or another platform towards ProRealTime language would be free on the forums of this ProRealCode website dedicated to ProRealTime. But conversion of a ProRealTime code into a language compatible with tradingview would be a paid-for private job rather than a forum free discussion, for which you may ask for a quote in the “trading programming services” section of the PRC website, available in the help menu at the top of current page. Direct link:

    https://www.prorealcode.com/trading-programming-services/

     

Viewing 9 posts - 1 through 9 (of 9 total)

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