To get result from analysis window you need to include the chartid, or
else it does not know where to look for the informaiton

-- 
Cheers
Graham Kav
AFL Writing Service
http://www.aflwriting.com



2008/7/29 imorf69 <[EMAIL PROTECTED]>:
> --- In amibroker@yahoogroups.com, "Mohammed" <[EMAIL PROTECTED]> 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.
>
> I had same problem. It doesn't appear to work as it should (ie what is
> stated in the Help  documentation is not strictly correct).
>
> For some reason to get it to work you have to hard code an actual
> study ID number (which makes no sense considering it should be a
> wildcard parameter), but it will still scan all the rest if selected
> as All symbols in the Analysis window.
>
> here is a sample of my code that works:
>
> Buy =  Cross( Close, Study("RE", ChartId=5) );
>
> Not sure if that will work or not if the ChartId number you chose does
> not contain an study lines, so pick one that does.
>
>
> ------------------------------------
>
> 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