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

Re: [amibroker] help with code



PureBytes Links

Trading Reference Links

Hi tomasz;

Thank you, Got it working , I see what you mean, The value does not hold
when you choose another chart, the input box appears again, and again,
even when you try to delete a chart pane the Input box appears.

Is there a way to make the value hold while switching charts, or is this
useless at this time.

If anyone is interested in using an INPUT BOX , here is a sample code of
using the input box with a moving average of the close.

EnableScript("vbscript");
<%
Dim Input
Input = InputBox("Enter a number" )
AFL("pds")= CInt( Input )
%>

Graph0=C;
Graph0Style=128;
MA1=EMA(C,pds);
Graph1=MA1;

Thanks again,

Anthony

Tomasz Janeczko wrote:

> Hi,
>
> Input gives you a string, while you need a number - use a CInt()
> function
> to convert:
>
> EnableScript("vbscript");
> <%
> Dim Input
> Input = InputBox("Enter a number" )
> AFL("pds")= CInt( Input )
> %>
>
> Best regards,
> Tomasz Janeczko
> ===============
> AmiBroker - the comprehensive share manager.
> http://www.amibroker.com
>
>
> ----- Original Message -----
> From: "Anthony Faragasso" <ajf1111@xxxx>
> To: <amibroker@xxxxxxxxxxxxxxx>
> Sent: Thursday, November 22, 2001 8:34 PM
> Subject: [amibroker] help with code
>
>
> > Tomasz;
> >
> > When I run this code I get ( bad arg.) Please help.
> >
> > EnableScript("vbscript");
> > <%
> > Dim Input
> > Input = InputBox("Enter a number" )
> > AFL("pds")=Input
> > %>
> >
> > MA1=MA(C,pds);
> > Graph0=MA1;
> >
> > Anthony
> >
> >
> >
> >
> >
> > Your use of Yahoo! Groups is subject to
> http://docs.yahoo.com/info/terms/
> >
> >
> >
>
>
> Yahoo! Groups Sponsor
[Image]

>
> Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.