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

[amibroker] Re: Paint body of candle



PureBytes Links

Trading Reference Links

Hi,

I've tried both suggestions, but the problem is that I want the 
original candle to be visible also.
For example: supposing that the close<open I get a red candle. But 
according to my criteria this candle is green. So I would like to 
have a green thick vertical line inside the red "original" body of 
the candle.
I also tried with 
condition=....
PlotOHLC(O,Max(O,C),Min(O,c),C,"Paintbar",IIF
(condition,colorgreen,colorred),styleare|styleownscale); which 
doesn't work.
What I would like is something like a thinner body inside of the 
original body of the candle, so that I can see the original color of 
the candle(if it is an up or down cande) but also the color of the 
vertical line inside the original candle. 
Can this bo done possible?
If you need a printscreen of what I'm describing please tell me.
This is done in Metatrader and I'm trying to convert this into AB.

 thanks


--- In amibroker@xxxxxxxxxxxxxxx, "khaleel_sk" <indbears@xxx> wrote:
>
> Try this
> Impulse_UP= RSI(14)<20;
> Impulse_Down= RSI(14) >80;
> bar_kol=IIf(impulse_UP,colorGreen,colorRed);
> Plot(Close," Close",bar_kol,styleCandle| styleThick  );
> 
> --- In amibroker@xxxxxxxxxxxxxxx, "pmxgs" <pmxgs@> wrote:
> >
> > Hi,
> > 
> >  I would like to "paint" the body of a candle if a certain 
> criteria is 
> > met. By painting I mean, having a line inside of the body of the 
> > candle in a way that I can see the original color of the candle 
> and at 
> > the same time I can also see the line painted inside of the 
candle.
> > Should I use the PlotOHLC function or is there another function 
> more 
> > suited to this? 
> > For example:
> > Greenbar=RSI(14)<20
> > Redbar=RSI>80
> > Then I would like to paint the innerside of the candle body in 
> gree or 
> > red depending on the above condition, in a way that the original 
> color 
> > of the candle is also visible. My goal is to draw a line inside 
> the 
> > candle that is not as thick as the original candle. 
> > I hope this is clear enough.
> > Any help is appreciated.
> > 
> > thanks
> >
>




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

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/amibroker/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/amibroker/join
    (Yahoo! ID required)

<*> To change settings via email:
    mailto:amibroker-digest@xxxxxxxxxxxxxxx 
    mailto:amibroker-fullfeatured@xxxxxxxxxxxxxxx

<*> To unsubscribe from this group, send an email to:
    amibroker-unsubscribe@xxxxxxxxxxxxxxx

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