Entrata ed uscita con media mobile

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #106729 quote
    Truld1
    Participant
    Junior

    Buon giorno a tutti,

    Perdonatemi se posto un quesito molto semplice, ma ho qualche dubbio.

    Potete chiarirmi come impostare un back test che acquista quando il prezzo supera al rialzo la media mobile 10 (giornaliero) e vende quando il prezzo scende sotto la medesima media. Senza stop o posizioni short.

    Grazie a tutti.

    #106731 quote
    robertogozzi
    Moderator
    Master

    Ho spostato il topic nel supporto ProOrder perché si tratta di una strategia automatizzata, non di un argomento genrico della piattaforma. Cerca di usare il forum appropriato per agevolare le ricerche. Grazie.

    Eccolo:

    Media = average[10,0](close)
    IF close CROSSES OVER Media AND Not OnMarket THEN
       BUY 1 CONTRACT AT MARKET
    ENDIF
    IF close CROSSES UNDER Media AND LongOnMarket THEN
       SELL 1 CONTRACT AT MARKET
    ENDIF

    Ho anche cambiato l’oggetto rendendolo più attinente e specifico, era troppo generico.

    #106740 quote
    Truld1
    Participant
    Junior

    Perdonami se ho sbagliato la location della mia richiesta, non sono molto pratico del forum. Spero di non sbagliare più.

    Grazie mille per le info.

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

Entrata ed uscita con media mobile


ProOrder: Trading Automatico & Backtesting

New Reply
Author
author-avatar
Truld1 @truld1 Participant
Summary

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

Topic Details
Forum: ProOrder: Trading Automatico & Backtesting
Language: Italian
Started: 09/06/2019
Status: Active
Attachments: No files
Logo Logo
Loading...