IDNR4

Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #11133 quote
    miguel33
    Participant
    Senior

    Salve,

    volevo sapere se esiste una strategia di trading system che utilizza il patter IDNR4 .

    grazie.

    miguel

    #11179 quote
    Nicolas
    Keymaster
    Master

    Non trovo alcuna nella libreria ma è possibile trovare il codice del pattern IDNR4 qui:

    http://www.prorealcode.com/topic/idnr4/

    #11236 quote
    miguel33
    Participant
    Senior

    Si Nicolas il codice lo conoscevo ,

    cercavo  di scrivere una formula per automatizzare l’ordine con prt .

    Praticamente non riesco a scrivere un ordine contemporaneo che vada long al superamento del massimo rilevato da idnr4 e short al superamento del minimo con i relativi stop loss sul massimo per lo short e sul minimo del long.

    semplice no ? Ma non ci riesco. 🙁

    Grazie e chi mi aiuta.

    miguel

    #11238 quote
    Nicolas
    Keymaster
    Master

    Non ho ancora testato questo codice, ma penso che dovrebbe funzionare bene.

    ID = high<high[1] and low>low[1]
    rang = range
    NR4 = rang<range[1] and rang<range[2] and rang<range[3]
    
    if NR4 then 
     test = 1
     hh = highest[4](high)
     ll = lowest[4](low)
    endif
    
    if test = 1 then 
     BUY 1 SHARE AT hh STOP
     SELL 1 SHARE AT ll STOP
    endif
    
    if longonmarket then 
     SELL AT ll STOP
     test = 0
    elsif shortonmarket then 
     EXITSHORT AT hh STOP
     test = 0
    endif
    
    #11241 quote
    miguel33
    Participant
    Senior

    Grazie Nicolas .

    ho provato subito il back test con prt 10.2 e mi da questo errore di sintassi :utilizza la variabile id

    #11270 quote
    Nicolas
    Keymaster
    Master

    Change the line 5 with :

    if ID and NR4 then 
    #11323 quote
    miguel33
    Participant
    Senior

    Grazie , gentilissimo come sempre.

    #54031 quote
    gackeen
    Participant
    New

    Salve. Ho trovato questa strategia e mi pare interessante. L’avete mica testata in reale o demo? Miglioramenti?

    #54033 quote
    gackeen
    Participant
    New

    Sul DAX 1h si comporta abbastanza bene 

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

IDNR4


ProOrder: Trading Automatico & Backtesting

New Reply
Author
author-avatar
miguel33 @miguel33 Participant
Summary

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

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