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

[amibroker] Using custom Styles in Plot()



PureBytes Links

Trading Reference Links




<FONT face=Arial color=#0000ff 
size=2>David,
<FONT face=Arial color=#0000ff 
size=2> 
So, 
 if today were in fact the new high (and today was 251 days)  you 
would want to see that?  If so then 
c>ref(hhv(h,251),-1);
If 
what you are really trying to do is find new highs THIS year than perhaps 
setting a fixed date qualifier would help. Something 
like....
<FONT face=Arial color=#0000ff 
size=2> 
<FONT face=Arial 
color=#0000ff> 
set=<FONT 
color=#0000ff>BarsSince(<FONT 
size=2>DateNum()==1030102<FONT 
size=2>);<FONT face=Arial 
color=#0000ff>//counts from 01/01/03<FONT color=#282828 
size=2>
x= <FONT 
face=Arial color=#0000ff>C<FONT 
color=#0000ff>>Ref<FONT 
size=2>(HHV(<FONT 
size=2>H<FONT 
size=2>,set),-1<FONT color=#282828 
size=2>);
Filter<FONT 
color=#0000ff>=set>250 
AND<FONT 
face=Arial color=#0000ff> x;
AddColumn<FONT 
color=#282828 size=2>(set,"DATE 
Count"<FONT 
face=Arial>);
AddColumn<FONT 
color=#282828 size=2>(Filter<FONT 
face=Arial>,"New 
High"<FONT 
face=Arial>);<FONT face=Arial color=#282828 
size=2>
Buy<FONT 
color=#0000ff>=Filter<FONT 
color=#282828 size=2>;
<FONT face=Arial 
color=#0000ff> 
<FONT face=Arial 
color=#0000ff size=2>You will see each new high this year (repetitive signals) 
unless you select a "Sell" and invoke exrem()
  
<FONT face=Arial color=#0000ff 
size=2> 
Regards, 
Jayson 
<FONT face=Tahoma 
size=2>-----Original Message-----From: prophesier2002 
[mailto:prophesier2002@xxxxxxxxxxxx]Sent: Thursday, January 01, 2004 
7:14 PMTo: amibroker@xxxxxxxxxxxxxxxSubject: [amibroker] 
Re: The first new high in 250 barsThanks for the help 
but I'm still not getting what I want, which is....... No yearly highs for 
the last 250 bars but then I want to identify the first new yearly high 
after that.Regards David--- In amibroker@xxxxxxxxxxxxxxx, 
"Jayson" <jcasavant@xxxx> wrote:> David,> you could use 
simply c>...... the cross is not needed but if you are looking> to 
see only the first occurrence then RT click and choose show actual 
trades> or else add an exrem statement to force only one buy prior to a 
sell...> > Regards,> Jayson> -----Original 
Message-----> From: prophesier2002 [mailto:prophesier2002@xxxx]> 
Sent: Thursday, January 01, 2004 10:26 AM> To: 
amibroker@xxxxxxxxxxxxxxx> Subject: [amibroker] The first new high in 250 
bars> > > Buy=Cross(C,Ref(HHV(H,250),-1))> > 
I use this but it does not buy at the first high in 250 bars.> What do I 
have to change for it to buy only at the first new high?> > 
Regards David> > > > > Send BUG REPORTS to 
bugs@xxxx> Send SUGGESTIONS to suggest@xxxx> 
-----------------------------------------> Post AmiQuote-related messages 
ONLY to: amiquote@xxxxxxxxxxxxxxx> (Web page: <A 
href="">http://groups.yahoo.com/group/amiquote/messages/)> 
--------------------------------------------> Check group FAQ at:> 
<A 
href="">http://groups.yahoo.com/group/amibroker/files/groupfaq.html> 
> >       Yahoo! Groups 
Sponsor>             
ADVERTISEMENT> > > > > > 
----------------------------------------------------------------------------> 
----> Yahoo! Groups Links> >   a.. To visit your 
group on the web, go to:>   <A 
href="">http://groups.yahoo.com/group/amibroker/> 
>   b.. To unsubscribe from this group, send an email 
to:>   amibroker-unsubscribe@xxxxxxxxxxxxxxx> 
>   c.. Your use of Yahoo! Groups is subject to the Yahoo! 
Terms of Service.Send BUG REPORTS to 
bugs@xxxxxxxxxxxxxSend SUGGESTIONS to 
suggest@xxxxxxxxxxxxx-----------------------------------------Post 
AmiQuote-related messages ONLY to: amiquote@xxxxxxxxxxxxxxx (Web page: <A 
href="">http://groups.yahoo.com/group/amiquote/messages/)--------------------------------------------Check 
group FAQ at: <A 
href="">http://groups.yahoo.com/group/amibroker/files/groupfaq.html 


Yahoo! Groups Links
  To visit your group on the web, go to:<A 
  href="">http://groups.yahoo.com/group/amibroker/  

  To unsubscribe from this group, send an email to:<A 
  href="">amibroker-unsubscribe@xxxxxxxxxxxxxxx  

  Your use of Yahoo! Groups is subject to the <A 
  href="">Yahoo! Terms of Service. 



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





Yahoo! Groups Links
To visit your group on the web, go to:http://groups.yahoo.com/group/amibroker/ 
To unsubscribe from this group, send an email to:amibroker-unsubscribe@xxxxxxxxxxxxxxx 
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.