need afl for hourly,5min,30min gainer and looser by %

rinku4142

Active Member
#1
Hi
i need which can scan hourly,5min,30min gainer and looser by %
thank you in advance:thumb:
 

rinku4142

Active Member
#3
anybody is up to help with this afl?
 

rinku4142

Active Member
#4
on daily chart we can use quick market review to see gainer and looser by % but it doesn't work with intraday chart and shorter time frame
 

casoni

Well-Known Member
#5
Hello,
some thing like this ??

 

rinku4142

Active Member
#6
yes kindly attach afl thanks in advance
 

casoni

Well-Known Member
#7
Hello,
here's the code.
//% chg in mtf
TimeFrameSet(inDaily);
diffd = (C / Ref(C,-1))*100-100;
TimeFrameRestore();
diffd1=TimeFrameExpand(diffd,inDaily);

TimeFrameSet(inHourly);
diffh = (C / Ref(C,-1))*100-100;
TimeFrameRestore();
diffh1=TimeFrameExpand(diffh,inHourly);

TimeFrameSet(in15Minute*2);
diff30 = (C / Ref(C,-1))*100-100;
TimeFrameRestore();
diff30a=TimeFrameExpand(diff30,in15Minute*2);

TimeFrameSet(in15Minute);
diff15 = (C / Ref(C,-1))*100-100;
TimeFrameRestore();
diff15a=TimeFrameExpand(diff15,in15Minute);

TimeFrameSet(in5Minute);
diff5 = (C / Ref(C,-1))*100-100;
TimeFrameRestore();
diff5a=TimeFrameExpand(diff5,in5Minute);
Plot(C,"",47,128);
Filter=1;
AddColumn(diffd1,"daily chg",1.2, textcolor=IIf( Ref(C,- 1)>C,colorGreen,colorRed)) ;
AddColumn(diffh1,"60m chg",1.2, textcolor=IIf( Ref(C,- 1)>C,colorGreen,colorRed)) ;
AddColumn(diff30a,"30m chg",1.2, textcolor=IIf( Ref(C,- 1)>C,colorGreen,colorRed)) ;
AddColumn(diff15a,"15 chg",1.2, textcolor=IIf( Ref(C,- 1)>C,colorGreen,colorRed)) ;
AddColumn(diff5a,"5m chg",1.2, textcolor=IIf( Ref(C,- 1)>C,colorGreen,colorRed)) ;
 
#8
hi ,
some one can make afl for me for intraday 10 min chart real time data from pib to amibroker
what i want
1. sma 5,6 crossover buy/sell (savant sir system)
here is another post of Savant sir where he mentions his system.



a) SMA (Simple Moving Average) (Close, 5) (Colour Green or Red)
b) SMA (Simple Moving Average) (Close, 6) (Colour Black)
c) BB (Bollinger Band) (9, 2) & Select SMA If The Option Is Available

Once You Have Got All The Above, You Are In Business...

Just Study The Crossovers Of SMAs 5 Over 6 & Vice Versa, & Notice How The Price Reacts After The Crossovers, Nothing Very Complicated, At The Same Time Very very Powerful System.


SMA5 & SMA6 Crossover On EOD Is Quite Clear But On Intraday If It Is Not Clear Change It To 3 & 5 or 4 & 6

BB 9,2 If On EOD It Is Pierced On The Upside, One Needs To Be Careful Cause One Of These Scenarios Will Happen

a) It Pushes Up More & Comes Down

b) It Starts Retracing Without Going Up

c) If The Market In General Is Extremely Bullish & It May Keep Climbing For A Few Days, But One Thing You Can Be Sure That It Will Come Down Just As Heavily As It Went Up....Similarly Even If The Market Sentiment Is Bad & Bottom BB Is Pierced, Quite Possibly It Will Move Up The Next Day. On An Intraday Chart If See The BB Getting Pierced One Have A Few Quick Bonus Trades....But Keep In Mind To Keep The 3 or 5 Min Chart Open For It.
a) If Bottom Is Pierced & You Are Long Then Exit On The Second Consecutive Red Candle or Bar

b) If Top Is Pierced & You Are Short, Exit You On The Second Consecutive Green Candle or Bar.
 

rinku4142

Active Member
#9
thanks for the afl but it scans previous day data instead of latest closing data see the image when mphasis current day closing is up 10% the afl is showing up only 4% which happened one day before
 
Last edited:

Similar threads