TEST SU ESPANSIONE DI VOLATILITA’

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #213849 quote
    Hary Trading
    Participant
    New

    buonasera,

    grazie in anticipo a chi potrà aiutarmi

    Vorrei testare questa strategia<span class=”Apple-converted-space”> </span>

    Grafico H1

    La mia candela di osservazione(trigger) è quella che inizia alle ore 14:00 e termina alle ore 15:00<span class=”Apple-converted-space”> </span>

    Misuro il range di questa candela (esempio 100 punti )

    Se avviene un breakout dei massimi della candela trigger , vorrei entrare short al tocco del 100% della proiezione rialzista (usando un classico tool dei ritracciamenti di Fibonacci, in manuale entro short ovviamente al 200%), ed imposto un target pari al 150% (esempio usando sempre Fibonacci) , ed uno stop pari  all’ampiezza  della candela trigger<span class=”Apple-converted-space”> </span>

    Se avviene un breakout dei minimi<span class=”Apple-converted-space”>  </span>della candela trigger , vorrei entrare long<span class=”Apple-converted-space”>  </span>al tocco del 100% della proiezione ribassista<span class=”Apple-converted-space”>  </span>(usando un classico tool dei ritracciamenti di Fibonacci, in manuale entro long<span class=”Apple-converted-space”>  </span>ovviamente al 200%), ed imposto un target pari al 150% (esempio usando sempre Fibonacci) , ed uno stop pari all’ampiezza  della candela trigger<span class=”Apple-converted-space”> </span>

    Banale esempio per il long

    Valori candela trigger oraria dalle 14:00 alle 15:00

    Massimo 15000

    Minimo 14900

    Ampiezza 100 punti<span class=”Apple-converted-space”> </span>

    Se rompe i massimi, appena arriva a 15100, entro short con target 15050 e stop 15200

    Se rompe i minimi entro long a 14800, target 14850 e stop 14700

    Grazie ancora a chi vorrà aiutarmi

    HARY

    #213935 quote
    robertogozzi
    Moderator
    Master

    Eccolo:

    RangeTime   = 140000
    IF OpenTime = RangeTime THEN
       mioRange = range
       myH      = high
       myL      = low
       HH       = myH + mioRange
       LL       = myL - mioRange
       TPL      = HH  - (mioRange / 2)
       SLL      = HH  + mioRange
       TPS      = LL  + (mioRange / 2)
       SLS      = LL  - mioRange
       BreakHH  = 0
       BreakLL  = 0
    ENDIF
    IF OpenTime > RangeTime THEN
       IF close CROSSES OVER HH THEN
          BreakLL = 0
          BreakHH = 1
       ENDIF
       IF close CROSSES UNDER LL THEN
          BreakLL = 1
          BreakHH = 0
       ENDIF
    ENDIF
    IF BreakHH AND Not OnMarket THEN
       SELLSHORT 1 CONTRACT AT MARKET
       SET TARGET PRICE TPL
       SET STOP   PRICE SLL
       BreakLL = 0
       BreakHH = 0
    ENDIF
    IF BreakLL AND Not OnMarket THEN
       BUY 1 CONTRACT AT MARKET
       SET TARGET PRICE TPS
       SET STOP   PRICE SLS
       BreakLL = 0
       BreakHH = 0
    ENDIF
    GraphOnPrice myH coloured("Fuchsia")
    GraphOnPrice myL coloured("Fuchsia")
    GraphOnPrice HH  coloured("Gold")
    GraphOnPrice LL  coloured("Gold")

    le ultime 4 righe servono solo durante il backtest per verificare i valori dei prezzi del range e di trigger. Se non ti servono puoi toglierle o commentarle.

    #213942 quote
    Hary Trading
    Participant
    New

    Gentilissimo come sempre

    grazie signor Roberto

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

TEST SU ESPANSIONE DI VOLATILITA’


ProOrder: Trading Automatico & Backtesting

New Reply
Author
author-avatar
Hary Trading @adtrader Participant
Summary

This topic contains 2 replies,
has 2 voices, and was last updated by Hary Trading
2 years, 9 months ago.

Topic Details
Forum: ProOrder: Trading Automatico & Backtesting
Language: Italian
Started: 04/29/2023
Status: Active
Attachments: No files
Logo Logo
Loading...