IDNR4

Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #11133 quote
    miguel33miguel33
    Participant
    Senior
    Salve, volevo sapere se esiste una strategia di trading system che utilizza il patter IDNR4 . grazie. miguel
    #11179 quote
    NicolasNicolas
    Keymaster
    Legend
    Non trovo alcuna nella libreria ma è possibile trovare il codice del pattern IDNR4 qui: http://www.prorealcode.com/topic/idnr4/
    #11236 quote
    miguel33miguel33
    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
    NicolasNicolas
    Keymaster
    Legend
    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
    miguel33miguel33
    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
    NicolasNicolas
    Keymaster
    Legend
    Change the line 5 with :
    if ID and NR4 then 
    #11323 quote
    miguel33miguel33
    Participant
    Senior
    Grazie , gentilissimo come sempre.
    #54031 quote
    gackeengackeen
    Participant
    New

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

    #54033 quote
    gackeengackeen
    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.
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

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 gackeengackeen
8 years, 10 months ago.

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