Australian (ASX) Stock Market Forum

Amibroker Systems using ASX & US data - confused about 1 day difference

Joined
28 April 2020
Posts
65
Reaction score
100
Hi all

Im playing around with Amibroker systems trading ASX stocks but the system also references $SPX (S and P 500 index).

My system gets the signals and then buys on open the next day.

Can someone verify for my very confused brain, that i would need to run the scan or explorations looking for signals for my system every morning once i have the U.S. data (for $SPX), otherwise the system will be referencing YESTERDAYS value for $SPX??

Second add on question is that provided i run the scan or explorations looking for signals for my system in the morning, once i have the 'overnight' $SPX data,then in the Amibroker AFL code for the system i do NOT need to reference ref(z,-1) where z=Foreign( "$SPX", "C" );

Many thanks!

Cheers
Marty
 
Joined
8 June 2008
Posts
7,604
Reaction score
8,308
Hi all

Im playing around with Amibroker systems trading ASX stocks but the system also references $SPX (S and P 500 index).

My system gets the signals and then buys on open the next day.

Can someone verify for my very confused brain, that i would need to run the scan or explorations looking for signals for my system every morning once i have the U.S. data (for $SPX), otherwise the system will be referencing YESTERDAYS value for $SPX??

Second add on question is that provided i run the scan or explorations looking for signals for my system in the morning, once i have the 'overnight' $SPX data,then in the Amibroker AFL code for the system i do NOT need to reference ref(z,-1) where z=Foreign( "$SPX", "C" );

Many thanks!

Cheers
Marty
That is my inderstanding and what o trade on my faily, be aware that you need to wait past 8am qld time to have all market closed andcso the full os and things like vix etc updated.i wait till 8:30 Brisbane time to upfate data then run my daily system and enter pre open orders
 
Joined
8 June 2008
Posts
7,604
Reaction score
8,308
makes sense, thanks qldfrog, good to get someone elses opinion

cheers
My apologies for the typos what i type on the phone is a far cry from what is posted and unless i reedit a post, there is a fair work in unscrambling my posts
 
Joined
11 November 2013
Posts
56
Reaction score
61
Second add on question is that provided i run the scan or explorations looking for signals for my system in the morning, once i have the 'overnight' $SPX data,then in the Amibroker AFL code for the system i do NOT need to reference ref(z,-1) where z=Foreign( "$SPX", "C" );

You probably don't need the ref( z, -1) because by default the Foreign function populates missing OHLC fields with the previous bar Close and the volume is set to zero.

In the mornings after our $SPX data has updated both it and your ASX data will be from yesterday. Later in the day if you have new ASX data the $SPX OHLC data will be populated with yesterdays Close.
 
Top