_SECTION_BEGIN("Vol-Trend");
uptrend=PDI(20)>MDI(10)AND Signal(29)<MACD(13);
downtrend=MDI(10)>PDI(20)AND Signal(29)>MACD(13);
Plot( 15, /* defines the height of the ribbon in percent of pane width */"",
IIf( uptrend, colorGreen, IIf( downtrend, colorRed, 0 )), /* choose color */
styleOwnScale|styleHistogram+styleThick|styleNoLabel, -0.5, 100 );
Plot( 16,"",colorBlack,styleOwnScale|styleArea|styleNoLabel,-0.5, 100 );
uptrend=PDI()>MDI() AND MACD()>Signal() AND (ADX()>20);
downtrend=MDI()>PDI() AND Signal()>MACD();
Buy=uptrend;
Sell=Cross(Signal(),MACD()) OR Cross(MDI(),PDI());
Short=downtrend;
Cover=Cross(MACD(),Signal()) OR Cross(PDI(),MDI());
_SECTION_END();
_SECTION_BEGIN("Price");
GraphXSpace=25;
SetChartOptions(0,chartShowArrows|chartShowDates);
_N(Title = StrFormat("{{NAME}} - {{INTERVAL}} {{DATE}} Open %g, High %g, Low %g, Close %g (%.1f%%) {{VALUES}}", O, H, L, C, SelectedValue( ROC( C, 1 ) ) ));
Plot( C, "Close", IIf( uptrend, colorGreen, IIf( downtrend, colorRed, 0 )), styleNoTitle | ParamStyle("Style") | GetPriceStyle() );
_SECTION_END();