Hi,
I have been trying to plot camrilla pivots, however, when I use PlotOHLC (I want line breaks), I can only plot in red color, despite giving green color. Can you help
_SECTION_BEGIN("Camrilla Pivots");
_N(DropBox=ParamList("Time","D|W|M"));
if(DropBox=="D")
{
DayH = TimeFrameGetPrice( "H", inDaily,-1 );
DayL = TimeFrameGetPrice( "L", inDaily,-1 );
DayC = TimeFrameGetPrice( "C", inDaily,-1 );
}
else if (DropBox=="W")
{
DayH = TimeFrameGetPrice( "H",inWeekly,-1 );
DayL= TimeFrameGetPrice( "L",inWeekly,-1 );
DayC = TimeFrameGetPrice( "C",inWeekly,-1 );
}
else if (DropBox=="M")
{
DayH = TimeFrameGetPrice( "H",inMonthly,-1 );
DayL= TimeFrameGetPrice( "L",inMonthly,-1 );
DayC = TimeFrameGetPrice( "C",inMonthly,-1 );
}
//............Camarilla pivots
H5 = ( DayH / DayL ) * DayC;
H4 = ( (DayH-DayL) * (1.1/2) ) + DayC;
H3 = ( (DayH-DayL) * (1.1/4) ) + DayC;
H2 = ( (DayH-DayL) * (1.1/6) ) + DayC;
H1 = ( (DayH-DayL) * (1.1/12) ) + DayC;
L1 = DayC - ( (DayH-DayL) * (1.1/12) );
L2 = DayC - ( (DayH-DayL) * (1.1/6) ) ;
L3 = DayC - ( (DayH-DayL) * (1.1/4) ) ;
L4 = DayC - ( (DayH-DayL) * (1.1/2) ) ;
L5 = DayC - ( H5 - DayC );
//PlotOHLC(H4,H4,H4,H4,"H4",colorBlue, styleCandle | styleNoLabel | styleNoTitle);
PlotOHLC(H4,H4,H4,H4,"H4",colorBrightGreen,styleCandle | styleNoLabel | styleNoTitle);
_SECTION_BEGIN("Price1");
SetChartOptions(0,chartShowArrows|chartShowDates);
_N(Title = StrFormat("{{NAME}} - {{INTERVAL}} {{DATE}} Open %g, Hi %g, Lo %g, Close %g (%.1f%%) {{VALUES}}", O, H, L, C, SelectedValue( ROC( C, 1 ) ) ));
Plot( C, "Close", ParamColor("Color", colorDefault ), styleNoTitle | ParamStyle("Style") | GetPriceStyle() );
_SECTION_END();