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

[amibroker] ribbon



PureBytes Links

Trading Reference Links

Hi,

I like to plot a ribbon below the price chart with the following
code but nothing happens.
What is wrong?

// First Screen (Get Trend by weekly MACD Histogram)
TimeFrameSet(inWeekly);
aMACD = MACD();
aSignal = Signal();
dTrend[0] = 0; uTrend[0] = 0;
for ( n = 1; n < BarCount; n++ ) {
  m = n - 1;
  dTrend[n] = ( aMACD[n] - aSignal[n] ) < ( aMACD[m] - aSignal[m] );
  uTrend[n]  = ( aMACD[n] - aSignal[n] ) > ( aMACD[m] - aSignal
[m] ); }
TimeFrameRestore();
uTrend = TimeFrameExpand(uTrend,inWeekly,expandFirst);
dTrend = TimeFrameExpand(dTrend,inWeekly,expandFirst);
Plot( 2,"Ribbon",IIf( uTrend, colorGreen, IIf( dTrend, colorRed, 
0 )),
      styleOwnScale|styleArea|styleNoLabel, -0.5, 100 );




------------------------ Yahoo! Groups Sponsor --------------------~--> 
$9.95 domain names from Yahoo!. Register anything.
http://us.click.yahoo.com/J8kdrA/y20IAA/yQLSAA/GHeqlB/TM
--------------------------------------------------------------------~-> 

Check AmiBroker web page at:
http://www.amibroker.com/

Check group FAQ at: http://groups.yahoo.com/group/amibroker/files/groupfaq.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:
    amibroker-unsubscribe@xxxxxxxxxxxxxxx

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