Impulso con ATR

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #123328 quote
    StenozarStenozar
    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
    robertogozzirobertogozzi
    Moderator
    Legend

    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
    StenozarStenozar
    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.
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

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 StenozarStenozar
6 years, 5 months ago.

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