TESTARE INEFFICIENZA DA SCADENZA TECNICA

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

    Buongiorno,

    prima di tutto grazie a chi vorrà aiutarmi

    Vorrei testare questa strategia:

    Il terzo venerdì’ del mese (quello delle scadenze tecniche, per intenderci) vorrei entrare alle ore 12:00 in direzione del prezzo di apertura della candela delle ore 11;45

    Esempio short: alle 0re 11:45 parte una candela che si chiude al rialzo; alle ore 12:00 entro short avendo come target il prezzo di apertura della candela delle ore 11:45

    Esempio long: alle ore 11:45 parte una candela che chiude al ribasso; alle ore 12:00 entro long avendo come target il prezzo di apertura della candela delle ore 11:45

    Lo stop vorrei settarlo 1:1, quindi se il delta da recuperare è di esempio 10 punti, lo stop sarà di 10 punti

    Mi piacerebbe però anche,  visto che i delta a volte sono piccoli, impostare  uno stop di 30 punti lasciando invariato il target…è possibile avere anche questo tipo di alternativa ?

    Grazie ancora,

    HARY

    #204459 quote
    robertogozzi
    Moderator
    Legend

    Eccolo:

    IF OpenTime = 114500 THEN
       IF close > open THEN            //Cndela RIALZISTA
          SELLSHORT 1 Contract at Market
          SET TARGET PRICE open
          SET STOP   LOSS  range //+ ((range < 30*PipSize) * (30*PipSize - range ))
       ELSIF close < open THEN         //Candela RIBASSISTA
          BUY 1 Contract at Market
          SET TARGET PRICE open
          SET STOP   LOSS  range //+ ((range < 30*PipSize) * (30*PipSize - range ))
       ENDIF
    ENDIF

    se vuoi imporre il minimo Stop Loss di 30 punti, togli le doppie barre dei commenti dalle righe 5 e 9.

    #204461 quote
    Hary Trading
    Participant
    New

    Un enorme grazie Roberto…..sempre gentilissimo

    #204462 quote
    Hary Trading
    Participant
    New

    Però uno cosa….vorrei che questo sistema lavori solo il terzo venerdì del mese, in occasione delle scadenze tecniche…quindi in pratica 1 trade al mese..

    E’ possibile impostare questo filtro?

     

    Grazie ancora

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

Stuck on this ProBuilder code?

Describe what this topic is trying to build, in plain English, and ProRealAI writes the ProRealTime™ indicator, screener or system for you.

Available in 7 languages
Try ProRealAI

TESTARE INEFFICIENZA DA SCADENZA TECNICA


ProOrder: Trading Automatico & Backtesting

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

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

Topic Details
Forum: ProOrder: Trading Automatico & Backtesting
Language: Italian
Started: 11/19/2022
Status: Active
Attachments: No files
Logo Logo
Loading...