It works in INDICATOR.

Note however, when you run the formula in Automatic Analysis,
GetChartID() returns ZERO (since there is no chart attached to AA).

If you apply the same code in AA and want to refer to values
from indicators, you need to type actual ChartID from the indicator
you want to use.

Best regards,
Tomasz Janeczko
amibroker.com
----- Original Message ----- 
From: "imorf69" <[EMAIL PROTECTED]>
To: <amibroker@yahoogroups.com>
Sent: Tuesday, July 29, 2008 9:18 AM
Subject: [amibroker] Re: Help With Study ID.


> --- In amibroker@yahoogroups.com, "treatmentinprogress"
> <[EMAIL PROTECTED]> wrote:
>>
>> Your reading the old help file.
>> New(er) syntax includes the chartID
>> 
>> re = Study("RE", GetChartID() ); 
> 
> that getChartId function didn't work for me in 10.1 (?) when i was
> programming for it, even though the Help was as above, I still had to
> hard code an idnumber in to "seed" it. Could work now, but doubt it.
> 
>> --- In amibroker@yahoogroups.com, "Mohammed" <softnews2003@> 
>> wrote:
>> >
>> > Hi All,
>> > 
>> > I draw my trend lien over the chart and assigned study ID "RE" for 
>> it. 
>> > then I wrote this code: 
>> > 
>> > buy = cross( close ,study( "RE" )); 
>> > 
>> > with bar reply I do some scan to see the formula result when the 
>> price 
>> > cross the trend line, but I didn't get any result for the scan?
>> > 
>> > Any Suggestion Please.
>> > 
>> > Regards.
>> >
>>
> 
> 
> 
> ------------------------------------
> 
> 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 NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG:
> http://www.amibroker.com/devlog/
> 
> For other support material please check also:
> http://www.amibroker.com/support.html
> Yahoo! Groups Links
> 
> 
> 

Reply via email to