This task can be accomplished creating a series of the lsma study through the efsExternal() function. Then pass this series as the source to the sma() like below.
Jason K.
Project Manager eSignal - an Interactive Data company
Momentum
The example Jason provided is a self contained script. You need to copy it into a new formula window, add preMain() with the required statements (ie setPriceStudy(true), setStudyTitle(myStudy), etc) and save the formula in the same folder where you have the woodies_lsma.efs.
To simplify the task of writing the formula you could use the efs template which is available here. In the same thread you will also find a brief example of how to add user defined parameters.
Alex
Momentum
That is only because you are not familiar with the language. Perhaps you may want to dedicate some time to reading the Guides and the new Tutorials on EFS that are available in the EFS KnowledgeBase
Alex
Comment