strategia del "giovedì"

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #122934 quote
    lowbatlowbat
    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
    robertogozzirobertogozzi
    Moderator
    Legend

    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
    robertogozzirobertogozzi
    Moderator
    Legend

    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
    lowbatlowbat
    Participant
    Senior

    é perfetto, grazie

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

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 lowbatlowbat
6 years, 6 months ago.

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