BIAS TRADING SYSTEM

Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #183923 quote
    Wolf Trades
    Participant
    Average

    Hi, can someone show me a simple code to detect hourly bias? day of week bias? Monthly bias?

     

    Thank you

    #183931 quote
    robertogozzi
    Moderator
    Master

    You mean gaps?

    #183948 quote
    Nicolas
    Keymaster
    Master

    Do you if the market is ascending or descending? : Price or moving average difference between 2 periods.

    #184498 quote
    Wolf Trades
    Participant
    Average

    Hi Nicolas,

    no I would like to detect for example, if gold go long every friday in the mornig (for example from 08:00 to 13:00).

    I would like get a system that allow me to detect, with optimization, the best day or hour to go long  or short and the best day or hour to close positions.

    #184499 quote
    Wolf Trades
    Participant
    Average

    Hi Roberto,

    no I would like to detect for example, if gold go long every friday in the mornig (for example from 08:00 to 13:00).

    I would like get a system that allow me to detect, with optimization, the best day or hour to go long  or short and the best day or hour to close positions.

    Like This

    //////////////////// ******************** Elenco Festività Ricorrenti in cui non si opera ******************** ////////////////////
    Capodanno = OpenMonth = 1 and OpenDay = 1
    PrimoMaggio = OpenMonth = 5 and OpenDay = 1
    VIGILIA = OpenMonth = 12 and OpenDay = 24
    NATALE = OpenMonth = 12 and OpenDay = 25
    UltimoAnno = OpenMonth = 12 and OpenDay = 31
    /// ***Elenco Festività TEDESCHE - Aggiungere alle ricorrenti se si opera sul DAX *** ///
    //UNITATEDESCA = OpenMonth = 10 and OpenDay = 3
    /// *********************************************************************************///
    
    FesteNatalizie = (OpenMonth = 12 and (OpenDay = 23 or OpenDay = 24 or OpenDay = 25 or OpenDay = 26 or OpenDay = 27 or OpenDay = 28 or OpenDay = 29 or OpenDay = 30)) or (OpenMonth = 1 and (OpenDay = 2 or OpenDay = 3 or OpenDay = 4 or OpenDay = 5 or OpenDay = 6))
    FesteRicorrenti = Capodanno or PrimoMaggio or VIGILIA or NATALE or UltimoAnno or FesteNatalizie
    
    
    ////////// ********** Finestra Temporale in cui si opera ********** //////////
    Venerdi = OpenDayofWeek = 5
    Finestra= (currenttime >= Start and currenttime <= End) and not (Venerdi and CurrentTime >= 185900)
    //*************************************************************************//
    ////////// ********** Chiusura il Venerdì ********** //////////
    VenerdiChiusura = opendayofweek=5 and currenttime > 205900
    EndTime = currenttime >= End //variabile tra 00:00 e 24:00
    StartTime = currenttime >= Start //variabile tra 00:00 e 24:00
    Size = 1
    /// ******************************************************* ///
    //
    ////////// ********** CONDIZIONI PER ENTRARE CON POSIZIONI LONG ********** //////////
    IF not FesteRicorrenti and Finestra and CurrentHour >= StartTime THEN
    BUY size contract AT Market
    SET STOP   pLOSS   STOPLong 
    SET TARGET PPROFIT TAKELong
    ENDIF
    //
    ////////// ********** CONDIZIONI PER USCIRE DA POSIZIONI LONG ********** //////////
    IF LongOnMarket and  VenerdiChiusura or EndTime Then
    Sell size contract at market
    endif
    #184501 quote
    nonetheless
    Participant
    Master

    You might want to take a look at this:

    Pathfinder swing TS

    #184502 quote
    Wolf Trades
    Participant
    Average

    I just see but I can’t see the code of this system. Can you help me?

    #184506 quote
    robertogozzi
    Moderator
    Master

    Add the desired variables to the optimizer panel, then select which one is fixed and which one has to be optimized. Is that what you mean?

    If you mean machine learning, instead, well… you can find some topics in this forum, but it’s not and easy task and it will take plenty of time! (I have never tried to code it, due to lack of time).

    #184507 quote
    nonetheless
    Participant
    Master

    can’t see the code of this system

    follow the link then click View All Attachments at the top, you’ll find all the ITFs

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

BIAS TRADING SYSTEM


ProOrder: Automated Strategies & Backtesting

New Reply
Author
author-avatar
Wolf Trades @lupo32 Participant
Summary

This topic contains 8 replies,
has 4 voices, and was last updated by nonetheless
4 years, 1 month ago.

Topic Details
Forum: ProOrder: Automated Strategies & Backtesting
Language: English
Started: 12/28/2021
Status: Active
Attachments: No files
Logo Logo
Loading...