[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[amibroker] Subscript Out of Range


  • Date: Thu, 25 Feb 2010 13:02:57 -0000
  • From: "sohamdas" <sohamdas@xxxxxxxxxxx>
  • Subject: [amibroker] Subscript Out of Range

PureBytes Links

Trading Reference Links

Dear Members, 

Though, I understand this is a fairly noob type question, when you first read the error message, but trust me, it has racked my brains enough and more. 

Okay so the details of the problem:

The Code Snippet:
----------------------------------------------------------------
smooth = (4*array + 3*Ref(array, -1) + 2*Ref(array, -2) + Ref(array, -3))/10;

  for(i = 0; i < 6; i++) 
  {
     InstPeriod[i] = 0; // Initialize early values and as array
     DeltaPhase[i] = 0;
     cycle[i]=0;
     Period[i]=0;
  }
----------------------------------------------------------------
The problem I am facing is, out of a particular universe of stocks, which has say 100 assets, around 95 or even 96 of them, is being scanned properly by this exploration. i.e No error while Scanning.

But the problem arises while scanning, those handful stocks which are left out; I dont know the reason why.

Is it because of insufficient quotes? i.e Less than 7 quotes? 
No, that is the first thing which came into my mind and that is not the problem. Why? Surely the price series is illiquid, with erratic jumps and such, but it surely has around 700+ quotes for the same. So no question of improper indexing of OHLC when there are only so many quotes left.


Would like some help, here

Soham




------------------------------------

**** IMPORTANT PLEASE READ ****
This group is for the discussion between users only.
This is *NOT* technical support channel.

TO GET TECHNICAL SUPPORT send an e-mail directly to 
SUPPORT {at} amibroker.com

TO SUBMIT SUGGESTIONS please use FEEDBACK CENTER at
http://www.amibroker.com/feedback/
(submissions sent via other channels won't be considered)

For NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG:
http://www.amibroker.com/devlog/

Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/amibroker/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/amibroker/join
    (Yahoo! ID required)

<*> To change settings via email:
    amibroker-digest@xxxxxxxxxxxxxxx 
    amibroker-fullfeatured@xxxxxxxxxxxxxxx

<*> To unsubscribe from this group, send an email to:
    amibroker-unsubscribe@xxxxxxxxxxxxxxx

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/