MA crossovers
In his article Anticipating Moving Average Crossovers, Dimitris Tsokakis explains how to analyze and apply the MA crossover behavior to financial instruments, as well as how to reduce the lag of the moving average crossovers.
Tradecision's Indicator Builder enables you to create a custom indicator using the above method.
The following is the code for tomorrow's close (TC) custom indicator:
input
p:"P",20;
k:"K",30;
end_input
var
MAp:=SMA(C,p);
MAk:=SMA(C,k);
end_var
return (p*(k-1)*SMA(C,k-1)-k*(p-1)*SMA(c,p-1))/(k-p);
To insert the closing price of NASDAQ 100 into a subchart, one needs to create a custom indicator using the following expression:
return External("C","NASDAQ-100");
|
Download to import into Tradecision. 
How to use this indicator in Tradecision:
- Click Download.
- Save this indicator in a safe location on your hard drive.
- Open Tradecision and in the Tools menu click Indicator Builder.
- In the Indicator Builder dialog, click Import, locate the saved file and then click OK.
The indicator will be added to the Custom Indicators list.
|