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

Re: [amibroker] Custom TiTle Help



PureBytes Links

Trading Reference Links

Hi Ron - I think maybe you have 3 options:

1. Simplest, doesn't require a title - Move chart name from right to left side by including it in the 1st Plot statement:

Plot( Ind1, "CHART NAME    Ind Name", colorRed, styleLine );

2. Quick fix - You can use the Plot function to add text anywhere in the title, but AB will append a value to it:

Plot ( Ind1...
Plot ( Ind2...
Plot( Null, "             CHART NAME", colorDefault, styleNoLine|styleNoLabel );

Come to think of it, it would be quite handy to have something like StyleNoTitleValue so AB won't append the value, then we could just write

Plot( Null, " CHART NAME", colorDefault, styleNoLine|styleNoLabel|styleNoTitleValue );

It is much easier than writing a huge title - maybe I will suggest it!    8 - )

3. Construct a Title containing the names and values from all Plot statements, along with whatever else you want to add. It is really just a matter of

1) combining text and numerical values in the order you want
2) using spaces and newlines to position them where you want, and
3) using EncodeColor() to color each part to match your plots.

I find it helpful to line up the parts of the title in my AFL. Here is an example using built-in price arrays:

YestOpen = ref( Open, -1 );
YestClose = ref( Close, -1 );
Plot( Open, "Open", colorRed );
Plot Close, "Close", colorGreen );
Title = EncodeColor( colorRed )   +  "Open  "  + YestOpen  + "  " + Open
      + EncodeColor( colorGreen ) + "  Close  " + YestClose + "  " + Close
      + EncodeColor( colorBlack ) + "                               CHART NAME"
      + "\n" + EncodeColor( colorWhite ) + "Here is example of starting new line"
      + "\n" + NumToStr( Close, 1.1 ) "plus example of controlling decimal places";

Well, I haven't tested it so I hope it works!    8 - )   Good luck!

Steve
  ----- Original Message ----- 
  From: mrdavis9 
  To: amibroker@xxxxxxxxxxxxxxx 
  Sent: Monday, June 05, 2006 1:33 AM
  Subject: [amibroker] Custom TiTle Help


  I feel very comfortable using the actual AFL language that TJ has so masterfully constructed.  

  However, my  training as a programmer consists of one semester  of using Punch cards  to program  a heat flow equation in Fortran in about 1962.

  I am aware that if I comment out the Title name, then I can view  all of the current values at the top of the chart, but I can no longer see the name that I have chosen for the custom indicator.

  I have saved many of the Title posts made by this Yahoo group, but I am unable to modify any of them to perform as I want.

  I would really like to be able to see the current  values of my six plot lines displayed at the top of the chart as well as all of the  REF(values,-1) displayed to the immediate left side of the current values.

  Additionally, at  the extreme right side of the title line, I also want to see the name that I have chosen fot this Custom indicator.

  I will sure appreciate it a member of this Amibroker  user group could supply me with a completed code that will do what I have described above.

  Reading the descriptions in the user manual has rarely helped. 

  Virtually all of my learning has come come from  reading the posts of this user group, and then experimenting with a functioning code that was posted. 
  Later,Ron D 




  Please note that this group is for discussion between users only.

  To get support from AmiBroker please send an e-mail directly to 
  SUPPORT {at} amibroker.com

  For other support material please check also:
  http://www.amibroker.com/support.html





  SPONSORED LINKS Investment management software  Real estate investment software  Investment property software  
        Software support  Real estate investment analysis software  Investment software  


------------------------------------------------------------------------------
  YAHOO! GROUPS LINKS 

    a..  Visit your group "amibroker" on the web.
      
    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. 


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