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

Re: [amibroker] Re: Portfolio Trading vs Buy&Hold comparison



PureBytes Links

Trading Reference Links




Line returns (\n) work within PLOT too.
 
Try:
Plot(<FONT 
color=#ff0000 size=2>C, <FONT color=#00008b 
size=2>"\n<FONT 
color=#00008b size=2> O:" + <FONT color=#ff0000 
size=2>O + <FONT color=#00008b 
size=2>", <FONT 
color=#00008b size=2>H:" + <FONT color=#ff0000 
size=2>H + <FONT color=#00008b 
size=2>", <FONT 
color=#00008b size=2>L:" + <FONT color=#ff0000 
size=2>L + <FONT color=#00008b 
size=2>", <FONT 
color=#00008b size=2>C:" + <FONT color=#ff0000 
size=2>C +<FONT color=#00008b 
size=2>" <FONT 
color=#00008b size=2>\n 
V:"+ <FONT 
color=#8b0000 size=2>WriteVal(<FONT 
color=#ff0000 size=2>V,<FONT color=#800080 
size=2>1) + 
"\n\n", 
mycolor, styleCandle<FONT 
size=2>);
 
-CS
<BLOCKQUOTE 
>
  ----- Original Message ----- 
  <DIV 
  >From: 
  Jim 
  
  To: <A title=amibroker@xxxxxxxxxxxxxxx 
  href="">amibroker@xxxxxxxxxxxxxxx 
  Sent: Monday, January 12, 2004 6:57 
  PM
  Subject: [amibroker] Re: A couple 
  ?'s
  Graham,Wow, you just totally blew my mind 
  here.  I had no idea we could make our own words with their own 
  definitions.  This changes everything.  I read the User's guide 
  a couple of times and I never caught that fact.Anyway, I will work 
  with my new knowledge and figure out how to put what you have given me 
  into my code.  I may choose a different word than doodle, but I like 
  the definition.  That is so cool what we can do with this 
  software.Thanks for the 
  enlightenment.Jim------------------------------------------------------------------------ 
  In amibroker@xxxxxxxxxxxxxxx, "Graham" <gkavanagh@xxxx> wrote:> 
  Jim> > Easy first:>  > As far as showing the 
  price arrays in the pop up box, > > mycolor=IIf(C>O, 
  colorBlue, IIf(C<O,colorRed,colorBlack));> > Plot(C, ", O:" + 
  O + ", H:" + H + ", L:" + L + ", C:" + C +" V:"+> WriteVal(V,1), 
  mycolor, styleCandle);> > Got my curiosity on the chart title, 
  here is a "doodle" I quickly put> together> > doodle 
  => 
  Min(Ref(DateNum(),-1)-Ref(DateNum(),-2),Ref(DateNum(),-2)-Ref(DateNum(),-3))> 
  ;> > ChartSetting = 
  WriteIf(doodle<7,"daily",WriteIf(doodle>=7 AND doodle<20,> 
  "weekly", "Monthly"));> > Title 
  =EncodeColor(SelectedValue(mycolor))+ Name()+"> 
  "+Date()+Chartsetting+", O:" + O + ", H:" + H + ", L:" + L + ", C:" + C 
  +"> V:"+ WriteVal(V,1) +"; "+SectorID(1)+" / "+IndustryID(1);> 
  > > > > > > Cheers,> 
  Graham> <A 
  href="">http://groups.msn.com/asxsharetrading> 
  <A 
  href="">http://groups.msn.com/fmsaustralia> 
  > -----Original Message-----> From: Jim 
  [mailto:bankedout@xxxx]> Sent: Tuesday, 13 January 2004 10:11 
  AM> To: amibroker@xxxxxxxxxxxxxxx> Subject: [amibroker] A couple 
  ?'s> > > Hello,> > I have some trouble 
  getting my custom colored price bars to display> the same type of 
  information as the "stock" price bars included with> 
  Amibroker.> > In the "stock" version, next to the ticker symbol 
  at the top of the> chart, it states the periodicity of the chart.  
  For example if you> are looking at a Daily chart, it says "Daily" next 
  to the ticker> symbol.  Weekly says Weekly, and Monthly says 
  Monthly.  I can't> figure out how to get that in my custom price 
  chart.> > Second issue is that I'm having trouble getting 
  information in to> the little hover box.  That's not the real name 
  I'm sure.  Well,> let's say you are on a standard price chart in 
  Amibroker.  You just> move your mouse pointer over a price 
  bar.  A little box pops up> telling you the Date, Value, Open, 
  High, Low, Close, Volume, Open> Interest.  In a few seconds or so, 
  this box disappears.  If you move> your mouse cursor again, it 
  appears with the new information you are> pointing at (without 
  clicking anything).> > Well, in my custom colored bar chart, my 
  little hover box only> states Date, Value, Close.  I don't get the 
  Open, High, Low, or> Volume. > > My code for custom 
  colored bars is below.  Any help would be greatly> 
  appreciated.> > Thanks in advance,> > Jim> 
  > **After you paste code, make sure Scaling is set to "Automatic", 
  and> in the Grid Lines section: "Middle" and "Show Dates" are 
  checked** --This> color scheme looks best with a black background 
  IMHO--> > col=IIf(C>O AND 
  C>Ref(C,-1),colorBrightGreen,IIf(C<O AND C<Ref(C,-> 
  1),colorRed,colorYellow)); Plot( C, "Close", col, styleBar); Title=> 
  EncodeColor (colorWhite) + Name () + EncodeColor> (colorDefault) + " 
  O=$" + WriteVal (O, 1.2) + " H=$" + WriteVal (H,> 1.2) + " L=$" + 
  WriteVal (L, 1.2) + " C=$" + WriteVal (C, 1.2) + " "> + WriteVal 
  ((ROC(C,1)), 1.1) + "% " + WriteVal( DateTime(),> formatDateTime 
  );> > I use this volume below the chart, so the bar colors 
  match:> > col=IIf(C>O AND 
  Close>Ref(C,-1),colorBrightGreen,IIf(C<Open AND C<Ref> 
  (C,-1),colorRed,colorYellow));> Plot( V, "Volume", col, styleHistogram 
  | styleThick );> Title=  EncodeColor (colorWhite) + Name () + 
  EncodeColor> (colorDefault) + "   Volume " + WriteVal (V, 
  1.0) + "  " + WriteVal(> DateTime(), formatDateTime );> 
  > > 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 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:>  
  amibroker-unsubscribe@xxxxxxxxxxxxxxx> > Your use of Yahoo! 
  Groups is subject to:>  <A 
  href="">http://docs.yahoo.com/info/terms/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.