Hi
Can you use PlotOHLC to plot a second chart in the lower part of a window?
The normal Plot function as in the last line the code will plot the RSI line
but the PlotOHLC doesn't seem to work?
Any help would be appreciated!!!
Thanks
Peter
// Plots main chart
Plot( C, "Close", ParamColor("Color", colorBlack ), styleNoTitle |
ParamStyle("Style", styleCandle, maskAll) );
// Heiken-Ashi
HaClose = (O+H+L+C)/4;
HaOpen = AMA( Ref( HaClose, -1 ), 0.5 );
HaHigh = Max( H, Max( HaClose, HaOpen ) );
HaLow = Min( L, Min( HaClose, HaOpen ) );
R = RSI();
PH = 20; // Height
of second plot in percent pane height
Plot2Height = 100/PH*100;
GraphXSpace = 5*PH;
// Plots second chart in lower 20% of window
PlotOHLC( HaOpen, HaHigh, HaLow, HaClose,"Heiken-Ashi Candles ", colorBlack,
styleCandle|styleOwnScale,0,Plot2Height);
//Plot(R,"",colorRed,styleLine|styleOwnScale,0,Plot2Height);