Hi - I'm looking for an EFS formula that can give me a dot or visible alert whenever a moving average changes its value by a set amount over a set number of bars. I don't want to see this as a line or a histogram, etc. but as a simple visual cue that shows me when my set threshold has been exceeded.
So the parameters I would like to control as variables include which MA I want (simple, exp., weighted); source (open, close, HL/2), time period for the MA, and then parameters for how many bars are in the difference calculation, and what the threshold would be before an alert would be issued.
The difference calculation is just a simple subtraction: how many ticks different is the moving average right now from what it was x bars ago.
For instance, if I set my theshold to 7 and my number of bars to 4 - if my moving average is going along and the difference of its value now is only 3 ticks off from what is was 4 bars ago - no alert; if the difference from what it is in the current bar to what it was 4 bars ago is now 8 - a dot or alert is generated on screen.
I'd REALLY appreciate help from anyone willing to program this formula for me, and would gladly pay for the help too!
I do know some Javascript, but have never before programmed efs, but might be able to put it together if that's the only way to go... but at this point would love to be able to just pop an efs in and roll with it.
Many many thanks!
Mindy
So the parameters I would like to control as variables include which MA I want (simple, exp., weighted); source (open, close, HL/2), time period for the MA, and then parameters for how many bars are in the difference calculation, and what the threshold would be before an alert would be issued.
The difference calculation is just a simple subtraction: how many ticks different is the moving average right now from what it was x bars ago.
For instance, if I set my theshold to 7 and my number of bars to 4 - if my moving average is going along and the difference of its value now is only 3 ticks off from what is was 4 bars ago - no alert; if the difference from what it is in the current bar to what it was 4 bars ago is now 8 - a dot or alert is generated on screen.
I'd REALLY appreciate help from anyone willing to program this formula for me, and would gladly pay for the help too!
I do know some Javascript, but have never before programmed efs, but might be able to put it together if that's the only way to go... but at this point would love to be able to just pop an efs in and roll with it.
Many many thanks!
Mindy
Comment