Price Predict for Amibroker (AFL)
joewang12 almost 13 years ago Amibroker (AFL)
To predict tomorrow’s price based on velocity change.
Indicator / Formula
Copy & Paste Friendly
_SECTION_BEGIN("PrePrice");
// Joewang Predict price
//PrePrice=Ref(C,-1)+(Ref(C,-1)-Ref(C,-4)-Ref(C,-7)+Ref(C,-10))/6;
Price=Close
+(Close-Ref(Close,-1)-Ref(Close,-2)+Ref(Close,-3))/6
+(Ref(Close,-1)-Ref(Close,-2)-Ref(Close,-3)+Ref(Close,-4))/6
+(Ref(Close,-2)-Ref(Close,-3)-Ref(Close,-4)+Ref(Close,-5))/6
+(Ref(Close,-3)-Ref(Close,-4)-Ref(Close,-5)+Ref(Close,-6))/6
+(Ref(Close,-4)-Ref(Close,-5)-Ref(Close,-6)+Ref(Close,-7))/6;
xPrice=Ref(Price,-1);
Price=MA(Price,3);
xPrice=MA(xPrice,3);
Plot(Price,"Price",ParamColor("Price",colorcycle),styleLine);
Plot(xPrice,"xPrice",ParamColor("xPrice",colorcycle),styleLine|styleThick);
Plot(C,"Close",ParamColor("Candle",colorcycle),styleCandle);
_SECTION_END();8 comments
Leave Comment
Please login here to leave a comment.
Thanks a lot, a very interesting indicator.
To; jowwang12
good indicator
could you add buy & sell arrows at crossoveers
thanks
Dan – Member Wisestocktrader
@ dustyreagan
You could paste the following code at the end of the formula:
Thanks…
dear marcheur
Not working ur code. showing error.
thanks
Dear rumibepari
Should be working in ver. 5.50 . Could you please post the error message perhaps it can be helped.
This is the exact code that works fine for me in ver 5.50
hello everybody
which is tomorrows price in the graph blue or orange line
thanks