DYO: PriceFinder for Moving Average crossing
|
Q: I'm trying to extrapolate when a 20-day SMA (but it could be any MA) will hit a price target (let's say I input a floor pivot value (R1)). Is there a feature available or do I have to use DYO (and could you show me an example?).
A: I assume you are seeking the price when a Study would reach a certain value. This can be done with the Price Finder features in a DYO. See this example
The Red line that is plotted is the price that is needed to make the Average plotted in blue reach above the Black line at 1297. When the Blue line is already above the black line, the Red line does not plot. And when the blue line is far away from the black line a huge price is needed to recover and thus the Red line is off screen above the top of the chart.
Set your logic so a Boolean flag represents the condition such as our Line C. Then add a Line D with the test to make the Flag go True. In our case Line C write the test result in GV [3] for Line D to test whether it is True or False.
Last modified 1/29/08 11:27 AM
|