Valore renko Bar

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #135798 quote
    lukittolukitto
    Participant
    New

    Buongiorno ragazzi, ho trovato sulle pagina fb di prt questo codice per creare un indicatore personalizzato “Valore renko Bar”

    Ma mi da un errore sulla linea 1 “caratteri mancanti, suggerimenti RETURN”
    Cosa vuol dire?

    Link di riferimento
    https://www.prorealcode.com/prorealtime-indicators/renko-boxes-on-price-chart/?fbclid=IwAR2RXKzTXbiCx4IifeRKnPqGrtT-lwSrXrjTacvUrXxAtE59zVf3GaRdIwQ
    Grazie.

     

    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    //parameters :
    // boxsize = 50
    once topprice = close
    once bottomprice = close – boxsize*ticksize*2
    if(close > topprice + boxsize*2) THEN
    topprice= close
    bottomprice= topprice – boxsize*2
    ELSIF (close < bottomprice – boxsize*2) THEN
    bottomprice= close
    topprice= bottomprice + boxsize*2
    ELSE
    topprice= topprice
    bottomprice= bottomprice
    ENDIF
    RETURN topprice as “box top”, bottomprice as “bottom box”
    #135800 quote
    robertogozzirobertogozzi
    Moderator
    Legend

    Hai fatto un copia & incolla errato probabilmente, lo riporto qui, ma forse è meglio se importi il file ITF allegato al link che hai indicato sopra:

    //parameters :
    boxsize = 50
    once topprice = close
    once bottomprice = close - boxsize*ticksize*2
    if(close > topprice + boxsize*2) THEN
     topprice = close
     bottomprice = topprice - boxsize*2
    ELSIF (close < bottomprice - boxsize*2) THEN
     bottomprice = close
     topprice = bottomprice + boxsize*2
    ELSE
     topprice = topprice
     bottomprice = bottomprice
    ENDIF
    RETURN topprice as "box top", bottomprice as "bottom box"
Viewing 2 posts - 1 through 2 (of 2 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

Valore renko Bar


ProBuilder: Indicatori & Strumenti Personalizzati

New Reply
Author
author-avatar
lukitto @lukitto Participant
Summary

This topic contains 1 reply,
has 2 voices, and was last updated by robertogozzirobertogozzi
6 years, 3 months ago.

Topic Details
Forum: ProBuilder: Indicatori & Strumenti Personalizzati
Language: Italian
Started: 06/13/2020
Status: Active
Attachments: No files
ProRealCode ProRealCode
Loading...