Traduzione Price Kijun Equilibrium Index

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #200917 quote
    fab.ubfab.ub
    Participant
    New

    Buongiorno, chiedo la conversione del codice di questo indicatore …grazie 🙂

    //@version=3
    // Price Kijun Equilibrium Index
    // idea from this twitter: https://twitter.com/Crypto_Analyst/status/898202561949429761
    study(“Price vs Kijun”, overlay=false)

    //Inputs
    ks_bars = input(60, minval=1, title=”Kijun-Sen Bars”)
    rc = close
    middle(len) => avg(lowest(len), highest(len))
    kijun = middle(ks_bars)
    kijun_percent = ((rc/kijun) -1) * 100
    p1 = plot(0)
    p2 = plot(kijun_percent)
    fill(p1, p2)

    // optional
    // horizontal lines on 20% and 30%, -20% and -30%
    h1 = input(title=”Horizontal bar A”, type=float, defval=-30, minval=-100, maxval=100, step=1)
    h2 = input(title=”Horizontal bar B”, type=float, defval=-20, minval=-100, maxval=100, step=1)
    h3 = input(title=”Horizontal bar C”, type=float, defval=20, minval=-100, maxval=100, step=1)
    h4 = input(title=”Horizontal bar D”, type=float, defval=30, minval=-100, maxval=100, step=1)
    ha = hline(h1, title=’Line A %’, color=gray, linestyle=dotted, linewidth=1)
    hb = hline(h2, title=’Line B %’, color=gray, linestyle=dotted, linewidth=1)
    hc = hline(h3, title=’Line C %’, color=gray, linestyle=dotted, linewidth=1)
    hd = hline(h4, title=’Line D %’, color=gray, linestyle=dotted, linewidth=1)

    #201010 quote
    robertogozzirobertogozzi
    Moderator
    Legend

    Eccolo:

    ksbars  = 60    //minumo 1
    len     = 10
    hA      = -0.3      //-100 - 100
    hB      = -0.2      //-100 - 100
    hC      = 0.2       //-100 - 100
    hD      = 0.3       //-100 - 100
    rc      = close
    mid     = average[len](((lowest[len](low) + highest[len](high)) / 2))
    kijun   = mid[ksbars]
    kijunPC =  ((rc / kijun) -1) * 100
    RETURN kijunPC AS "kijun PerCent",0 AS "Zero",hA AS "Line A%",hB AS "Line B%",hC AS "Line C%",hD AS "Line D%"
    Nicolas thanked this post
    MyIndicator.itf x-1.jpg x-1.jpg
    #201056 quote
    fab.ubfab.ub
    Participant
    New

    Great! grazie

Viewing 3 posts - 1 through 3 (of 3 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

Traduzione Price Kijun Equilibrium Index


ProBuilder: Indicatori & Strumenti Personalizzati

New Reply
Author
Summary

This topic contains 2 replies,
has 2 voices, and was last updated by fab.ubfab.ub
4 years ago.

Topic Details
Forum: ProBuilder: Indicatori & Strumenti Personalizzati
Language: Italian
Started: 09/16/2022
Status: Active
Attachments: 2 files
ProRealCode ProRealCode
Loading...