Prime candele supertrend

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

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

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@xPepx71@
4 years, 6 months ago.

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