Codice per contatore candele heiken ashi

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #61343 quote
    MorrisMorris
    Participant
    New

    Salve, vorrei sapere se esiste o se qualcuno può realizzarlo, un indicatore per prorealtime basato sulle candele heikin-ashi. praticamente ogni volta che il colore delle candele cambia dovrebbe contarmi il numero delle candele con lo stesso colore e stamparmi sul grafico sopra la candela interessata il numero 3 sulla terza candela il numero 5 sulla quinta il numero 8 sull’ottava il numero 10 sulla decima il numero 11 sull’undicesima e il numero 13 sulla tredicesima. se la candela cambia colore il conteggio riparte.

    Qualcuno sa se esiste questo indicatore o magari saprebbe farlo?

    Grazie.

    Vedi esempio in file.

    Conteggio-candele.jpg Conteggio-candele.jpg
    #61371 quote
    maximus78maximus78
    Participant
    Senior

    Ciao Morris, ecco il codice, mi sembra giusto, verifica.

    Devi inserirlo dal grafico dei prezzi per visualizzarlo sul grafico.

    Maxx

    IF BarIndex = 0 THEN
    XClose = TotalPrice
    XOpen = (Open + Close) / 2
    ELSE
    XClose = TotalPrice
    XOpen = (XOpen[1] + Xclose[1]) / 2
    ENDIF
     
    if xclose>xopen and xclose[1]<xopen[1] then
    myindex=barindex
    endif
    dis=averagetruerange[10](close)*1.2
    if barindex-myindex=2 and xclose[0]>xopen[0] then
    drawtext ("3", barindex[0], low[0]-dis, dialog , standard, 16) coloured(0,0,0)
    endif
    if barindex-myindex=4 and xclose[0]>xopen[0] then
    drawtext ("5", barindex[0], low[0]-dis, dialog , standard, 16) coloured(0,0,0)
    endif
    if barindex-myindex=7 and xclose[0]>xopen[0] then
    drawtext ("8", barindex[0], low[0]-dis, dialog , standard, 16) coloured(0,0,0)
    endif
    if barindex-myindex=9 and xclose[0]>xopen[0] then
    drawtext ("10", barindex[0], low[0]-dis, dialog , standard, 16) coloured(0,0,0)
    endif
    if barindex-myindex=10 and xclose[0]>xopen[0] then
    drawtext ("11", barindex[0], low[0]-dis, dialog , standard, 16) coloured(0,0,0)
    endif
    if barindex-myindex=12 and xclose[0]>xopen[0] then
    drawtext ("13", barindex[0], low[0]-dis, dialog , standard, 16) coloured(0,0,0)
    endif
    
    if xclose<xopen and xclose[1]>xopen[1] then
    myindex=barindex
    endif
    if barindex-myindex=2 and xclose[0]<xopen[0] then
    drawtext ("3", barindex[0], high[0]+dis, dialog , standard, 16) coloured(255,0,0)
    endif
    if barindex-myindex=4 and xclose[0]<xopen[0] then
    drawtext ("5", barindex[0], high[0]+dis, dialog , standard, 16) coloured(255,0,0)
    endif
    if barindex-myindex=7 and xclose[0]<xopen[0] then
    drawtext ("8", barindex[0], high[0]+dis, dialog , standard, 16) coloured(255,0,0)
    endif
    if barindex-myindex=9 and xclose[0]<xopen[0] then
    drawtext ("10", barindex[0], high[0]+dis, dialog , standard, 16) coloured(255,0,0)
    endif
    if barindex-myindex=10 and xclose[0]<xopen[0] then
    drawtext ("11", barindex[0], high[0]+dis, dialog , standard, 16) coloured(255,0,0)
    endif
    if barindex-myindex=12 and xclose[0]<xopen[0] then
    drawtext ("13", barindex[0], high[0]+dis, dialog , standard, 16) coloured(255,0,0)
    endif
    return
    
    #61393 quote
    MorrisMorris
    Participant
    New

    Grazie maximus78 sei stato un grande. Funziona benissimo. Grazie per la tua professionalità e disponibilità. Complimenti.

    #61511 quote
    maximus78maximus78
    Participant
    Senior

    Prego Morris! grazie per i complimenti!

    Max

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

Codice per contatore candele heiken ashi


ProBuilder: Indicatori & Strumenti Personalizzati

New Reply
Author
author-avatar
Morris @morris Participant
Summary

This topic contains 3 replies,
has 2 voices, and was last updated by maximus78maximus78
8 years, 7 months ago.

Topic Details
Forum: ProBuilder: Indicatori & Strumenti Personalizzati
Language: Italian
Started: 02/03/2018
Status: Active
Attachments: 1 files
ProRealCode ProRealCode
Loading...