Prime candele supertrend

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #190083 quote
    xPepx71@
    Participant
    New

    indicator3 = SuperTrend[2,10]
    c3 = (close CROSSES OVER indicator3)

     

    Questo è il codice per entrare  quando c’è l’incrocio al rialzo con il supertrend, più altre variabili. Riguarda però solo la prima candela.Cosa dovrei scrivere per verificare via via fino alla quinta candela dopo l’incrocio , se qualcuna di esse risponde alle variabili ?

    #190084 quote
    robertogozzi
    Moderator
    Master

    Devi usare SUMMATION che ti dia quante volte c’è stato un incrocio nelle ultime 6 candele (a te basta che ci sia stato una volta, che si omette):

    IF Summation[6](c3) and Var1 and Var2 and …
    #190301 quote
    xPepx71@
    Participant
    New

    Ho avuto un paio di giorni complicati e non m’ero collegato più. Ho appena visto che m’hai risposto subito e , come volevasi dimostrare, la soluzione è corretta. Tante tante grazie.

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

Prime candele supertrend


ProOrder: Trading Automatico & Backtesting

New Reply
Author
author-avatar
xPepx71@ @peppe71 Participant
Summary

This topic contains 2 replies,
has 2 voices, and was last updated by xPepx71@
3 years, 10 months ago.

Topic Details
Forum: ProOrder: Trading Automatico & Backtesting
Language: Italian
Started: 03/16/2022
Status: Active
Attachments: No files
Logo Logo
Loading...