I would like to seek your support in developing an AFL for amibroker.
Explaination:
1.I need afl for SMA30 crossing over TMA20
* SMA- Simple moving avg or moving avg
*TMA- Triangular moving avg (Not triple expo moving avg which is termed as TEMA)
Triangular Moving Average Calculation
First, calculate the simple moving average (SMA):
SMA = (P1 + P2 + P3 + P4 + ... + PN) / N
Then, take the average of all the SMA values to get TMA values.
TMA = (SMA1 + SMA2 + SMA3 + SMA4 + ... SMAN) / N
2. At the point of Crossover the candle has to be green candle ..
I need to scan only green candles at crossovers
Request anyone to provide me an AFL
Explaination:
1.I need afl for SMA30 crossing over TMA20
* SMA- Simple moving avg or moving avg
*TMA- Triangular moving avg (Not triple expo moving avg which is termed as TEMA)
Triangular Moving Average Calculation
First, calculate the simple moving average (SMA):
SMA = (P1 + P2 + P3 + P4 + ... + PN) / N
Then, take the average of all the SMA values to get TMA values.
TMA = (SMA1 + SMA2 + SMA3 + SMA4 + ... SMAN) / N
2. At the point of Crossover the candle has to be green candle ..
I need to scan only green candles at crossovers
Request anyone to provide me an AFL