AFL Formula designing

#1
I Would like to know how to write an AFL with the following conditions.

1. It should detect a buy/sell signals when the Close (C) cross the MA(10).

2. When the Close price of a stock is above the MA in 180min,hourly,15min and when its cross 5min it should detect a buy signal.
 

SwingKing

Well-Known Member
#2
I Would like to know how to write an AFL with the following conditions.

1. It should detect a buy/sell signals when the Close (C) cross the MA(10).

2. When the Close price of a stock is above the MA in 180min,hourly,15min and when its cross 5min it should detect a buy signal.
Buy = Close > MA(Close, 10);
Sell = Close < MA(Close, 10);

if you apply this afl at different time frames, it will automatically adjust and give results accordingly.

Tc.
 
#3
Thanks for the reply raunak,

My question is detection of MA in Multiple time frame (i.e) when the close price is above MA in 180 min+hourly+15min and when it crosses MA in 5min it should detect a buy signal.
 

Similar threads