Reply

Use 0 or 1 in custom blocks?

3 replies

OnTheEdge_

Subscriber, bbp_participant, customer, community, sq-ultimate, 13 replies.

Visit profile

3 years ago #268956

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?

0

tomas262

Administrator, sq-ultimate, 2 replies.

Visit profile

3 years ago #268987

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]

0

OnTheEdge_

Subscriber, bbp_participant, customer, community, sq-ultimate, 13 replies.

Visit profile

3 years ago #268991

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

0

hankeys

Customer, bbp_participant, community, sq-ultimate, 487 replies.

Visit profile

3 years ago #268997

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 2014. 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.

0

Viewing 3 replies - 1 through 3 (of 3 total)