Giorno nel trading system

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #231559 quote
    Aragorna
    Participant
    New

    Buongiorno a tutti, vorrei capire una cosa sui trading systems per IB. ad esempio quanto segue:

    DEFPARAM CumulateOrders=false

    TimeFrame(1 Hour, default)
    OrarioInizioGiorno = 020000
    OrariofineGiorno = 210000

    IF DayOfWeek=KK and NOT OnMarket and OpenTime=OrarioInizioGiorno THEN
    sellshort 1 contract AT MARKET
    ENDIF

    IF OnMarket and OpenTime=OrarioFineGiorno THEN
    exitshort AT MARKET
    ENDIF

     

    DayOfWeek=KK  con KK che va da 0 a 4. Perchè nel backtest lunedì è 0, ma quando vado live nel papertrading lunedì è 1?

    grazie

    Alessio

    #231564 quote
    Iván González
    Moderator
    New

    Ciao, puoi provare a utilizzare OpenDayOfWeek invece?

    #231582 quote
    Aragorna
    Participant
    New

    posso provare, a livello di backtest non cambia nulla vedo. non capisco però il perchè di questa differenza nel definire i giorni. lo Zero, che sappia io, è la domenica e invece il backtest me lo dà il lunedì.

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

Giorno nel trading system


Supporto ProOrder

New Reply
Author
author-avatar
Aragorna @aragorna Participant
Summary

This topic contains 2 replies,
has 2 voices, and was last updated by Aragorna
1 year, 9 months ago.

Topic Details
Forum: Supporto ProOrder
Language: Italian
Started: 04/15/2024
Status: Active
Attachments: No files
Logo Logo
Loading...