BULLISH ENGULFING + MORNING STAR + BEARISH ENGULFING + EVENING STAR

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #13442 quote
    Max
    Participant
    Average

    Qui di seguito una domanda inviata a ProRealTime :

    Le condizioni devono verificarsi insieme per essere veritiero il segnale.

    INGRESSO LONG:
    Si deve verificare una candela Bullish Engulfing insieme Morning Star, ingresso long 1 punto/pip + spred sopra il massimo della candela
    fine condizione long

    INGRESSO SHORT:
    Si deve verificare una candela Bearish Engulfing insieme Evining Star, ingresso short 1 punto/pip + spred sotto il minimo della candela
    fine condizione short

    Stop: Inserisci qui i tuoi stop di protezione
    Stop loss 1 punto/pip sotto il minimo della candela Bullish + Morning nella posizione long
    Stop loss 1 punto/pip sopra il massimo della candela Bearish + Evining nella posizione short

    Stop loss in pari il giorno successivo.

    Trailing stop:

    Attivare il trailing stop dopo i primi 30 pips di guadagno di 43 pips

    Target:
    rapporto rischio rendimento 1 a 1 tra ingresso e stop
    fine uscite long e short

    E un esempio di risposta :

    Prima di tutto bisogna definire lo spread per eseguire questo sistema.

    Spread=2
    
    bullc1=Low=Lowest[5](Low)
    bullc2=Close > Close[1]
    Bullish=bullc1 and bullc2
    
    Morningc1=Low > Low[1]
    Morningc2=Close > Open
    Morningc3=Low[1] < Low[2]
    Morningstar=Morningc1+Morningc2+Morningc3
    
    Bearc1=High=Highest[5](High)
    Bearc2=Close < Close[1]
    Bearish=Bearc1 and Bearc2
    
    Evic1=High < High[1]
    Evic2=Close < Open
    Evic3=High[1] > High[2]
    Eviningstar=Evic1 and Evic2 and Evic3
    
    if not onmarket then
    set stop ptrailing 0
    endif
    
    if not longonmarket and bullish and Morningstar then
    buy 1 share at high+((1+spread)*pointsize) stop
    mylongstop=low-1*pointsize
    sell at mylongstop stop
    endif
    
    if not shortonmarket and Bearish and Eviningstar then
    sellshort 1 share at low-((1+spread)*pointsize) stop
    myshortstop=low-1*pointsize
    exitshort at myshortstop stop
    endif
    
    if longonmarket then
    sell at mylongstop stop
    endif
    
    if shortonmarket then
    exitshort at myshortstop stop
    endif
    
    if (longonmarket and close-tradeprice >= 43*pointsize) or (shortonmarket and tradeprice-close >= 43*pointsize ) then
    set stop ptrailing 30
    endif
    #13460 quote
    CapitanNemo
    Participant
    Average

    Gent.mo MAX,

    ottima l’idea e ben fatto il codice. Complimenti.

    L’ho testato con Indici ed azioni e diversi timefreame e non fa una sola operazione vincente, perde alla grande.

    L’ho caricato così com’è. Dove sto sbagliando?

    Grazie.

    #13513 quote
    Tradesun
    Participant
    Senior

    Questo codice è stato creato per testarlo nel time frame giornaliero sul forex, ora riscontro anche io lo stesso problema, bisogna cambiare qualcosa nel codice che non va bene

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

BULLISH ENGULFING + MORNING STAR + BEARISH ENGULFING + EVENING STAR


ProBuilder: Indicatori & Strumenti Personalizzati

New Reply
Author
author-avatar
Max @max Participant
Summary

This topic contains 2 replies,
has 3 voices, and was last updated by Tradesun
9 years, 4 months ago.

Topic Details
Forum: ProBuilder: Indicatori & Strumenti Personalizzati
Language: Italian
Started: 09/21/2016
Status: Active
Attachments: No files
Logo Logo
Loading...