Hello,
Remove this code
completely. It is redundant and should not be used at
all.
As I wrote previously
the code executes for all OPEN and visible charts
automatically.
There is no need to put
any refresh statements.
But...
You don't have charts
open for other symbols that's why you don't get e-mails for
other symbols.
To get e-mails for
multiple symbols you can either:
OR
b) use automatic
analysis to scan many symbols periodically using "Run
Every" feature
OR
c) use loop inside the
formula and SetForeign function to iterate through
symbols
Best
regards,
Tomasz
Janeczko
amibroker.com
----- Original Message
-----
Sent: Wednesday, April
09, 2008 5:25 PM
Subject: [amibroker] Re:
Chart Refresh
Hello
Tomasz;
Now I
do Add the following formula in the underlying AFL
code,
------
RequestTimedRefresh(1);
function
RefreshAll()
{
oAB
= CreateObject( "Broker.Application" );
oAB.RefreshAll();
}
Buy
= C < O;
AlertIf( Buy, "EMAIL", "BUY
"+FullName(), 1 );
------
The
Active chart is "EURDUS" and I received the alert each 15M, If
the bar close red. And this is very nice.
BUT I
only get the alert for the active chart, the other pairs I
didn't get any alert for it if the bar close red.
How can
I get the alert for all pair I have in "ALL
folder"?
Regards.
>
>
> Hi
TJ,
>
> If
I click right mouse button over the chart and choose
"Edit
>
Formula", the formula is available to anybody for edit. Is
there
>
any way to "password protect the formula", so that the formula
is
>
not tampered by others sitting on the pc in my
absence.
>
>
With kind regards
>
>
UMR Perumal
>
>
>
>
wrote:
>
>
>
> Underlying code is the code that chart uses - available if
you
>
click with RIGHT mouse
>
> button over the chart and choose "Edit
Formula"
>
>
>
> Best regards,
>
> Tomasz Janeczko
>
> amibroker.com
>
> ----- Original Message -----
>
> From: "Mohammed" softnews2003@
>
> Sent: Wednesday, April 09, 2008 5:34 AM
>
> Subject: [amibroker] Re: Chart Refresh
>
>
>
>
>
> > Hello Tomasz,
>
> >
>
> > Thank you for your reply.
>
> >
>
> > Could you please clear what you mean by "underlying
AFL code"
>
> >
>
> > Regards
>
> >
>
> >
>
> >
>
> > wrote:
>
> >>
>
> >> All visible charts are refreshed.
>
> >> Invisible charts can be refreshed too if you
add
>
> > RequestTimedRefresh function
>
> >> in the underlying AFL code.
>
> >>
>
> >> Best regards,
>
> >> Tomasz Janeczko
>
> >> amibroker.com
>
> >> ----- Original Message -----
>
> >> From: "Mohammed"
<softnews2003@>
>
> >> Sent: Tuesday, April 08, 2008 11:03
PM
>
> >> Subject: [amibroker] Chart Refresh
>
> >>
>
> >>
>
> >> > Hollo folks,
>
> >> >
>
> >> > I'm still have confusion of data refresh in
AB,
>
> >> >
>
> >> > Dose AB refreshes all charts or only the
active chart, If
>
only
>
> > active
>
> >> > chart is there any way to make it refresh all
symbols in the
>
all
>
> > list?
>
> >> >
>
> >> > I need this for Email
notification.
>
> >> >
>
> >> > Thank you for advice.
>
> >> > 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:
>
> >> >
>
> >> > For other support material please check
also:
>
> >> > Yahoo! Groups Links
>
> >> >
>
> >> >
>
> >> >
>
> >>
>
> >
>
> >
>
> >
>
> > ------------------------------------
>
> >
>
> > 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:
>
> >
>
> > For other support material please check
also:
>
> > Yahoo! Groups Links
>
> >
>
> >
>
> >
>
>
>
|