Impulso con ATR

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #123328 quote
    Stenozar
    Participant
    Master

    Buonasera,

    sarebbe possibile creare un’indicatore, che inserisca sul grafico del prezzo una freccia verde per i buy e rossa per i sell, rispettivamente quando il corpo della candela (da apertura a chiusura) è il doppio del valore dell’atr? si tratterebbe di un indicatore che riprende il concetto esposto qui: https://www.prorealcode.com/prorealtime-trading-strategies/simple-gets-eurusd-2h-atr-strength/

    Grazie,

    Stefano

    #123337 quote
    robertogozzi
    Moderator
    Master

    Certo, eccolo:

    x       = 10 * pipsize
    MyATR   = AverageTrueRange[14](close)
    Bullish = close > open
    Bearish = close < open
    Body    = abs(close - open) > (MyATR * 2)
    IF Body THEN
       IF Bullish THEN
          DRAWARROWUP(BarIndex,low - x) coloured(0,128,0,255)
       ELSIF Bearish THEN
          DRAWARROWDOWN(BarIndex,high + x) coloured(255,0,0,255)
       ENDIF
    ENDIF
    RETURN
    x-8.jpg x-8.jpg
    #123666 quote
    Stenozar
    Participant
    Master

    Grazie Roberto, molto gentile.

    A presto,

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

Impulso con ATR


ProBuilder: Indicatori & Strumenti Personalizzati

New Reply
Author
author-avatar
Stenozar @stenozar Participant
Summary

This topic contains 2 replies,
has 2 voices, and was last updated by Stenozar
5 years, 12 months ago.

Topic Details
Forum: ProBuilder: Indicatori & Strumenti Personalizzati
Language: Italian
Started: 03/26/2020
Status: Active
Attachments: 1 files
Logo Logo
Loading...