Hi Dbwyatt
Thanks for the reply, adding one more line  of " Plot(C,"",colorBlack, 
styleCandle); "  as the first line in your codes, that perfectly solved my 
question.


best regards/ huanyan 


  ----- Original Message ----- 
  From: dbwyatt_1999 
  To: [email protected] 
  Sent: Friday, May 22, 2009 8:47 AM
  Subject: [amibroker] Re: Is it possible to chart this in Amibroker ?





  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 [email protected], "huanyanlu" <huanyan2...@...> 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
  >



  
-- 
我正在使用免费版 <a href="http://www.spamfighter.com/len";>SPAMfighter</a>
我们是一个拥有五百六十万用户的与垃圾邮件作战的社区。
SPAMfighter 迄今已经帮我阻止了 3486 垃圾邮件。
在这里下载 SPAMfighter: http://www.spamfighter.com/len

专业版本没有上述信息

Reply via email to