_SECTION_BEGIN("Price Chart");
bgTop = ParamColor("BgTop", colorBlack);
bgBot = ParamColor("BgBottom", colorBlack);
SetChartBkGradientFill( bgTop ,bgBot, colorLightGrey);
SetChartOptions(0,chartShowArrows|chartShowDates);
TheMarketKid = 100*(High - Low)/( High + Low )/2;
_N(Title = StrFormat("{{NAME}} - {{INTERVAL}} {{DATE}} Open=%g, High=%g, Low=%g, Close=%g (%.2f%%) {{VALUES}}", O, H, L, C, TheMarketKid ));
Plot( C, "Close", ParamColor("Color", colorBlack ), styleNoTitle | ParamStyle("Style") | GetPriceStyle() );
_SECTION_END();
_SECTION_BEGIN("Price Chart");
bgTop = ParamColor("BgTop", colorBlack);
bgBot = ParamColor("BgBottom", colorBlack);
SetChartBkGradientFill( bgTop ,bgBot, colorLightGrey);
SetChartOptions(0,chartShowArrows|chartShowDates);
TheMarketKid = 100*(High - Low)/( High + Low )/2;
_N(Title = StrFormat("{{NAME}} - {{INTERVAL}} {{DATE}} Open=%g, High=%g, Low=%g, Close=%g (%.2f%%) {{VALUES}}", O, H, L, C, TheMarketKid ));
Plot( C, "Close", ParamColor("Color", colorBlack ), styleNoTitle | ParamStyle("Style") | GetPriceStyle() );
_SECTION_END();
ThisTF = ParamList("TimeFrame", "Daily|Weekly|Monthly");
ThisPrice = ParamList("Price", "O|H|L|C", 3);
ThisColor = ParamColor("Color", colorYellow);
ThisStyle = ParamStyle("Style", styleNoLabel|styleDots|styleNoLine, maskAll);
switch (ThisTF)
{
case "Monthly":
TF = inMonthly;
ThisTitle = "M_";
break;
case "Weekly":
TF = inWeekly;
ThisTitle = "W_";
break;
default:
TF = inDaily;
ThisTitle = "D_";
break;
}
ThisTitle = ThisTitle + ThisPrice;
ThisPlot = TimeFrameGetPrice(ThisPrice, TF);
Plot(ThisPlot, ThisTitle, ThisColor, ThisStyle);
ThisTF = ParamList("TimeFrame", "Daily|Weekly|Monthly");
ThisPrice = ParamList("Price", "O|H|L|C", 3);
ThisColor = ParamColor("Color", colorYellow);
ThisStyle = ParamStyle("Style", styleNoLabel|styleDots|styleNoLine, maskAll);
switch (ThisTF)
{
case "Monthly":
TF = inMonthly;
ThisTitle = "M_";
break;
case "Weekly":
TF = inWeekly;
ThisTitle = "W_";
break;
default:
TF = inDaily;
ThisTitle = "D_";
break;
}
ThisTitle = ThisTitle + ThisPrice;
ThisPlot = TimeFrameGetPrice(ThisPrice, TF);
Plot(ThisPlot, ThisTitle, ThisColor, ThisStyle);
Thread starter | Similar threads | Forum | Replies | Date |
---|---|---|---|---|
T | Seek AFL coding expertise | Technical Analysis | 24 | |
HELLO WORLD AFL, Expert Help Needed | AmiBroker | 3 | ||
P | to all genuine Experts did I miss any good afl ? | AmiBroker | 1 | |
T | Calling all AFL Experts!! | AmiBroker | 8 | |
S | AFL expert plz help Error 702. Missing short/cover variable assignments | AmiBroker | 2 |