I am using two exponential moving average(EMA) for stock trading. I use two EMAs, 5-day EMA and 10-day EMA and the formula for each EMA is as follow:
multiplier = (2/time period+1)
EMA = (current price - previous EMA) * multiplier + previous EMA
for example the multiplier for 5-day EMA is equal to: 2/6.
Now what I use is the difference in percentage between the two EMAs for example if 5-day EMA is 105 and 10-day EMA is 100 the difference is 5 percent.
My problem is that I want to find the next price (that is tomorrow's price) that keeps the difference of the two EMAs. For example if the difference of the two EMAs for today is 5 percent, I want to find tomorrow's price that keeps the difference at 5 percent.