strategia del "giovedì"

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #122934 quote
    lowbat
    Participant
    Senior

    buonasera a tutti,

    sarebbe possibile creare una strategia che, su un determinato strumento, va in short al giovedì all’apertura e chiude la posizione sempre alla sera del giovedì?

     

    grazie a tutti

    #122945 quote
    robertogozzi
    Moderator
    Master

    Certo, deve basarsi, come setup, sulla candela del Mercoledì ed uscire alla chiusura della candela in cui apre.

    Ecco un esempio per le candele giornaliere:

    Defparam CumulateOrders = false
    If OnMarket then
       Sell at market
       Exitshort at market
    Endif
    Ema20 = average[20,1](close)
    If DayOfWeek = 4 then
       If Close crosses over Ema20 then
          Buy 1 contract at market
       ElsIf Close crosses under Ema20 then
          Sellshort 1 contract at market
       Endif
    Endif

    (non l’ho provato).

    #122947 quote
    robertogozzi
    Moderator
    Master

    Ho fatto un esempio dove c’è sia Long che Short, tu puoi metterne un solo tipo.

    Le righe 2-5 non cambiano comunque.

    #122948 quote
    lowbat
    Participant
    Senior

    é perfetto, grazie

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

strategia del "giovedì"


ProOrder: Trading Automatico & Backtesting

New Reply
Author
author-avatar
lowbat @lowbat Participant
Summary

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

Topic Details
Forum: ProOrder: Trading Automatico & Backtesting
Language: Italian
Started: 03/22/2020
Status: Active
Attachments: No files
Logo Logo
Loading...