could you pleases covert this code from “Volumatic Variable Index Dynamic Aver

Forums ProRealTime English forum ProBuilder support could you pleases covert this code from “Volumatic Variable Index Dynamic Aver

Viewing 15 posts - 1 through 15 (of 17 total)
  • #240183

    i know there one  but not like this

     CUSTOMIZATION

    • VIDYA Length & Momentum: Control the sensitivity of the VIDYA line by adjusting the length and momentum settings, allowing traders to customize the smoothing effect to match their trading style.
    • Volume Pivot Detection: Set the number of bars to consider for identifying pivots, which influences the calculation of the average volume at key levels.
    • Band Distance: Adjust the band distance multiplier for controlling how far the upper and lower bands extend from the VIDYA line, based on the ATR (Average True Range).

     

     

    #240187

    this is how the volume deltar work

    #240195

     

    #240222

    i given it my best go

    #240228
    #240236
    #240237
    #240241

    pleses save me from this mad ness

    #240246
    Fr7
    defparam drawonlastbaronly=true
    defparam calculateonlastbars=1000
    #240248

    what does that do pleses    (like a child please)

     

    #240249
    Fr7
    defparam drawonlastbaronly=true
    defparam calculateonlastbars=1000

    // Parameters for customization

    period = 14
    CHAN = 20                              // Period for Chandle calculation
    bandDistance = 2.0
    pivotRightBars = 3            // Number of bars for the pivot point lookback
    lineLength = 5                // Length of the support line
    // Length of the support line
    // Initialize VIDYA (Variable Index Dynamic Average)
    IF barindex > 100 THEN
    k = ABS(Std[CHAN](close)) / 100
    alfa = 2 / (period + 1)
    IF barindex = 1 THEN
    vidya = close  // Initialize vidya at the first bar
    ELSE
    vidya = alfa * k * close + (1 alfa * k) * vidya[1]
    ENDIF
    ENDIF
    // Calculate True Range (TR) for ATR bands
    TrueRange = TR(close)
    ATRValue = AverageTrueRange[200](close)
    // Calculate ATR for bands
    upperBand = vidya + ATRValue * bandDistance
    lowerBand = vidya ATRValue * bandDistance
    // Conditions to enter long positions
    indicator1 = CALL “MyIndicator(27)”
    c1 = (indicator1 CROSSES under 0)
    // Debugging: Check if c1 is ever true
    IF c1 THEN
    DRAWTEXT(“Crossed over”, barindex, high)
    ENDIF
    // Iterate through each bar to find pivot lows and draw support lines when c1 is true
    IF c1 THEN
    FOR i = pivotRightBars TO barindex pivotRightBars DO
    // Check if this is a pivot low (support level)
    IF LOW[i] < MIN(LOW[i pivotRightBars], LOW[i + pivotRightBars]) THEN
    upperBand = AVERAGE[pivotRightBars](CLOSE)  // Example smoothing calculation
    IF LOW[i] > upperBand THEN
    // Draw a support line at the pivot low point
    DRAWSEGMENT(i, LOW[i], i + lineLength, LOW[i]) COLOURED(0, 255, 0) // Green for support zone
    ENDIF
    ENDIF
    NEXT
    ENDIF
    // The return statement should be placed at the end
    RETURN upperBand as “Upper Band”, lowerBand AS “Lower Band”
    #240250
    Fr7

    If you put this at the beginning of the code it prevents your last photo from being unreadable:
    defparam drawonlastbaronly=true
    defparam calculatedlastbars=1000

    1 user thanked author for this post.
    #240256
    #240258

    i know it can be done i just dont know how or what some things are doing

    #240325

    Hola. Os paso mi versión:

    Hi. Here is my version:

    1 user thanked author for this post.
Viewing 15 posts - 1 through 15 (of 17 total)

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