Hi
I'm using this scan/explore afl on 5mt. data at the same time in
explore option i have mentioned hrly/daily/weekly trend in colors.
Exactly this is not my own afl. I have an idea - so I have copied
syntax(es) from various afl(s) to create this one.
I'm getting results using this afl.
Is this need any modifications?
And another thing is i wish to display the macd values for various
timeframes i.e., hourly/daily/weekly. How to get that values into this
afl explore option.
If this needs any modifications kindly tell me what to do?
Thank you...
Ajay
Buy = Cross (MACD(), Signal());
Sell = Cross(Signal(),MACD());
Filter = Buy OR Sell;
//AddColumn(Buy, "Buy", 1, colorGreen);//
//AddColumn(Sell, "sell", 1, colorRed);//
AddColumn(C, "close", 1.2);
AddColumn( 32, "buy", formatChar, colorDefault,
IIf(Filter && Buy,colorGreen,colorDefault) );
AddColumn( 32, "sell", formatChar, colorDefault,
IIf(Filter && Sell,colorRed,colorDefault) );
TimeFrameSet(inHourly);
MACDb = (MACD())>Signal();
MACDs = (MACD())<Signal();
TimeFrameRestore();
Macdb = TimeFrameExpand(MACDb,inHourly);
MACDs = TimeFrameExpand(MACDs,inHourly);
Filter1 = MACDb OR MACDs;
AddColumn( 32, "Hrly", formatChar, colorDefault,
IIf(Filter && macdb,colorGreen,colorDefault) );
AddColumn( 32, "Hrly", formatChar, colorDefault,
IIf(Filter && macds,colorRed,colorDefault) );
TimeFrameSet(inDaily);
MACDb = (MACD())>Signal();
MACDs = (MACD())<Signal();
TimeFrameRestore();
Macdb = TimeFrameExpand(MACDb,inDaily);
MACDs = TimeFrameExpand(MACDs,inDaily);
Filter1 = MACDb OR MACDs;
AddColumn( 32, "Daily", formatChar, colorDefault,
IIf(Filter && macdb,colorGreen,colorDefault) );
AddColumn( 32, "Daily", formatChar, colorDefault,
IIf(Filter && macds,colorRed,colorDefault) );
TimeFrameSet(inWeekly);
MACDb = (MACD())>Signal();
MACDs = (MACD())<Signal();
TimeFrameRestore();
Macdb = TimeFrameExpand(MACDb,inWeekly);
MACDs = TimeFrameExpand(MACDs,inWeekly);
Filter1 = MACDb OR MACDs;
AddColumn( 32, "Wkly", formatChar, colorDefault,
IIf(Filter && macdb,colorGreen,colorDefault) );
AddColumn( 32, "Wkly", formatChar, colorDefault,
IIf(Filter && macds,colorRed,colorDefault) );
AlertIf( Buy, "", "launching ext application", 3);
===
end
===