indicatore grandi quantità di volume

Viewing 4 posts - 16 through 19 (of 19 total)
  • Author
    Posts
  • #82471 quote
    Nicolas
    Keymaster
    Master

    Proviamo questo codice:

    if volume>=100 then 
     drawhline(close)
     if close>open then 
      drawarrowup(barindex,low) coloured(0,255,0)
     else
      drawarrowdown(barindex,high) coloured(255,0,0)
     endif
    endif
    
    return
    nunzio78 thanked this post
    #82505 quote
    nunzio78
    Participant
    Average

    disegna solo freccia verso il basso ma va già meglio.(draw only arrow down)

    forse bisogna inserire close<open per disegnare freccia in alto? (maybe you have to insert close<open to draw the arrowup?)

    oppure il problema è sul bid/ask?

    non capisco

    drawdown.jpg drawdown.jpg
    #82534 quote
    Nicolas
    Keymaster
    Master

    Sì, mi dispiace, è normale dato che nel grafico tick-by-tick, non c’è Open. Il codice seguente dovrebbe risolvere questo comportamento:

    up = close>last
    down = close<last
    last = close
    
    if volume>=100 then
    drawhline(close)
    if up then
    drawarrowup(barindex,low) coloured(0,255,0)
    elsif down then
    drawarrowdown(barindex,high) coloured(255,0,0)
    endif
    endif
    
    return
    nunzio78 thanked this post
    #82536 quote
    nunzio78
    Participant
    Average

    bel lavoro !!

    grazie!!

Viewing 4 posts - 16 through 19 (of 19 total)
  • You must be logged in to reply to this topic.

indicatore grandi quantità di volume


ProBuilder: Indicatori & Strumenti Personalizzati

New Reply
Author
author-avatar
nunzio78 @nunzio78 Participant
Summary

This topic contains 18 replies,
has 3 voices, and was last updated by nunzio78
7 years, 5 months ago.

Topic Details
Forum: ProBuilder: Indicatori & Strumenti Personalizzati
Language: Italian
Started: 10/05/2018
Status: Active
Attachments: 5 files
Logo Logo
Loading...