Thomas Ludwig wrote:
On Saturday 07 March 2009 10:29:46 Tomasz Janeczko wrote:

Yes calculation of complex formula in one pane and passing to other panes
is the simplest application.

TJ,

I'm a programming illiterate - would you or somebody else be so kind to provide a simple example how to do that exactly? Lets's say I want to plot an indicator in one pane and see its buy/sell signals/arrows in another.

Many thanks in advance!

Greetings,

Thomas

//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*);|




Reply via email to