PureBytes Links
Trading Reference Links
|
It's not perfect, but maybe a starting point. You could use TimeFrame functions with the PlotOHLC function using styleCloud:
tfSec = in5Minute;
TimeFrameSet(tfSec);
dopen = O;
dhigh = H;
dlow = L;
dclose = C;
TimeFrameRestore();
dopen2 = TimeFrameExpand(dopen,tfSec, expandFirst);
dhigh2 = TimeFrameExpand(dhigh,tfSec, expandFirst);
dlow2 = TimeFrameExpand(dlow,tfSec, expandFirst);
dclose2 = TimeFrameExpand(dclose,tfSec, expandFirst);
dbodytop = Max(dopen2,dclose2);
dbodybot = Min(dopen2,dclose2);
// Plot higher timeframe candle body, color based on close up or down.
PlotOHLC(dbodytop,dbodytop,dbodybot,dbodybot,"tfSec",IIf(dopen2 < dclose2, colorGreen,colorOrange),styleCloud);
// Plot higher timeframe candle top wick.
PlotOHLC(dbodytop,dhigh2,dbodytop,dhigh2,"twick",colorLightBlue,styleCloud);
// Plot higher timeframe candle bottom wick.
PlotOHLC(dbodybot,dbodybot,dlow2,dlow2,"bwick",colorLightBlue,styleCloud);
Regards,
David
--- In amibroker@xxxxxxxxxxxxxxx, "huanyanlu" <huanyan2000@xxx> wrote:
>
> In one minute candlestick chart, also showing the 5-minute candlesticks. 5-minute candlesticks are wider than one minuite candlesticks, each 5-minuite candlesticks engulfing 5 one-minuite bars.
>
> The challenge is , both M1 and M5 candlesticks showing clearing, with M5 color paler than M1 bars , since this is mainly a M1 chart.
>
>
> Is Amibroker ablt to do this ? Which AFL function to use ?
>
> thanks/ huanyan
>
------------------------------------
**** 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/
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/
|