I have script A, which calls script B, similar to how you can call a different indicator script
double mySMA = SMA(5)[0];
So I created a method in script B
// control printing output private void PrintThis(string PrintString) { // if this indicator is hosted (called by) some other indicator, the PanelUI will be 0 // this prevents printing to the output window if this script (child) is called from inside another script (ie parent) // only print if PanelUI > 0 if (this.PanelUI > 0) { Print(this.Name +", "+ PrintString); } }