Taglio su media mobile

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #227420 quote
    andrea trevisanandrea trevisan
    Participant
    Average

    Devo creare un filtro su taglio della candela su una media mobile,  in caso di taglio long almeno il 60% del range della candela deve essere sopra la media mobile, ovviamente contrario in caso di segnale short.

    Ho fatto alcuni tentativi ma non riesco a venirne a capo.

    #227436 quote
    robertogozzirobertogozzi
    Moderator
    Legend

    Ecco il codice:

    Sma = average[20,0](close)
    L1  = close CROSSES OVER  Sma
    S1  = close CROSSES UNDER Sma
    L2  = (high - (range * 0.6)) > Sma
    S2  = (low  + (range * 0.6)) < Sma
    CondizioneLong  = L1 AND L2
    CondizioneShort = S1 AND S2

    poi dovrai utilizzare le due diverse condizioni nel tuo indicatore, secondo quello che desideri fare.

    #227458 quote
    andrea trevisanandrea trevisan
    Participant
    Average

    Grazie 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

Taglio su media mobile


ProBuilder: Indicatori & Strumenti Personalizzati

New Reply
Author
Summary

This topic contains 2 replies,
has 2 voices, and was last updated by andrea trevisanandrea trevisan
2 years, 7 months ago.

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