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

Re: [amibroker] Chart prices



PureBytes Links

Trading Reference Links

Once again operator error. I was using a formula to create Heikin Ashi 
style candles but it needs some more polishing apparently.
First of all it gives prices that are more than 1 decimal (which is 
annoying) and worse it give prices that are up to 7 ticks
away from the market. Would someone mind doing a little math magic and 
tweaking it.

thanks

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 ) );

PlotOHLC( HaOpen, HaHigh, HaLow, HaClose, "Modified " + Name(), 
ParamColor( " Candle Color", colorCycle ), styleCandle );




Content-Description: "AVG certification"
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.5.432 / Virus Database: 268.15.18/585 - Release Date: 12/13/2006 11:49 AM