superamento del max del pattern ID HELP

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #38554 quote
    enzo_52
    Participant
    Senior

     

    ciao a tutti, c’è qualcuno che potrebbe aiutarmi,gentilmente, a codificare questa idea?

    se sono  LONG and time >= 020000 and time<= 040000 chiudi il trade se il prezzo è inferiore al minimo più basso del pattern ID  (high<high[1] and low>low[1]), se tra le 020000 and 040000 la condizione del pattern ID non si verifica  , si chiude la posizione alle 040000

    grazie in anticipo

    #38633 quote
    enzo_52
    Participant
    Senior

    ciao a tutti, c’è qualcuno che potrebbe aiutarmi,gentilmente, a codificare questa idea? se sono LONG and time >= 020000 and time<= 040000 chiudi il trade se il prezzo è inferiore al minimo più basso del pattern ID (high<high[1] and low>low[1]), se tra le 020000 and 040000 la condizione del pattern ID non si verifica , si chiude la posizione alle 040000

    grazie in anticipo

    Hi Nicolas, can you help me please?

     

    thanks

    #38645 quote
    Nicolas
    Keymaster
    Master

    Quindi, se capisco correttamente, si vuole chiudere il commercio tra 020000 e 040000 se si verifica un pattern “interno” e se il prezzo è inferiore al low [1] del pattern? Altrimenti chiudere la posizione al 0400000.

    #38649 quote
    enzo_52
    Participant
    Senior

    Si , se io sono LONG e i prezzi rompono la linea del “minimum” del pattern INside (in tutti i casi, vedi le foto)  il trade viene chiuso, se non si verifica questa condizione , io voglio chiudere il trade alle 040000

     

     

    grazie 1000 Nicolas

    #38657 quote
    Nicolas
    Keymaster
    Master

    Va bene, quindi si tratta di chiedere un ordine di chiusura alla parte inferiore della candela del pattern, in questo modo:

    pattern = high<high[1] and low>low[1]
    
    if pattern then //inside bar pattern detection
     exitlevel = low[1]
    endif
    
    if longonmarket then //set an exit order at the exitlevel
     sell at exitlevel stop
    endif
    #38664 quote
    enzo_52
    Participant
    Senior

    ok, ma se non si verifica la soluzione ? come dico che voglio uscire alle 040000?

     

    grazie Nicolas

    il tuo codice  mi fa uscire sia che il max è della prima candela che sia il max è sulla seconda candela, giusto?

    funzione nei 2 casi, come gli esempi delle 2 foto che ho allegato?

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

superamento del max del pattern ID HELP


ProOrder: Trading Automatico & Backtesting

New Reply
Author
author-avatar
enzo_52 @enzo_52 Participant
Summary

This topic contains 5 replies,
has 2 voices, and was last updated by enzo_52
8 years, 7 months ago.

Topic Details
Forum: ProOrder: Trading Automatico & Backtesting
Language: Italian
Started: 06/18/2017
Status: Active
Attachments: 2 files
Logo Logo
Loading...