Incrocio medie nelle candele precedenti

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

    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
    danistutadanistuta
    Participant
    Senior

    Ottimo! 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

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 danistutadanistuta
5 years, 9 months ago.

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