Aiuto modifica codice indicatore cross over

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #222557 quote
    Msport71
    Participant
    Senior

    Buonasera,

    vorrei modificare il seguente codice (che evidenzia con una striscia verticale quando si verifica un crossover tra le EMA a 14 e 50 periodi), mettendo

    al loro posto due indicatori supertrend , il primo con setting (2,10) e il secondo con setting (4,10).

    Grazie e mille come sempre.

    ema14 =ExponentialAverage[14](close)
    ema50=ExponentialAverage[50](close)

    if ema14 crosses over ema50 then
    BACKGROUNDCOLOR(154,205,50)
    endif

    if ema50 crosses over ema14 then
    BACKGROUNDCOLOR(255,127,80)
    endif

    return ema14, ema50

    #222558 quote
    robertogozzi
    Moderator
    Legend

    Eccolo:

    st210 = Supertrend[2,10]
    st410 = Supertrend[4,10]
    
    if st210 crosses over st410 then
       BACKGROUNDCOLOR(154,205,50)
    endif
    
    if st410 crosses over st210 then
       BACKGROUNDCOLOR(255,127,80)
    endif
    
    return st210, st410
    Msport71 thanked this post
    #222568 quote
    Msport71
    Participant
    Senior

    Grazie e mille!

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

Aiuto modifica codice indicatore cross over


ProBuilder: Indicatori & Strumenti Personalizzati

New Reply
Author
author-avatar
Msport71 @carlo-pasca Participant
Summary

This topic contains 2 replies,
has 2 voices, and was last updated by Msport71
2 years, 11 months ago.

Topic Details
Forum: ProBuilder: Indicatori & Strumenti Personalizzati
Language: Italian
Started: 10/17/2023
Status: Active
Attachments: No files
Logo Logo
Loading...