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

Forums>StrategyQuant>General Discussion>Use 0 or 1 in custom blocks?

  • #268956 |
    Customer
    11 Posts

    I’m probably over thinking this however I can’t seem to find the answer.

    I’m coding some custom blocks for use in MT4/5,  0 is the bar being built and 1 is the bar just closed.

    It would seem, as I’m building blocks based on Tradestation code that 0 is the bar just closed.

    So when creating custom blocks which do I use?

    Close[0] or Close[1] for the bar just closed?

    #268987
    tomas262
    Administrator
    1822 Posts

    Hello,

    the current bar close can be referenced as Close[0] in EasyLanguage

    In MetaTrader 4/5 last closed bar is referenced as Close[1]

    #268991
    Customer
    11 Posts

    Hey Tomas,.
    I may not have been clear with my question.

    When coding a custom block l, if coded to MT4/5 parameters will SQX convert that code correctly to Tradestation code?

    Does the backtest engine selected in the settings of AlgoWizard account for the difference?

    Thanks

    • This reply was modified 5 months ago by OnTheEdge_.
    #268997
    Customer
    789 Posts

    very good questions…someone also telling that STOP or LIMIT orders cant be used that those platforms doesnt have BARS VALID function…is this true or not?

    You want to be a profitable algotrader? We started using StrateQuant software in early 2016. For now we have a very big knowhow for building EAs for every possible types of markets. We share this knowhow, apps, tools and also all final strategies with real traders. If you want to join us, fill in the FORM. 1500+ final SQX strategies for members running on demo accounts to verify the edge DEMO ACCS. We provide also strategies for indices - DAX, DOW JONES, NASDAQ, SP, UK, because we have realtick data from our brokers.

Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.