CODICE PER ESCLUDERE SINGOLARMENTE LE CANDELE

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #39243 quote
    iceman89
    Participant
    Average

    CHI PUO’ SCIVERE UNA RIGA DI CODICE PER ESCLUDERE SINGOLARMENTE LE CANDELE AL QUALE NON SI DEVONO APRIRE POSIZIONI DI NESSUN TIPO ESEMPIO: ” LE DOJI”E DOVE METTERLE NEI PARAMETRI.

    #39267 quote
    Nicolas
    Keymaster
    Master

    Per favore non scrivere tutto in maiuscolo!
    Se si desidera evitare i mestieri sul candelabro di Doji, è necessario prima definire che cosa è un Doji e quindi non consentire di aprire un nuovo commercio quando questo modello viene trovato, esempio di seguito:

    //Doji definition 
    DojiSize = 0.05
    doji=(abs(open - close) <= (high - low) * DojiSize)
    
    //Open new BUY order example 
    if buycondition and NOT doji then 
     BUY 1 CONTRACT AT MARKET 
    endif 
    
    #39274 quote
    iceman89
    Participant
    Average

    Grazie mille Nicolas vale per ogni tipo di doji che si incontra anche per le candele doji  heikin ashi stessa cosa o è diverso?… poi più tardi posto il codice completo per tutti..alla fine di tutto il codice per far girare il codice in modo ciclico su ogni barra che si presenta cosa devo mettere come Codice?

    #39288 quote
    Nicolas
    Keymaster
    Master

    Il modello del codice doji non è naturalmente lo stesso per candelabri heikin ashi. Dovrete usare questo invece:

     

    // --- parameters
    DojiSize = 5 //x% percent of body size compared to the complete range of the candlestick
    // ---
     
    if barindex>1 then
     haclose=(open+close+low+high)/4
     haopen=(haopen[1]+haclose[1])/2
     xHigh = Max(haOpen, haClose)
     xLow = Min(haOpen, haClose)
     hahigh = Max(High,xHigh)
     halow = Min(Low,xLow)
    endif
     
    doji=(abs(haopen - haclose) <= (hahigh - halow) * DojiSize/100)

     

    È possibile inserire il codice all’inizio del programma.

    E per favore, non scrivere il tuo messaggio in forti formati, questo non è affatto necessario!

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

CODICE PER ESCLUDERE SINGOLARMENTE LE CANDELE


ProOrder: Trading Automatico & Backtesting

New Reply
Author
author-avatar
iceman89 @iceman89 Participant
Summary

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

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