candela multi anno/multiperiodo

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #222884 quote
    Gabriele 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
    robertogozzi
    Moderator
    Master

    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 Battista
    Participant
    Senior

    Grazie!

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.

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 Battista
2 years, 4 months ago.

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