Plotting shapes in another window

#1
I have looked for two days in the help files for a way to take plot shapes and areas from the indicator pane and place them in the chart pane without having to insert the whole code in the chart panel and hashing out everything else

Does anyone have a guide or reference material on this? Is it even possible.
Thanks in advance.
 
#3
I have looked for two days in the help files for a way to take plot shapes and areas from the indicator pane and place them in the chart pane without having to insert the whole code in the chart panel and hashing out everything else

Does anyone have a guide or reference material on this? Is it even possible.
Thanks in advance.
hi minitrader
here it is

Code:
//Pane 1:
indicator = CCI();
Buy = Cross(indicator, 0);
StaticVarSet("signals", Buy);
Color = IIf(Buy, colorGreen, colorLightGrey);
Plot (indicator, "CCI", Color);
PlotGrid(0, colorRed);


//Pane 2:
sig = StaticVarGet("signals");
Color = IIf(sig, colorGreen, colorLightGrey);
Plot (C, "price", Color, styleBar);
PlotShapes(sig*shapeUpArrow,colorBlue,0,L,0);
// StaticVarRemove("signals"); 
//=== 2charts====  END
 
Last edited:
#4
Ah Ha...lightbulb goes off :thumb:

You have saved me many hours of more searching
I can't believe how hard I looked and now the logic seems so simple I feel twice as dumb as I felt last night after trying for days...LOL

Thanks again
 

Similar threads