Trading system Bullish engulfing+Strend (Help)

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #112500 quote
    angelho
    Participant
    New

    ciao (Roberto/Nicolas)

    allego qui file itf dove ho scritto il codicie di PRT per tradare in automatico (ProOrder) forex/indici con Bullish engulfing gestendo la posizione con il SuperTrend.

    Tale codice non funziona (non scatta mai) anche se lo stesso codice scritto per lo screnner, fornisce alcune indicazioni.

    Mi potete controllare/dire cosa non va in questo codice.

    grazie

    saluti

    TS-Bullish-engulfing.itf
    #112516 quote
    robertogozzi
    Moderator
    Master

    E’ quasi impossibile che la condizio0ne C9 sia soddisfatta.

    Cosa vuoi che faccia il tuo TS?

    REM Trading system Bullish engulfing con STREND x la gestione della posizione
    //DEFPARAM NoCashUpdate = True
    DEFPARAM CumulateOrders = False
    //Def.variabili
    x=3  //from 1 to 10 in steps of 1
    y=10 //from 8 to 22 in step of 1
    Z=15 //from 10 to 31 in step of 1
    //DEF.PARAMETRI PER BULLISH ENGULFING
    BODY=ABS(CLOSE-OPEN)
    MYSUPPORT=LOWEST[Z]
    //DEF.CONDIZIONI
    C1=BODY[1] < BODY
    C2=CLOSE > OPEN[1]
    C3=OPEN < OPEN[1]
    C4=CLOSE[1] < OPEN[1]
    C5=CLOSE > OPEN
    C6=CLOSE[1] > OPEN
    C7=LOW < LOW[1]
    C8=HIGH > HIGH[1]
    C9=CLOSE CROSSES OVER MYSUPPORT
    //CONDIZIONE PER ENTRARE A MERCATO
    IF C1 AND C2 AND C3 AND C4 AND C5 AND C6 AND C7 AND C8 AND c9 THEN
       BUY 1 SHARES AT MARKET
    ENDIF
    //GESTIONE POSIZIONE
    Myindicator=Supertrend[x,y]
    //CONDIZIONE PER USCIRE DALLA POSIZIONE
    IF LOW CROSSES UNDER Myindicator THEN
       SELL AT MARKET
    ENDIF

    se la linea 20 la scrivi così, qualche operazione la fa, altrimenti la vedo difficile in quanto tu chiedi il CLOSE più basso e quello attuale o è il più basso, oppure dovrebbe incrociarlo al rialzo partendo da un punto biù basso:

    C9=CLOSE > MYSUPPORT

    hai provato a verificarla nel trading manuale? perché l’hai scritta con CROSSES OVER ?

    #112575 quote
    angelho
    Participant
    New

    ciao Roberto

    Mi interessa che il Trading system faccia la scansione dei varii bullish engulfing e di questi entri a mercato solo in quelli che, nel formare il pattern, abbiano violato, con una falsa rottura, il supporto (lowest).

    ciao

    PS lascio in allegato un immagine per esprimere con la stessa la mia idea

    Immagine.png Immagine.png
    #112594 quote
    robertogozzi
    Moderator
    Master

    Cambia la riga 20 (condizione C9), scrivendola così:

    C9=LOW < MYSUPPORT AND CLOSE >= MYSUPPORT
    angelho thanked this post
    #112637 quote
    angelho
    Participant
    New

    ok, grazie Roberto

    ciao

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

Trading system Bullish engulfing+Strend (Help)


ProOrder: Trading Automatico & Backtesting

New Reply
Author
author-avatar
angelho @angelho Participant
Summary

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

Topic Details
Forum: ProOrder: Trading Automatico & Backtesting
Language: Italian
Started: 11/10/2019
Status: Active
Attachments: 2 files
Logo Logo
Loading...