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

Re: IQFeed has now the status of unsupported beta until the release of API 3.0 was: Re: [amibroker] Re: IQFeed Problem; Open & Low = O for last day



PureBytes Links

Trading Reference Links




<FONT face=Arial color=#0000ff 
size=2>Dean,
in 
help click the AFL icon on the tool bar. Syntax and examples for writif() and 
writeval() can be found there. Here is a simple example
<FONT face=Arial color=#0000ff 
size=2> 
<FONT face=Arial color=#0000ff 
size=2>Plot(c,"price",colorgreen,stylecandle); //plots a simple candle 
chart
<FONT face=Arial color=#0000ff 
size=2> 
since 
we are plotting close then AFL will by default place the close value in the 
title line of the chart. By adding a Title expression we gain far more 
flexibility...
<FONT face=Arial color=#0000ff 
size=2> 
<FONT face=Arial color=#0000ff 
size=2>title=" Close "+C+" High "+H;
<FONT face=Arial color=#0000ff 
size=2> 
We can 
gain a bit more format control using writeval()
<FONT face=Arial color=#0000ff 
size=2> 
<SPAN 
class=246284504-21042004>title=" Close 
"+C+" High "+H+ "Average Price "+Writeval((h+l+c)/3,1.2);  //where 1.2 
offers us 2 decimal places
<SPAN 
class=246284504-21042004> 
<SPAN 
class=246284504-21042004>Writeif allows us to add conditional 
text....
<SPAN 
class=246284504-21042004>
Title<FONT 
color=#282828>=" Close "<FONT 
color=#282828>+C<FONT 
color=#282828>+" High "<FONT 
color=#282828>+H+ 
" <FONT 
color=#ff00ff>Average Price "+<FONT 
color=#0000ff>WriteVal((H<FONT 
face=Arial>+L<FONT 
color=#282828>+C<FONT 
color=#282828>)/3<FONT 
color=#282828>,1.2<FONT 
color=#282828>)+ <FONT 
color=#0000ff>WriteIf(V<FONT 
face=Arial>>Ref<FONT 
color=#282828>(V<FONT 
color=#282828>,-1<FONT 
color=#282828>)," Increasing Volume"<FONT 
color=#282828>, " dwindling Volume"<FONT 
color=#282828>);
Using 
encodecolor you can even chane the color of portions of the 
title....
Title=<FONT color=#ff00ff 
size=2>" Close "+<FONT 
size=2>C+<FONT color=#ff00ff 
size=2>" High "+<FONT 
size=2>H+ <FONT color=#ff00ff 
size=2>" <FONT color=#ff00ff 
size=2>Average Price "+<FONT 
color=#0000ff size=2>WriteVal((<FONT 
size=2>H+<FONT 
size=2>L+<FONT 
size=2>C)/<FONT color=#ff00ff 
size=2>3,<FONT face=Arial 
color=#ff00ff size=2>1.2)<FONT 
face=Arial color=#282828 size=2>+ <FONT face=Arial color=#0000ff 
size=2>WriteIf(<FONT 
face=Arial size=2>V<FONT face=Arial color=#282828 
size=2>>Ref<FONT 
face=Arial color=#282828 size=2>(<FONT face=Arial 
size=2>V,-<FONT 
face=Arial color=#ff00ff size=2>1<FONT face=Arial color=#282828 
size=2>),EncodeColor<FONT 
face=Arial color=#282828 size=2>(<FONT face=Arial 
size=2>colorBrightGreen<FONT face=Arial color=#282828 
size=2>)+" Increasing 
Volume", <FONT face=Arial 
color=#0000ff size=2>EncodeColor<FONT face=Arial color=#282828 
size=2>(colorRed<FONT face=Arial 
color=#282828 size=2>)+" dwindling 
Volume")<FONT color=#282828 
size=2>;
For more examples 
you should visit the AFL library (from amibroker web 
page)......
Regards,Jayson 

  <FONT face=Tahoma 
  size=2>-----Original Message-----From: Dean Hodgins 
  [mailto:deanhodgins@xxxxxxxxx]Sent: Wednesday, April 21, 2004 12:22 
  AMTo: amibroker@xxxxxxxxxxxxxxxSubject: [amibroker] Re: 
  Display ValuesThanks Jayson - I tried that for over 
  an hour and I couldn't findanywhere instructions for adding captions to 
  charts.Please understand I do not have good programming ability - I'm 
  just trying to find some clear easy examples as a starting point. Thought 
  I might find these writeval()and writeif() functions somewhere in the 
  existing indicators but no luck there either.  Somewhere that 
  says these are the instructions for performing this task in a language 
  that doesn't require programming knowledge - Anything a bit more 
  specific would be much 
  appreciated.Regards,Dean
  


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.