[amibroker] Bar Chart

2010-06-10 Thread Vishvesh
Friends,

How can i get bar chart in AB, like MS where UP bar color is different and
Down bar color is different.

Regards
Vishvesh


Re: [amibroker] Bar Chart

2010-06-10 Thread Prashanth
Plot(Close, Close, IIf(CO, colorGreen, colorRed), styleBar );

Cheers

Prashanth
  - Original Message - 
  From: Vishvesh 
  To: amibroker@yahoogroups.com 
  Sent: Thursday, June 10, 2010 21:54 PM
  Subject: [amibroker] Bar Chart




  Friends,

  How can i get bar chart in AB, like MS where UP bar color is different and 
Down bar color is different. 

  Regards
  Vishvesh




  

Re: [amibroker] Bar Chart Colors

2010-01-28 Thread furinkazaan
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_occhipi...@yahoo.com



 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

 --
 *From:* NW Trader ta4cha...@comcast.net
 *To:* amibroker@yahoogroups.com
 *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 -
 *From:* Joseph Occhipinti joseph_occhipi...@yahoo.com
 *To:* amibro...@yahoogrou ps.com amibroker@yahoogroups.com
 *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

  --
 *From:* NW Trader ta4cha...@comcast. net ta4cha...@comcast.net
 *To:* amibro...@yahoogrou ps.com amibroker@yahoogroups.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(CRef(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 -
 *From:* Joseph Occhipinti joseph_occhipi...@yahoo.com
 *To:* Amibroker Group amibroker@yahoogroups.com
 *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 
 nowhttp://au.rd.yahoo.com/movies/mailtagline/*http://au.movies.yahoo.com/session-times/.



 --
 Yahoo!7: Catch-up on your favourite Channel 7 TV shows easily, legally, and
 for free at PLUS7. Check it 
 outhttp://au.rd.yahoo.com/tv/catchup/tagline/*http://au.tv.yahoo.com/plus7/?cmp=mailtag.



 --
 Yahoo!7: Catch-up on your favourite Channel 7 TV shows easily, legally, and
 for free at PLUS7. Check it 
 outhttp://au.rd.yahoo.com/tv/catchup/tagline/*http://au.tv.yahoo.com/plus7/?cmp=mailtag
 .
  



Re: [amibroker] Bar Chart Colors

2010-01-27 Thread reinsley


Hi Joseph,


Another way following Heikin-Ashi bars


Best regards

_SECTION_BEGIN( HeikinAshi Bar );
// heikin ashi gives color to bars
HaClose = ( O + H + L + C ) / 4;
HaOpen = AMA( Ref( HaClose, -1 ), 0.5 );
HaHigh = Max( H, Max( HaClose, HaOpen ) );
HaLow = Min( L, Min( HaClose, HaOpen ) );
//Plot(HaHigh ,HaHigh ,colorCustom12,styleLine);
barcolor = IIf( HaClose = HaOpen, colorGreen, colorRed );
barcolorstylebar = IIf( HaClose = HaOpen, colorWhite, colorBlack );
GfxSetBkMode( 0 ); // 1 set transparent mode
//PlotOHLC( HaOpen, HaHigh, HaLow, HaClose, , barcolor, styleCandle + 
styleNoLabel , Null, Null, Null, 0);
//Plot( C, C , barcolorstylebar , styleBar + styleThick );
PlotOHLC( O, H, L, C, , barcolor , styleBar + styleThick , Null, Null, 
Null, 1 );
PlotOHLC( O, Null, Null, C, , colorBlack , styleBar + styleThick , 
Null, Null, Null, 2 );
_SECTION_END();


Le 27/01/2010 08:19, NW Trader a écrit :


 

 Hi Joseph,
 Try the following lines and plot statement in a new formula editor:
 Barcolor = IIF(CRef(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 -
 *From:* Joseph Occhipinti mailto:joseph_occhipi...@yahoo.com
 *To:* Amibroker Group mailto:amibroker@yahoogroups.com
 *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
 
 http://au.rd.yahoo.com/movies/mailtagline/*http://au.movies.yahoo.com/session-times/.


 



Re: [amibroker] Bar Chart Colors

2010-01-27 Thread NW Trader
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 - 
  From: Joseph Occhipinti 
  To: amibroker@yahoogroups.com 
  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



--
  From: NW Trader ta4cha...@comcast.net
  To: amibroker@yahoogroups.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(CRef(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 - 
From: Joseph Occhipinti 
To: Amibroker Group 
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. 


  

Re: [amibroker] Bar Chart Colors

2010-01-27 Thread Joseph Occhipinti
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




From: NW Trader ta4cha...@comcast.net
To: amibroker@yahoogroups.com
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 - 
From: Joseph Occhipinti 
To: amibro...@yahoogrou ps.com 
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




 From: NW Trader ta4cha...@comcast. net
To: amibro...@yahoogrou 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(CRef(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 - 
From: Joseph Occhipinti 
To: Amibroker Group 
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. www.tv.yahoo.com.au/plus7

[amibroker] Bar Chart Colors

2010-01-26 Thread Joseph Occhipinti
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: 
http://au.movies.yahoo.com/session-times/

Re: [amibroker] Bar Chart Colors

2010-01-26 Thread NW Trader
Hi Joseph,

Try the following lines and plot statement in a new formula editor:

Barcolor = IIF(CRef(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 - 
  From: Joseph Occhipinti 
  To: Amibroker Group 
  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. 


  

Re: [amibroker] Bar Chart Colors

2010-01-26 Thread Joseph Occhipinti
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




From: NW Trader ta4cha...@comcast.net
To: amibro...@yahoogroups..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(CRef(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 - 
From: Joseph Occhipinti 
To: Amibroker Group 
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. www.tv.yahoo.com.au/plus7

[amibroker] bar chart with plot foreign

2009-03-17 Thread murthysuresh
how can i get a bar chart with plot foreign. i just could not get a bar but 
just  dash dash chart
http://screencast.com/t/JDm55Wv1




[amibroker] Bar chart without openprice

2008-09-13 Thread awbe2005
Hello everyone,
can anyone post some code to get a bar chart without open price, like
this
http://stockcharts.com/h-sc/ui?s=GBNp=Dyr=1mn=0dy=0id=p36964279287\
  one.
Thanks in advance.
Best regards,
Deviad



RE: [amibroker] Bar chart without openprice

2008-09-13 Thread Thomas Z.
Hi,

 

PlotOHLC(C, H, L, C, O == C Chart, colorBlack, 128);

 

Thomas

www.PatternExplorer.com

 

From: amibroker@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf
Of awbe2005
Sent: Saturday, September 13, 2008 12:56 PM
To: amibroker@yahoogroups.com
Subject: [amibroker] Bar chart without openprice

 

Hello everyone,
can anyone post some code to get a bar chart without open price, like this
http://stockcharts.com/h-sc/ui?s=GBNp=Dyr=1mn=0dy=0id=p36964279287
one.
Thanks in advance.
Best regards,
Deviad

 



[amibroker] Bar chart with close only... possbile..?

2008-09-05 Thread sidhartha70
Hi,

Is it possible to plot a bar chart where only the range  the close is
indicated (i.e. not the open)...?

TIA



Re: [amibroker] Bar chart with close only... possbile..?

2008-09-05 Thread Dennis Brown
Sidhartha,

Use the PlotOHLC() function and plot anything you want for bars.

BR,
Dennis

On Sep 5, 2008, at 11:25 AM, sidhartha70 wrote:

 Hi,

 Is it possible to plot a bar chart where only the range  the close is
 indicated (i.e. not the open)...?

 TIA


 

 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 NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG:
 http://www.amibroker.com/devlog/

 For other support material please check also:
 http://www.amibroker.com/support.html
 Yahoo! Groups Links






Re: [amibroker] Bar chart with close only... possible..?

2008-09-05 Thread Mr. Valley


Plot(Close,Close,5,8);
PlotOHLC(H,H,L,C,Range Close Chart,1,128);



sidhartha70 wrote:


Hi,

Is it possible to plot a bar chart where only the range  the close is
indicated (i.e. not the open)...?

TIA

 




Re: [amibroker] Bar chart with close only... possbile..?

2008-09-05 Thread wavemechanic
SetBarFillColor() controls the bar color (H to L) and Plot() controls the color 
of the O and C marks.

Bill
  - Original Message - 
  From: Dennis Brown 
  To: amibroker@yahoogroups.com 
  Sent: Friday, September 05, 2008 8:29 PM
  Subject: Re: [amibroker] Bar chart with close only... possbile..?


  Sidhartha,

  Use the PlotOHLC() function and plot anything you want for bars.

  BR,
  Dennis

  On Sep 5, 2008, at 11:25 AM, sidhartha70 wrote:

   Hi,
  
   Is it possible to plot a bar chart where only the range  the close is
   indicated (i.e. not the open)...?
  
   TIA
  
  
   
  
   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 NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG:
   http://www.amibroker.com/devlog/
  
   For other support material please check also:
   http://www.amibroker.com/support.html
   Yahoo! Groups Links
  
  
  


  

  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 NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG:
  http://www.amibroker.com/devlog/

  For other support material please check also:
  http://www.amibroker.com/support.html
  Yahoo! Groups Links





--



  No virus found in this incoming message.
  Checked by AVG - http://www.avg.com 
  Version: 8.0.169 / Virus Database: 270.6.17/1655 - Release Date: 9/5/2008 
7:05 PM


Re: [amibroker] Bar chart with close only... possbile..?

2008-09-05 Thread wavemechanic
SetBarFillColor() has to precede Plot()
  - Original Message - 
  From: wavemechanic 
  To: amibroker@yahoogroups.com 
  Sent: Saturday, September 06, 2008 12:03 AM
  Subject: Re: [amibroker] Bar chart with close only... possbile..?


  SetBarFillColor() controls the bar color (H to L) and Plot() controls the 
color of the O and C marks.

  Bill
- Original Message - 
From: Dennis Brown 
To: amibroker@yahoogroups.com 
Sent: Friday, September 05, 2008 8:29 PM
Subject: Re: [amibroker] Bar chart with close only... possbile..?


Sidhartha,

Use the PlotOHLC() function and plot anything you want for bars.

BR,
Dennis

On Sep 5, 2008, at 11:25 AM, sidhartha70 wrote:

 Hi,

 Is it possible to plot a bar chart where only the range  the close is
 indicated (i.e. not the open)...?

 TIA


 

 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 NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG:
 http://www.amibroker.com/devlog/

 For other support material please check also:
 http://www.amibroker.com/support.html
 Yahoo! Groups Links







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 NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG:
http://www.amibroker.com/devlog/

For other support material please check also:
http://www.amibroker.com/support.html
Yahoo! Groups Links









No virus found in this incoming message.
Checked by AVG - http://www.avg.com 
Version: 8.0.169 / Virus Database: 270.6.17/1655 - Release Date: 9/5/2008 
7:05 PM

   


--



  No virus found in this incoming message.
  Checked by AVG - http://www.avg.com 
  Version: 8.0.169 / Virus Database: 270.6.17/1655 - Release Date: 9/5/2008 
7:05 PM


[amibroker] Bar chart help

2006-04-25 Thread Tony Lei



Hi,

I am trying to plot this bar chart in the following manner. If
the close crosses above the MA, bar is green, otherwise it is
black. If close crosses below MA, bar is red, otherwise is
black. I am only seeing green bars and not red bars.

this is the code:

Any help is appreciated,

Thanks


SetChartOptions(0,chartShowArrows|chartShowDates);
_N(Title = StrFormat({{NAME}} - {{INTERVAL}} {{DATE}} Open %g, Hi %g,
Lo %g, Close %g (%.1f%%) {{VALUES}}, O, H, L, C, SelectedValue( ROC(
C, 1 ) ) ));

Plot ( C, Close, IIf (Cross (Close, Ref ( MA ( Close, 3),-3 )),
colorGreen,colorBlack), styleNoTitle | ParamStyle(Style) |
GetPriceStyle() ) ; 
Plot ( C, Close, IIf (Cross (Ref ( MA (Close,3),-3 ), Close ),
colorRed,colorBlack), styleNoTitle | ParamStyle(Style) |
GetPriceStyle() );








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



  Visit your group "amibroker" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  









Re: [amibroker] Bar chart help

2006-04-25 Thread Mark H





You need to combine two plot() into one, otherwise 
they just overlapping.

Plot(...IIF(..., colorGreen, IIF(..., colorRed, 
colorBlack)) ... ).

  - Original Message - 
  From: 
  Tony Lei 
  
  To: amibroker@yahoogroups.com 
  Sent: Tuesday, April 25, 2006 6:58 
  PM
  Subject: [amibroker] Bar chart help
  Hi,I am trying to plot this bar chart in the following 
  manner. If the close crosses above the MA, bar is green, otherwise it is 
  black. If close crosses below MA, bar is red, otherwise is black. 
  I am only seeing green bars and not red bars.this is the 
  code:Any help is 
  appreciated,ThanksSetChartOptions(0,chartShowArrows|chartShowDates);_N(Title 
  = StrFormat("{{NAME}} - {{INTERVAL}} {{DATE}} Open %g, Hi %g, Lo %g, Close %g 
  (%.1f%%) {{VALUES}}", O, H, L, C, SelectedValue( ROC( C, 1 ) ) ));Plot 
  ( C, "Close", IIf (Cross (Close, Ref ( MA ( Close, 3),-3 )), 
  colorGreen,colorBlack), styleNoTitle | ParamStyle("Style") | GetPriceStyle() ) 
  ; Plot ( C, "Close", IIf (Cross (Ref ( MA (Close,3),-3 ), Close ), 
  colorRed,colorBlack), styleNoTitle | ParamStyle("Style") | GetPriceStyle() 
  );





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







  




  
  
  YAHOO! GROUPS LINKS



  Visit your group "amibroker" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  









Re: [amibroker] Bar chart help

2006-04-25 Thread Tony Lei



thank youOn 4/25/06, Mark H [EMAIL PROTECTED] wrote:









You need to combine two plot() into one, otherwise 
they just overlapping.

Plot(...IIF(..., colorGreen, IIF(..., colorRed, 
colorBlack)) ... ).


  - Original Message - 
  
From: 
  Tony Lei 
  
  To: 
amibroker@yahoogroups.com 
  Sent: Tuesday, April 25, 2006 6:58 
  PM
  Subject: [amibroker] Bar chart help

  Hi,I am trying to plot this bar chart in the following 
  manner. If the close crosses above the MA, bar is green, otherwise it is 
  black. If close crosses below MA, bar is red, otherwise is black. 
  I am only seeing green bars and not red bars.this is the 
  code:Any help is 
  appreciated,ThanksSetChartOptions(0,chartShowArrows|chartShowDates);_N(Title 
  = StrFormat({{NAME}} - {{INTERVAL}} {{DATE}} Open %g, Hi %g, Lo %g, Close %g 
  (%.1f%%) {{VALUES}}, O, H, L, C, SelectedValue( ROC( C, 1 ) ) ));Plot 
  ( C, Close, IIf (Cross (Close, Ref ( MA ( Close, 3),-3 )), 
  colorGreen,colorBlack), styleNoTitle | ParamStyle(Style) | GetPriceStyle() ) 
  ; Plot ( C, Close, IIf (Cross (Ref ( MA (Close,3),-3 ), Close ), 
  colorRed,colorBlack), styleNoTitle | ParamStyle(Style) | GetPriceStyle() 
  );





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







  




  
  
  YAHOO! GROUPS LINKS



  Visit your group amibroker on the web.
  To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.




  















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



  Visit your group "amibroker" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  









[amibroker] Bar Chart Colors

2006-03-16 Thread garydixon90
Hi,

How do you change the bar chart colors in 4.7 so they are the same as 
candle sticks. ie if c  o I want green and the reverse for red. 

Thanks

Gary





 Yahoo! Groups Sponsor ~-- 
Try Online Currency Trading with GFT. Free 50K Demo. Trade 
24 Hours. Commission-Free. 
http://us.click.yahoo.com/RvFikB/9M2KAA/U1CZAA/GHeqlB/TM
~- 

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

 
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:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/