Sistema Scalping Trend following 1m

Viewing 15 posts - 16 through 30 (of 31 total)
  • Author
    Posts
  • #135010 quote
    robertogozzi
    Moderator
    Master

    Ti da 15000 unità per default quando scegli X unità, ma niente t’impedisce di portarle a 100K andandoci sopra e modificando il valore.

    100K sono circa 13 mesi con TF a 1 minuto.

    #220900 quote
    RICOU
    Participant
    New

    Hello, I just made test with this strategy but there is only long position ?? i did something wrong ?

    Ciao, ho appena fatto dei test con questa strategia ma esiste solo la posizione long?? Ho fatto qualcosa di sbagliato ?

    #220914 quote
    RICOU
    Participant
    New

    and it’s not working  for DAX30, any idea?

    e non funziona per DAX30, qualche idea?

    #220961 quote
    robertogozzi
    Moderator
    Master

    @RICOU

    Pubblica solo nella lingua del forum in cui stai postando. Ad esempio solo l’inglese nei forum di lingua inglese e il francese solo nei forum di lingua francese.

    Grazie 🙂

    #220966 quote
    RICOU
    Participant
    New

    ok, scusami.

    Grazie

    #220971 quote
    RICOU
    Participant
    New

    Roberto,

    potresti fornire una risposta alle mie domande?

    #221033 quote
    robertogozzi
    Moderator
    Master

    Puoi rispiegarmi quello che vuoi sapere?

    #221038 quote
    RICOU
    Participant
    New
    Buongiorno, sto effettuando il backtest di questa strategia ma ci sono solo posizioni short assunte su US tech 100 e su DAX30 non funziona.
    hai una soluzione?
     
    #221039 quote
    RICOU
    Participant
    New

    Buongiorno,

    ho effecttuato dei backtest di questa stategia e le posizioni assunte sono solo short su us tech 100 e non funziona sue Dax30. Hi una  soluziona

    (scusa per il mio messaggio precedente)

    #221202 quote
    robertogozzi
    Moderator
    Master

    L’indicatore è creato per entrare solo LONG quando il primo parametro (ParDirezione) ha valore, mentre entra solo SHORT quando ha valore -1. Ho modificato l’indicatore in modo che accetti anche il valore 9, in questo modo può entrare sia LONG che SHORT:

    Candela=1
    if Open>Close then
    Candela=-1
    endif
    MMEP=EndPointAverage[48](close)
    if ParAsset=0 then
    //GENERIC
    ParSL=100
    ValContratti=1
    endif
    if ParAsset=1 then
    //USRUSSELL
    ParSL=100
    ValContratti=0.5
    endif
    if ParAsset=2 then
    //EURUSD
    ParSL=100
    ValContratti=2
    endif
    if ParAsset=3 then
    //DAX
    ParSL=200
    ValContratti=0.5
    endif
    if ParAsset=4 then
    //US500
    ParSL=100
    ValContratti=1
    endif
    StatoPosizione=0
    ValDirezione=ParDirezione  //1=Long, -1=Short
    ValSL=ParSL*pipsize
    if Minute=0 or Minute=5 or Minute=10 or Minute=15 or Minute=20 or Minute=25 or Minute=30 or Minute=35 or Minute=40 or Minute=45 or Minute=50 or Minute=55 then
    If ValDirezione=1 or ValDirezione=9 then //Lomg
    l1=Close[1] < MMEP[1] and Candela[1]=-1
    l2=Close[1] > Close[intradaybarindex+540]
    l3=time>100000 and time <143000 or time>163000 and time <193000
    l4=Close > Close[120]
    if PositionLong=0 and PositionShort=0 and l1 and l2  and l3 and l4 then
    PrezzoApertura=close[1]
    PrezzoStopLoss=close[1]-ValSL
    PrezzoTakeProfit=highest[2](high)
    if PrezzoTakeProfit > PrezzoApertura then
    if DayOfWeek=5 and time>150000 then
    else
    PositionLong=1
    StatoPosizione=2
    endif
    endif
    endif
    if PositionLong[1]=1 and Close<PrezzoStopLoss or PositionLong[1]=1 and Close>PrezzoTakeProfit   then
    if Close>PrezzoApertura then
    DRAWARROWUP(barindex,StatoPosizione-0.3)Coloured(0,255,0)
    else
    DRAWARROWUP(barindex,StatoPosizione-0.3)Coloured(255,0,0)
    endif
    PositionLong=0
    StatoPosizione=1
    endif
    endif
    If ValDirezione=-1 or ValDirezione=9 then //Short
    s1=Close[1] < MMEP[1] and Candela[1]=1
    s2=Close[1] < Close[intradaybarindex+540]
    s3=time>100000 and time <143000 or time>163000 and time <193000
    s4=Close < Close[120]
    if PositionShort=0  and PositionLong=0 and s1 and s2  and s3 and s4 then
    PrezzoApertura=close[1]
    PrezzoStopLoss=close[1]+ValSL
    PrezzoTakeProfit=lowest[2](low)
    if PrezzoTakeProfit < PrezzoApertura then
    if DayOfWeek=5 and time>150000 then
    else
    PositionShort=1
    StatoPosizione=-2
    endif
    endif
    endif
    if PositionShort[1]=1 and Close>PrezzoStopLoss or PositionShort[1]=1 and Close<PrezzoTakeProfit   then
    if Close<PrezzoApertura then
    DRAWARROWDOWN(barindex,StatoPosizione+0.3)Coloured(0,255,0)
    else
    DRAWARROWDOWN(barindex,StatoPosizione+0.3)Coloured(255,0,0)
    endif
    PositionShort=0
    StatoPosizione=-1
    endif
    endif
    endif
    Return StatoPosizione COLOURED(255,0,0) as "StatoPosizione",ValContratti as "ValContratti"

    ho modificato l’istruzione CALL in modo che il primo parametro sia 9:

    // Condizioni per entrare su posizioni long
    
    //GENERIC=0
    //USRUSSELL=1
    //EURUSD=2
    //DAX=3
    //US500=4
    StatoPosizione,ValContratti=call TrendScalping[9,3]  //[Direzione 1=LONG,-1=SHORT, 9=LONG/SHORT,Asset]
    
    
    IF NOT LongOnMarket AND StatoPosizione=2 THEN
    BUY ValContratti CONTRACTS AT MARKET
    ENDIF
    
    // Condizioni per uscire da posizioni long
    If LongOnMarket AND StatoPosizione=1 THEN
    SELL AT MARKET
    ENDIF
    
    // Condizioni per entrare su posizioni short
    IF NOT ShortOnMarket AND StatoPosizione=-2 THEN
    SELLSHORT ValContratti CONTRACTS AT MARKET
    ENDIF
    
    // Condizioni per uscire da posizioni short
    IF ShortOnMarket AND StatoPosizione=-1 THEN
    EXITSHORT AT MARKET
    ENDIF
    
    // Stop e target: Inserisci qui i tuoi stop di protezione e profit target

    a me funziona sul DAX.

    #221242 quote
    RICOU
    Participant
    New

    Buongiorno,

    grazie mille Roberto per la tua reattivita, lo provero domani.

    #221260 quote
    Ciccarelli Franco
    Participant
    Junior

    Ho provato l’indicatore e mi da errore “definire le variabili Parasset e Pardirezione”

    #221264 quote
    Ciccarelli Franco
    Participant
    Junior

    Ho messo le variabili e adesso l’indicatore sembra funzionare, ma il codice facendolo girare sul dax tf 1 minuto, non entra a mercato.

    Grazie

    #221286 quote
    robertogozzi
    Moderator
    Master

    Si, avevo postato il codice che era per sovrascriverlo nel file allegato inizialmente.

    Meglio se hai risolto, in ogni caso allego il file dell’indicatore con le variabili dichiarate.

    Ho provato sul DAX, 1 minuto, e funziona regolarmente.

    #221381 quote
    Ciccarelli Franco
    Participant
    Junior

    Grazie adesso va bene , lo provo su DAX e risultati migliori li da su TF 30 minuti, inoltre il numero di contratti mi fa 0,5 e non capisco il motivo.

Viewing 15 posts - 16 through 30 (of 31 total)
  • You must be logged in to reply to this topic.

Sistema Scalping Trend following 1m


Supporto ProOrder

New Reply
Author
author-avatar
cventurer @cventurer Participant
Summary

This topic contains 30 replies,
has 3 voices, and was last updated by RICOU
2 years, 2 months ago.

Topic Details
Forum: Supporto ProOrder
Language: Italian
Started: 06/06/2020
Status: Active
Attachments: 9 files
Logo Logo
Loading...