CODICE PER ESCLUDERE SINGOLARMENTE LE CANDELE

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #39243 quote
    iceman89iceman89
    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
    NicolasNicolas
    Keymaster
    Legend

    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
    iceman89iceman89
    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
    NicolasNicolas
    Keymaster
    Legend

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

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 NicolasNicolas
9 years, 3 months ago.

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