Hello guys, is there someone that have an EL code to solve the project
( or forecast), price future direction?
Example below i have a classic moving average with "displace" value;
Inputs: Price(Close) , Length(20), Displace(10) ;
If Displace >= 0 OR CurrentBar > AbsValue(Displace) Then Begin
Plot1[Displace] (AverageFC( Price, Length), "SimpAvg1");
{Alert Criteria}
IF Price < Plot1 AND Plot1 < Plot1[1] AND Plot1[1] > Plot1[2] Then
Alert("The Moving Average has just changed direction and is now
bullish")
Else
If Price > Plot1 AND Plot1 > Plot1[1] AND Plot1[1] < Plot1[2] Then
Alert("The Moving Average has just changed direction and is now
bearish");
If I have a Simple moving average with 20 periods and I insert the
displace value of 10, I have a MA centered but (of course) I have
always the latest bars discoveries. Is it possible to solve this
problem with a forecast until the last bar ?
I hope that I explained well my question.
Thanks for your help!
Paolo
( or forecast), price future direction?
Example below i have a classic moving average with "displace" value;
Inputs: Price(Close) , Length(20), Displace(10) ;
If Displace >= 0 OR CurrentBar > AbsValue(Displace) Then Begin
Plot1[Displace] (AverageFC( Price, Length), "SimpAvg1");
{Alert Criteria}
IF Price < Plot1 AND Plot1 < Plot1[1] AND Plot1[1] > Plot1[2] Then
Alert("The Moving Average has just changed direction and is now
bullish")
Else
If Price > Plot1 AND Plot1 > Plot1[1] AND Plot1[1] < Plot1[2] Then
Alert("The Moving Average has just changed direction and is now
bearish");
If I have a Simple moving average with 20 periods and I insert the
displace value of 10, I have a MA centered but (of course) I have
always the latest bars discoveries. Is it possible to solve this
problem with a forecast until the last bar ?
I hope that I explained well my question.
Thanks for your help!
Paolo