Can anyone write an EFS for to have one of the variables being an exponential moving average and one being a simple moving average.
Announcement
Collapse
No announcement yet.
Different type of oscillator
Collapse
X
-
ryanlangdon
You can easily do that using basicMAx2.efs which is available here
Set the study to plot as an indicator rather than in the price window and change the return statment to compute the subtraction between the two averages ie. in place of return new Array(vMA1..., vMA2...) you would write return (vMA1... - vMA2...)
The resulting plot will be an oscillator. At that point set the parameters of the averages to whatever you need.
Alex
-
ryanlangdon
Not off hand. Run a search for average* AND alert* and you should find some efs(s) written using the same basicMAx2 that will trigger alerts and may even generate strategy signals.
Regardless you should be able to easily create a strategy with the Formula Wizard based on the crossovers of two moving averages
Alex
Comment
Comment