PureBytes Links
Trading Reference Links
|
Your code works for me. You are plotting a constant value of 2 which just
changes colors. This plots a straight line way down on the bottom of the
chart since due to your chosen scale.
Terry
--
> 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 );
>
>
>
>
> Check AmiBroker web page at:
> http://www.amibroker.com/
>
> Check group FAQ at:
> http://groups.yahoo.com/group/amibroker/files/groupfaq.html
>
>
> Yahoo! Groups Sponsor
>
> ADVERTISEMENT
>
> <http://us.ard.yahoo.com/SIG=129i0s4cd/M=295196.4901138.6071305.3001176/D=grou
> ps/S=1705632198:HM/EXP=1095238401/A=2128215/R=0/SIG=10se96mf6/*http://companio
> n.yahoo.com>
>
>
> 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
> <mailto:amibroker-unsubscribe@xxxxxxxxxxxxxxx?subject=Unsubscribe>
> *
> * Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service
> <http://docs.yahoo.com/info/terms/> .
>
--
Terry
[Non-text portions of this message have been removed]
------------------------ 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/
|