Getdata

I am trying to create a script that will indicate a positive ROC in the last month for the XAO. My attempt is below but it just seems to ignore the XAO part and indicate the ROC for whatever equity is on the page at the time. Can you please set me straight. Thanks.

ROC(Month(PERIODAMOUNT=1), GETDATA(CODE=XAO:ASX, CURRENCY=AUD), BARS=1) > 0

Hi,

When using a GETDATA() function and a Time Frame override it is best to set the time frame as part of the Get Data function rather than the ROC function.

The following script should work:

V1 = GETDATA(CODE=XAO:ASX, TIMEFRAME=1 Month);
ROC(V1, BARS=1) > 0

Example:

Ex1

You can see on the chart for BHP the Show Views show different results (as expected), where as the XAO chart they are the same.

 

Thanks Matthew!