set up di durata definita

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #191147 quote
    Gabriele BattistaGabriele 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
    robertogozzirobertogozzi
    Moderator
    Legend

    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 BattistaGabriele 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
    robertogozzirobertogozzi
    Moderator
    Legend

    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.
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

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 robertogozzirobertogozzi
4 years, 5 months ago.

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