set up di durata definita

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #191147 quote
    Gabriele Battista
    Participant
    Senior

    Vorrei scrivere un trading system in cui la condizione di set up resti valida solo per le n candele successive (es 3). e’ possibile, grazie

    #191153 quote
    robertogozzi
    Moderator
    Master

    Basta che usi SUMMATION che verifichi che cia siano, almeno una volta, le condizioni nelle ultime 3 candele:

    IF summation[3](MieCondizioni) THEN
     .
     .
    ENDIF
    #191162 quote
    Gabriele Battista
    Participant
    Senior
    IF ABS(CLOSE[1]-OPEN[1])>30 THEN //corpo
    el=high[1]
    es=low[1]
    rangesltp=el-es
    ENDIF

    la condizione da rispettare è che il corpo della candela deve essere maggiore di 30 punti, si entra in break out del massimo o del minimo solo per 3 candele, non ho capito come usare il summation. grazie

    #191184 quote
    robertogozzi
    Moderator
    Master

    Devi sostituire la parola MieCondizioni con le tue reali condizioni, in questo caso metterai, tra le parentesi di SUMMATION:

    ABS(CLOSE[1]-OPEN[1])>30

    quindi verrà:

    IF summation[3](ABS(CLOSE[1]-OPEN[1])>30) THEN
       BUY 1 Contract at Market //oppure SELLSHORT 
    ENDIF

    Queste righe andranno messe DOPO le tue che hai postato.

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

set up di durata definita


ProOrder: Trading Automatico & Backtesting

New Reply
Summary

This topic contains 3 replies,
has 2 voices, and was last updated by robertogozzi
3 years, 10 months ago.

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