I'd like to add the SMA indicator as a Method or Function within a main Script, because several reasons. As you must imagine that's not so easy as Cut & Paste, cause its variables ,out of Indicator environment, give errors. My goal is calling this method within my script a whenever you call the external SMA indicator
So would you please help me indicating me what must I change in the SMA script in order to put it as a Method/Function within my main Script ?
Thanks
Comment