Incrocio medie nelle candele precedenti

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

    Buongiorno, come posso scrivere un codice che verifichi se c’è stato un incrocio di medie mobili per esempio nelle 10 candele precedenti?

    Grazie mille.

    #152575 quote
    robertogozzi
    Moderator
    Master

    Eccolo, N conterrà il numero di incroci rialzisti che ci sono stati nelle ultime 10 candele, compresa quella corrente, dalla candela 0 alla 9:

    n = summation[10](average[5] crosses over average[20])

    per sapere quanti ce n’erano in quella precedente, tra la 1 e la 10, basta fare riferimento ad N[1] e così via…

    #152576 quote
    danistuta
    Participant
    Senior

    Ottimo! Grazie mille!

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

Incrocio medie nelle candele precedenti


ProOrder: Trading Automatico & Backtesting

New Reply
Author
author-avatar
danistuta @danistuta Participant
Summary

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

Topic Details
Forum: ProOrder: Trading Automatico & Backtesting
Language: Italian
Started: 12/04/2020
Status: Active
Attachments: No files
Logo Logo
Loading...