OK. I think I know what have caused your problem. Your current symbol doesn't have enough data.
Add this line to the Support() and Resistance() functions just before the loop to avoid the error.
 p = min(p,BarCount); // avoid display error
 for(i=1;i<p;i++)...
----- Original Message -----
From: osgem_2006
Sent: Sunday, October 08, 2006 5:56 AM
Subject: [amibroker] Re: Ed Seykota's TSP: Support and Resistance

Dear Mark ,
Thanks for sharing the code. When I try to plot graph I get the
following error

res[0] = High[0];

for (i = 1; i < p; i++)

{

if(High[i]
-----------^

Error 10.
Subscript out of range.
You must not access array elements outside 0..(BarCount-1) range.

Please help me in correct the error.

Thanks

Osgem

--- In [EMAIL PROTECTED]ps.com, "Mark H" <[EMAIL PROTECTED]..> wrote:
>
> To those who are interested,
>
> I have posted the code to AFL online library:
> http://www.amibroker.com/library/detail.php?id=735
>
> See here for more information regarding Seykota's project:
> http://www.seykota.com/tribe/TSP/index.htm
>
> The coding was more complex than I expected since Amibroker
doesn't support Trade At Stop functions (such as BuyAtStop,
SellAtStop etc).
> Many other TA software such as Trading Recipes, Metastock, Wealth-
lab support it natively. On the other hand, Amibroker is very
powerful to simulate mostly anything, though that ends up with
complicated code.
>
> Happy Trading,
>
> - Mark H.
>

__._,_.___

Please note that this group is for discussion between users only.

To get support from AmiBroker please send an e-mail directly to
SUPPORT {at} amibroker.com

For other support material please check also:
http://www.amibroker.com/support.html






SPONSORED LINKS
Software support Small business finance Business finance online
Business finance training Business finance course

Your email settings: Individual Email|Traditional
Change settings via the Web (Yahoo! ID required)
Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured
Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe

__,_._,___

Reply via email to