PureBytes Links
Trading Reference Links
|
I understand that it is the resistance line because if I could get a
workaround the resistance line then I could extrapolate it to the
support line.
The question again is find the values of the two peaks without using
the last value function.
I dont think what you have offered will help because I am having
difficulty finding the values of the peaks as defined by my
conditions.
Thanks
--- In amibroker@xxxxxxxxxxxxxxx, "Graham" <gkavanagh@xxxx> wrote:
> What you hace described would be a resistance trend line between
Peaks
> (highs), is this correect in which case the price would already be
below the
> line.
> I will assume it is a support line anyway and the close of the next
day
> would cross below the line
> If you have the slope of the line as $/bar then your cross would be
> M = slope of line in $/bar
> N = BarsSince( CondP) ; //number of bars since the last reference
point of
> the trend line
> P = Valuewhen(CondP,H ); //your last price that you are using as
reference
> for the trend line, I have inserted the high in here for convenience
> X = M*N + P;
> Sell = Cross(X,C);
>
> Hope this helps a bit and I am not off at a tangent too far
>
> Cheers,
> Graham
> http://groups.msn.com/ASXShareTrading
> http://groups.msn.com/FMSAustralia
>
>
> -----Original Message-----
> From: epintoem [mailto:epintoem@x...]
> Sent: Tuesday, 9 September 2003 8:14 PM
> To: amibroker@xxxxxxxxxxxxxxx
> Subject: [amibroker] Re: AFL question.....for use in backtester
>
>
> I want to use the trend lines for stops
>
> I can calculate the value of the trend line for the next day and a
> cross would provide the exit.
>
> Hope that helps
>
> --- In amibroker@xxxxxxxxxxxxxxx, "Graham" <gkavanagh@xxxx> wrote:
> > It depends on what your actual buy/sell signals are, can you
> provide them.
> > What you have below defines an exploration basis for certain
> conditions to
> > be met, but what will the trade signals be.
> >
> > Cheers,
> > Graham
> > http://groups.msn.com/ASXShareTrading
> > http://groups.msn.com/FMSAustralia
> >
> >
> > -----Original Message-----
> > From: epintoem [mailto:epintoem@x...]
> > Sent: Tuesday, 9 September 2003 7:41 PM
> > To: amibroker@xxxxxxxxxxxxxxx
> > Subject: [amibroker] AFL question.....for use in backtester
> >
> >
> > I have the AFL code that automatically draws trend lines but I
cant
> > use it in Backtester. Anyone with a work around?
> >
> >
> >
> > condP=Ref(H,-1)>=Ref(H,-2) AND Ref(H,-1)>H AND Ref(H,-1)>Ref(C,-
3);
> >
> > The above condition defines a peak.
> >
> > In order to draw a trend line I need 4 values
> >
> > first Peak= value when condP is met
> >
> > second peak= value when condp is met and High greater than first
> peak.
> >
> > bar1= number of bars between peaks
> >
> > bar2= number of bars since first peak.
> >
> > Using last value restricts the finding to the last occurrence
which
> > then does not allow to back test?
> >
> > TIA
> >
> >
> >
> >
> >
> >
> > ------------------------ Yahoo! Groups Sponsor -------------------
--
> ~--> Buy
> > Ink Cartridges or Refill Kits for Your HP, Epson, Canon or Lexmark
> Printer
> > at Myinks.com. Free s/h on orders $50 or more to the US & Canada.
> > http://www.c1tracking.com/l.asp?cid=5511
> > http://us.click.yahoo.com/l.m7sD/LIdGAA/qnsNAA/GHeqlB/TM
> > ------------------------------------------------------------------
--
> -~->
> >
> > Send BUG REPORTS to bugs@xxxx
> > Send SUGGESTIONS to suggest@xxxx
> > -----------------------------------------
> > Post AmiQuote-related messages ONLY to: amiquote@xxxxxxxxxxxxxxx
> > (Web page: http://groups.yahoo.com/group/amiquote/messages/)
> > --------------------------------------------
> > Check group FAQ at:
> > http://groups.yahoo.com/group/amibroker/files/groupfaq.html
> >
> > Your use of Yahoo! Groups is subject to
> http://docs.yahoo.com/info/terms/
>
>
>
> Send BUG REPORTS to bugs@xxxx
> Send SUGGESTIONS to suggest@xxxx
> -----------------------------------------
> Post AmiQuote-related messages ONLY to: amiquote@xxxxxxxxxxxxxxx
> (Web page: http://groups.yahoo.com/group/amiquote/messages/)
> --------------------------------------------
> Check group FAQ at:
> http://groups.yahoo.com/group/amibroker/files/groupfaq.html
>
> Your use of Yahoo! Groups is subject to
http://docs.yahoo.com/info/terms/
------------------------ Yahoo! Groups Sponsor ---------------------~-->
Buy Ink Cartridges or Refill Kits for Your HP, Epson, Canon or Lexmark
Printer at Myinks.com. Free s/h on orders $50 or more to the US & Canada. http://www.c1tracking.com/l.asp?cid=5511
http://us.click.yahoo.com/l.m7sD/LIdGAA/qnsNAA/GHeqlB/TM
---------------------------------------------------------------------~->
Send BUG REPORTS to bugs@xxxxxxxxxxxxx
Send SUGGESTIONS to suggest@xxxxxxxxxxxxx
-----------------------------------------
Post AmiQuote-related messages ONLY to: amiquote@xxxxxxxxxxxxxxx
(Web page: http://groups.yahoo.com/group/amiquote/messages/)
--------------------------------------------
Check group FAQ at: http://groups.yahoo.com/group/amibroker/files/groupfaq.html
Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
|