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

[amibroker] Re: Alerts



PureBytes Links

Trading Reference Links

Do you have a link to the auto trendlines code or functionaility from
Ensign... I'll have a look at it. See if I can code something.

--- In amibroker@xxxxxxxxxxxxxxx, "Tim" <raven4ns@xxx> wrote:
>
> Thank you for your kindness, I appreciate it very much. It is strange
> the code seems so slow on your machine. It might be worthwhile to use
> it as a template to develop one which is much faster. What I was
> looking for was something similar to the Auto trendlines that Ensign
> has, especially the channel option. This is the closest I could come.
> If I could code I would develop one because I believe it is a
> worthwhile study. Thank you again.
> 
> Tim
> 
> 
> 
> 
> 
> --- In amibroker@xxxxxxxxxxxxxxx, "sidhartha70" <sidhartha70@> wrote:
> >
> > Tim,
> > 
> > you can put whatever you like in between those quotes... that's simply
> > the text that it will output to the window. But the code is correct
> > for the 'close' to cross over the trendline as the alert... in fact
> > try this, it's more complete... since it covers both trendlines 1
& 2...
> > 
> > AlertIf(Cross(Close,GP_tlineDown1),"","Close above downward trend
> > line");
> > AlertIf(Cross(Close,GP_tlineDown2),"","Close above downward trend
> > line");
> > AlertIf(Cross(GP_tlineUp1,Close),"","Close below upward trend line");
> > AlertIf(Cross(GP_tlineUp2,Close),"","Close below upward trend line");
> > 
> > 
> > --- In amibroker@xxxxxxxxxxxxxxx, "Tim" <raven4ns@> wrote:
> > >
> > > It seems to work ok on my computer. Thank you Sidhartha for your
help.
> > > Instead of "break" should it be "close" since I want the candle to
> > > close above or below the trendline depending on the trend? Thank
you.
> > > 
> > > Kindest regards,
> > > 
> > > Tim
> > > 
> > > 
> > > 
> > > 
> > > --- In amibroker@xxxxxxxxxxxxxxx, "sidhartha70" <sidhartha70@>
wrote:
> > > >
> > > > Ummm... strange thing is Tim, that dll is devlishly slow when
I look
> > > > at any data sub daily... 1 call to that dll below daily data takes
> > > > 350ms... at daily data it takes 1.5ms... something strange
happening
> > > > within that dll. That's for sure.
> > > > 
> > > > As for your alert cross over.... you have these 4 lines at the
> bottom
> > > > of the AFL code,
> > > > 
> > > > Plot(GP_tlineUp1, "", colorBlue, styleLine|styleThick);
> > > > Plot(GP_tlineUp2, "", colorBlue, styleLine|styleThick);
> > > > Plot(GP_tlineDown1, "", colorRed, styleLine|styleThick);
> > > > Plot(GP_tlineDown2, "", colorRed, styleLine|styleThick);
> > > > 
> > > > what is different between the up & down lines labelled 1 & 2
I'm not
> > > > sure... I haven't studied the code in detail...
> > > > 
> > > > But in principle something like this should work...
> > > > 
> > > > AlertIf(Cross(Close,GP_tlineDown1),"","Break above downward trend
> > > line");
> > > > AlertIf(Cross(GP_tlineUp1,Close),"","Break below upward trend
> line");
> > > > 
> > > > in theory this line added to the AFL should print the text "Break
> > > > above downward trend line" or "Break below upward trend line"
to the
> > > > View>Alert Output window when the close crosses the relevant trend
> > > line...
> > > > 
> > > > 
> > > > 
> > > > 
> > > > --- In amibroker@xxxxxxxxxxxxxxx, "Tim" <raven4ns@> wrote:
> > > > >
> > > > > Hello,
> > > > >  The alertif statement is the one that seems to be the one that
> > would
> > > > > fit the best. I need the candle to close above/below the
trendline
> > > > > first before the alert is sent. Has anyone developed such a
> code for
> > > > > trendlines they wouldn't mind sharing, please? Thank you for
> any and
> > > > > all help.
> > > > > 
> > > > > Kindest regards,
> > > > > 
> > > > > Tim
> > > > > 
> > > > > 
> > > > > 
> > > > > 
> > > > > 
> > > > > --- In amibroker@xxxxxxxxxxxxxxx, "Tim" <raven4ns@> wrote:
> > > > > >
> > > > > > Hello,
> > > > > >  I have found an Auto Trendline Dll which works great and is
> > exactly
> > > > > > what I was looking for, thanks to GP. How can I set up an
> alert to
> > > > > > sound and record in the alert output log whenever a stock
> > > crosses the
> > > > > > trendline and closes above or below it? It would be on the
first
> > > close
> > > > > > and not subsequent closes above or below the trendline. Thank
> > > you for
> > > > > > any and all help.
> > > > > > 
> > > > > > Kindest regards,
> > > > > > 
> > > > > > 
> > > > > > Tim
> > > > > >
> > > > >
> > > >
> > >
> >
>



------------------------------------

**** IMPORTANT ****
This group is for the discussion between users only.
This is *NOT* technical support channel.

*********************
TO GET TECHNICAL 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

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/amibroker/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/amibroker/join
    (Yahoo! ID required)

<*> To change settings via email:
    mailto:amibroker-digest@xxxxxxxxxxxxxxx 
    mailto:amibroker-fullfeatured@xxxxxxxxxxxxxxx

<*> To unsubscribe from this group, send an email to:
    amibroker-unsubscribe@xxxxxxxxxxxxxxx

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/