Hi

I'm looking for a stock is in it's daily uptrend say  macd > signal line
and whenever the stock has completed it'c correction on 30mt. charts the
macd has crosses it's signal line. I want to scan that macd > signal
line in 30mt. charts when the daily macd must be above it's signal line.
And the reverse is true for sell.

for instance  buying  i'am using this afl :


  TimeFrameSet(inDaily);
  MACDb = (MACD())>Signal();
   TimeFrameRestore();

  Filter = TimeFrameExpand(MACDb,inDaily) AND Cross(MACD(),Signal());
  TimeFrameRestore();

Buy = Filter;

  AddColumn(C,"close",1.2);

for instance selling i'm using this afl:


  TimeFrameSet(inDaily);
  MACDs = (MACD())<Signal();


  TimeFrameRestore();

  Filter = TimeFrameExpand(MACDs,inDaily) AND Cross(Signal(),MACD());
  TimeFrameRestore();

Sell = Filter;

  AddColumn(C,"close",1.2);

How to combine these two in one afl scanning code. I have tried but
failed.

Thanks in advance for clubbing afl.

Ajay


Reply via email to