Strategia Morning Star e Evening Star

Viewing 11 posts - 1 through 11 (of 11 total)
  • Author
    Posts
  • #128079 quote
    Flo66
    Participant
    Junior

    Buonasera chi mi può aiutare a creare un codice per la strategia che indico nel post in allegato . Grazie

    Strategia-Morning-e-Evening-star.jpg Strategia-Morning-e-Evening-star.jpg
    #128119 quote
    robertogozzi
    Moderator
    Master

    Dai un titolo significativo al tuo argomento. Descrivi la tua domanda o l’oggetto nel titolo. Non utilizzare titoli privi di significato come “Aiuto per la codifica”.

    Grazie:)

    L’ho modificato io.

    #128130 quote
    Rag.
    Participant
    New

    Ok Grazie

    #128136 quote
    Rag.
    Participant
    New

    Ciao Roberto mi puoi indicare una strategia da fare sul Petrolio con autotrading. Grazie

    #128160 quote
    robertogozzi
    Moderator
    Master

    Eccola:

    DEFPARAM CumulateOrders = False
    ONCE Distanza    = 4 * pipsize
    ONCE StopLoss    = 6 * pipsize
    ONCE MorningStar = 0
    ONCE EveningStar = 0
    ONCE Tp          = 30 * pipsize
    IF OnMarket THEN
       EntryPrice    = 0
    ENDIF
    Bullish          = close > open
    Bearish          = close < open
    Body             = abs(open - close)
    LongCandle       = (range >= 40 * pipsize) AND (Body >= range * 0.50)
    ShortCandle      = (range <= 15 * pipsize) AND (Body <= range * 0.40)
    // Morning Star (http://www.traderpedia.it/wiki/index.php/Morning_Star)
    IF MorningStar = 0 THEN
       MorningStar     = Bearish[2] AND LongCandle[2] AND ShortCandle[1] AND Bullish AND LongCandle
       MorningStar     = MorningStar AND low >= low[2] AND high <= high[2]// AND low[1] = lowest[3](low)
       IF MorningStar THEN
          EveningStar = 0
          EntryPrice  = high + Distanza
          Sl          = (EntryPrice - low[1]) + StopLoss
       ENDIF
    ENDIF
    // Evening Star (http://www.traderpedia.it/wiki/index.php/Evening_Star)
    IF EveningStar = 0 THEN
       EveningStar     = Bullish[2] AND LongCandle[2] AND ShortCandle[1] AND Bearish AND LongCandle
       EveningStar     = EveningStar AND low >= low[2] AND high <= high[2]// AND high[1] = highest[3](high)
       IF EveningStar THEN
          MorningStar = 0
          EntryPrice  = low - Distanza
          Sl          = (high[1] - EntryPrice) + StopLoss
       ENDIF
    ENDIF
    //
    Ema15            = average[15,1](close)
    MorningStar      = MorningStar AND lowest[3](low) > Ema15
    EveningStar      = EveningStar AND highest[3](high) < Ema15
    //
    IF Not OnMarket THEN
       IF MorningStar THEN
          BUY 1 Contract AT EntryPrice STOP
       ELSIF EveningStar THEN
          SELLSHORT 1 Contract AT EntryPrice STOP
       ENDIF
    ENDIF
    //
    SET TARGET PROFIT Tp
    SET STOP   LOSS   Sl

    Io l’ho provata sul DAX e riesci ad effettuare operazioni sulo sul Daily e togliendo la media, oppure mettendola a 400 periodi.

    Ci sono due righe dove ho messo le //  dei commenti, altrimenti con quelle ulteriori condizioni non avrebbe trovato niente!

    Per quanto riguarda il pertrolio, cerca OIL nella casella di ricerca che si apre quando passi col mouse sopra il tuo avatar e ne troverai diverse.

    #128165 quote
    Flo66
    Participant
    Junior

    Ciao Roberto, mi sono espresso male , volevo sapere se mi puoi dare una strategia tua da effettuare sul Petrolio con time frame o 10 minuti o 1 ora, Ti ringrazio anticipatamente

    #128185 quote
    robertogozzi
    Moderator
    Master

    Non ne ho, le faccio solo sul DAX.

    #128204 quote
    Flo66
    Participant
    Junior

    Ciao roberto e una valida sul dax me la puoi dare?

    Grazie

    #128211 quote
    robertogozzi
    Moderator
    Master

    Chiedi il mio contatto all’admin tramite il modulo di  contatto.

    #128216 quote
    Flo66
    Participant
    Junior

    Dove lo trovo?

    #128232 quote
    robertogozzi
    Moderator
    Master
Viewing 11 posts - 1 through 11 (of 11 total)
  • You must be logged in to reply to this topic.

Strategia Morning Star e Evening Star


ProOrder: Trading Automatico & Backtesting

New Reply
Author
author-avatar
Flo66 @flo66 Participant
Summary

This topic contains 10 replies,
has 3 voices, and was last updated by robertogozzi
5 years, 9 months ago.

Topic Details
Forum: ProOrder: Trading Automatico & Backtesting
Language: Italian
Started: 04/25/2020
Status: Active
Attachments: 1 files
Logo Logo
Loading...