integrazione codice di trading

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #180066 quote
    Ciccarelli Franco
    Participant
    Junior

    In un mio codice che usa due medie mobile, vorrei mettere un comando per la differenza dei due. Come posso scriverlo?

    #180112 quote
    robertogozzi
    Moderator
    Master

    Eccolo:

    Ema10 = average[10,1](close)
    Ema50 = average[50,1](close)
    Diff  = Ema10 - Ema50       //differenza

    se DIFF è positiva significa che la media veloce è sopra a quella lenta, se negativa è l’opposto.

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

integrazione codice di trading


ProOrder: Trading Automatico & Backtesting

New Reply
Summary

This topic contains 1 reply,
has 2 voices, and was last updated by robertogozzi
4 years, 3 months ago.

Topic Details
Forum: ProOrder: Trading Automatico & Backtesting
Language: Italian
Started: 10/21/2021
Status: Active
Attachments: No files
Logo Logo
Loading...