candela multi anno/multiperiodo

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #222884 quote
    Gabriele BattistaGabriele Battista
    Participant
    Senior

    Mi piacerebbe avere la possibilità di disegnare un indicatore che metta insieme n candele, l’ho fatto (e allego il codice) ma come si vede dal disegno allegato disegna tutte le candele. è possibile far in modo che ne disegni 1 ogni n (vedi disegno)? Grazie

    gb_multicandela.itf a.jpg a.jpg
    #222912 quote
    robertogozzirobertogozzi
    Moderator
    Legend

    Eccolo:

    maxn=highest[numerocandele](high)
    minn=lowest[numerocandele](low)
    closen=close[numerocandele]
    openn=open[numerocandele]
    IF Barindex MOD numerocandele = 0 THEN
       if closen>openn then
          DRAWCANDLE(openn, maxn, minn, closen)coloured(255,140,0)
       else
          DRAWCANDLE(openn, maxn, minn, closen)coloured(148,0,211)
       endif
    endif
    return
    Gabriele Battista thanked this post
    #222928 quote
    Gabriele BattistaGabriele Battista
    Participant
    Senior

    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

candela multi anno/multiperiodo


ProBuilder: Indicatori & Strumenti Personalizzati

New Reply
Summary

This topic contains 2 replies,
has 2 voices, and was last updated by Gabriele BattistaGabriele Battista
2 years, 10 months ago.

Topic Details
Forum: ProBuilder: Indicatori & Strumenti Personalizzati
Language: Italian
Started: 10/25/2023
Status: Active
Attachments: 2 files
ProRealCode ProRealCode
Loading...