VARIAZIONE COLERE HEIKIN HASHI CON INDICATORE

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #68737 quote
    Hendrix
    Participant
    Senior

    Buongiorno,

    è possibile ad esempio che se CCI maggiore del valore di 100 e minore del valore -100 le candele heikin hashi vengano colorate ad esempio di viola se impostate di default verdi e rosse?

     

    Grazie

    #68833 quote
    robertogozzi
    Moderator
    Master

    Eccolo, dovrebbe funzionare (sul prezzo devi indicare Heikin-Ashi, non Candele, nelle proprietà), poi aggiungi questo che visualizza in VIOLA, con un leggero contorno celeste, quelle in cui CCI <-100 o >+100.

    DEFPARAM CalculateOnLastBars = 1000
    IF BarIndex > 1 THEN
       haClose = (open + close + low + high) / 4
       haOpen  = (haOpen[1] + haclose[1]) / 2
       xHigh   = Max(haOpen, haClose)
       xLow    = Min(haOpen, haClose)
       haHigh  = Max(High, xHigh)
       haLow   = Min(Low,  xLow)
       CciValue = abs(CCI[20])
       IF CciValue > 100 THEN
          DRAWCANDLE(haOpen,haHigh,haLow,haClose) COLOURED(153,50,204,255) bordercolor(0,255,255,160)  //Bordo celeste
       ENDIF
    ENDIF
    RETURN

    dovrai metterlo sul prezzo, non sotto.

    Per i colori puoi personalizzarli come vuoi, come da tabella https://www.prorealcode.com/wp-content/uploads/2015/09/P1jHlnG.jpg.

    Il quarto parametro dei colori, opzionale, è l’intensità del colore, tra 0=invisibile e 255=massima intensità.

    #68864 quote
    Hendrix
    Participant
    Senior

    Grazie mille !!!!

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

VARIAZIONE COLERE HEIKIN HASHI CON INDICATORE


ProOrder: Trading Automatico & Backtesting

New Reply
Author
author-avatar
Hendrix @hendrix Participant
Summary

This topic contains 2 replies,
has 2 voices, and was last updated by Hendrix
7 years, 9 months ago.

Topic Details
Forum: ProOrder: Trading Automatico & Backtesting
Language: Italian
Started: 04/19/2018
Status: Active
Attachments: 1 files
Logo Logo
Loading...