GAP Indicator

Viewing 1 post (of 1 total)
  • Author
    Posts
  • #35099 quote
    MaxMax
    Participant
    Average

    Qui di seguito una domanda inviata a ProRealTime :

    Vorrei la programmazione di un indicatore da applicare sui pressi che evidenzi la presenza di gap (buco tra apertura della candela successiva e chiusura precedente, che faccia comparire una linea applicata alla chiusura della candela precedente e questa linea scompaia alla chiusura del gap)

     

    E un esempio di risposta :

    once sens=0
    
    if sens=0 and open <> close[1] then
    if open > close[1] then
    sens=1
    else
    sens=-1
    endif
    bar=barindex[1]
    value=open
    endif
    
    if sens<>0 then
    DRAWSEGMENT(barindex, value, bar, value)
    if (sens =1 and close <= value) or (sens=-1 and close >= value) then
    sens=0
    endif
    endif
    
    return
Viewing 1 post (of 1 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

GAP Indicator


ProBuilder: Indicatori & Strumenti Personalizzati

New Reply
Author
author-avatar
Max @max Participant
Summary

This topic contains 1 voice and has 0 replies.

Topic Details
Forum: ProBuilder: Indicatori & Strumenti Personalizzati
Language: Italian
Started: 05/10/2017
Status: Active
Attachments: No files
ProRealCode ProRealCode
Loading...