| PureBytes Links Trading Reference Links | 
 Thathasthu.
 (In Sanskrit that means I concur, So be it. Something like the English "Amen". )
 You are all so helpful, the urge to give back drives my AFL learning process.
 
 eswar
 
 
2010/1/28 Joseph Occhipinti <joseph_occhipinti@xxxxxxxxx> 
 
  
    
      
      
      Thank you to everyone for your help 
 This is truly a great forum, you are all great and i hope your returns will be great also, just as long as i am not on the other side of your trades, that is all i ask 
 i hope i can be become proficient enough on AB so that one day i can assist some poor schmuck like myself 
 thanks again 
Sent: Thu, 28 January, 2010 7:33:51 AM
Subject: Re: [amibroker] Bar Chart Colors
 
 
      
      
      
 Hi Joseph,   
Works for me when I do just what you said you did. What 
can I say? I don't think it would be a background 
color same-same issue as my code uses two different colors.    OK let's see if we can figure this out.  Though I 
don't think it necessary (because the code should save to the Custom folder 
automatically when you apply or insert the indicator), I always do a "save as" 
to a different folder under Formulas (in this case I would save to a folder 
named My Price Charts) with an individual name (this might be Colored Bars.afl). 
If your code is automatically saved it is given a nondescript name of Indicator 
X, where X is a number which increments with each new code saved.  Check 
your custom folder and see if you can identify the code you tried to 
insert.  If it isn't there, then you probably didn't do an apply to the 
test code.  If it is there, you can now try to insert it (select the code 
and right click to get a menu of options).   Another habit I suggest that is useful is to click 
the little AFL checkmark icon before saving or applying code.  This will 
help spot many errors that might be in your code and need fixing before you 
try to use it. And the reason I save to different folders is both for 
organization and to prevent code from being overwritten when doing 
upgrades.   Peace and Justice   ---   Patrick 
  ----- Original Message -----  
  Sent: Tuesday, January 26, 2010 11:30 
  PM Subject: Re: [amibroker] Bar Chart 
  Colors 
 
  Thanks Patrick but nothing happened when i put those lines in the formula 
  editor. I did hit 'apply indicator' and no errors came up but when i close the 
  box, nothing came up  
 thanks 
  To: amibroker@xxxxxxxxx ps.com
Sent: Wed, 27 January, 2010 6:19:57 
  PM
 Subject: Re: [amibroker] 
  Bar Chart Colors
 
   
  
    Hi Joseph,   Try the following lines and plot statement in a 
  new formula editor:   Barcolor = IIF(C>Ref(C,-1) , colorGreen, colorRed 
  ); Plot(C, "Close ", Barcolor , styleBar |styleThick ) 
  ;   This colors the bars based on the relation of the 
  close to the prior close.  If you want the bars to depict 
  the relation from open to close or to show volume changes, you can edit 
  the Barcolor statement. You might also want to add a Title statement and some 
  other things (like setting the chart options).   Peace and Justice   ---   Patrick 
    ----- Original Message -----  Sent: Tuesday, January 26, 2010 7:26 
    PM Subject: [amibroker] Bar Chart 
    Colors 
 
    Hi All -- 
 How do I make the up days of a bar chart green and down days red? 
 Thanks  
 See what's on at the movies in your area. Find out now.
  
 
  Yahoo!7: Catch-up on your favourite Channel 7 TV shows easily, legally, and 
  for free at PLUS7. Check it out . 
  
      
 
Yahoo!7: Catch-up on your favourite Channel 7 TV shows easily, legally, and for free at PLUS7. Check it out . __._,_.___ 
 **** IMPORTANT PLEASE READ ****
 This group is for the discussion between users only.
 This is *NOT* technical support channel.
 
 TO GET TECHNICAL SUPPORT send an e-mail directly to
 SUPPORT {at} amibroker.com
 
 TO SUBMIT SUGGESTIONS please use FEEDBACK CENTER at
 http://www.amibroker.com/feedback/
 (submissions sent via other channels won't be considered)
 
 For NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG:
 http://www.amibroker.com/devlog/
 
 
 
 
 ![]()  
 
 __,_._,___
 |