Not logged in
Viewing 8 posts - 1 through 8 (of 8 total)

Forums>StrategyQuant>Pre-Sales Questions>On new open bar support?

  • #259770 | Reply
    Participant
    86 Posts

    Can sq generate strategies based on new open bar only?

    Good for long term strategies daily or h4

    To backtest on metatrader 4

    Or it is only for ticks?

    • This topic was modified 11 months, 1 week ago by gin.
    #259773 Reply
    tomas262
    Administrator
    1821 Posts

    Hello,

    signals are normally evaluated on bar close / open. Do you mean you want to test strategy to match the MT4s “Control point” precision?

    #259781 Reply
    Participant
    86 Posts

    I want to test mt4 open bars only

    #259782 Reply
    Participant
    86 Posts

    Sq strategies are not compatible with ea mt4 open bars only?

     

    #259820 Reply
    tomas262
    Administrator
    1821 Posts

    Oh yes they are. If you have specific example you would like to discuss please share …

    #259924 Reply
    Participant
    86 Posts

    why do I have completely different results in MT4 backtest when doing ticks or open bar only?

    Does not SQ strategy check for

    bool NewBar()
    {
    static datetime lastbar;
    datetime curbar = Time[0];
    if(lastbar!=curbar)
    {
    lastbar=curbar;
    return (true);
    }
    else
    {
    return(false);
    }
    }

    or similar?

     

    or is there another sub code in SQ MT4 that works on any event including ticks which messes up everything?

     

     

    #260349 Reply
    Customer
    109 Posts

    Wondering about this too.

    Would be good to know before I buy.

    #260472 Reply
    tomas262
    Administrator
    1821 Posts

    Yes, SQ always checks for a new bar. If you have differences in MT4 between ‘every tick’ and ‘open bar only’ it can be caused due to multiple reasons. Very hard to say without having a specific strategy code

Viewing 8 posts - 1 through 8 (of 8 total)
Reply To: On new open bar support?

You can use BBCodes to format your content.
Your account can't use Advanced BBCodes, they will be stripped before saving.

Your information: