Simple Coding Help - No Promise.

jallanankit

Well-Known Member
How can I get the 14 periods RSI of the day high candle in exploration..
TF 5 min chart

I m not being able to do it..
Pls help!!
 

vijkris

Learner and Follower
Can any one help me in creating AFL for the following condition...

MA : 20 period on close (chart frame can be 5 min)
Buy: When close is above 20MA
Sell: When close is below 20MA
hi,
no need to specify timeframe in afl.

Code:
_SECTION_BEGIN("Price");
SetChartBkColor(colorBlack);
SetChartOptions( 0,chartShowArrows+ chartShowDates |   chartWrapTitle );
Layer = Param("Layer", 0, -5, 5, 1) ;

HiVolume = IIf(V > (2 * MA(V,10)), True, False); 
PlotShapes(shapeSmallCircle * HiVolume, IIf(C > O, colorRed, colorWhite), 0, (O+C)/2, 0);
ToolTip = "Open = " + O + "\nHigh = " + H + "\nLow = " + L + "\nClose = " + C ;



GraphXSpace=5;
_N(Title = StrFormat("{{NAME}} {{DATE}} {{INTERVAL}}: O=%1.2f, H=%1.2f, L=%1.2f, C=%1.2f, V=%1.0f\n{{VALUES}}", O, H, L, C, V));
Plot( C, "Close", ParamColor("Color", colorDefault ), styleNoTitle | ParamStyle("Style") | GetPriceStyle() ); 

MA20 = MA(C,20);
Plot(MA20,"ma20 close",ParamColor("ma color",colorOrange),styleLine|styleNoRescale);

Buy = C>MA20;
Sell = C<MA20;
Buy=ExRem(Buy,Sell);
Sell=ExRem(Sell,Buy);

PlotShapes(IIf(Buy, shapeSquare, shapeNone),colorGreen, 0, L, Offset=-40);
PlotShapes(IIf(Buy, shapeSquare, shapeNone),colorLime, 0,L, Offset=-50);                      
PlotShapes(IIf(Buy, shapeUpArrow, shapeNone),colorWhite, 0,L, Offset=-45); 
PlotShapes(IIf(Sell, shapeSquare, shapeNone),colorRed, 0, H, Offset=40);
PlotShapes(IIf(Sell, shapeSquare, shapeNone),colorOrange, 0,H, Offset=50);                      
PlotShapes(IIf(Sell, shapeDownArrow, shapeNone),colorWhite, 0,H, Offset=-45);
 
How can I get the 14 periods RSI of the day high candle in exploration..
TF 5 min chart

I m not being able to do it..
Pls help!!
AddColumn(RSIa( High, 12 ), "Rx");
 
Hi,
How to add sound alert to any afl so that it will give alert even when chart is no active ?
Hire a kid who will do the shouting for u.
 

bapu4

Well-Known Member
Hire a kid who will do the shouting for u.
ok, I dont have that smart kid,any way apart from the joke,What best can be done tell me? What I mean that I will open the programme but not the particular scrip because I dont know which scrip has the Alert < so atleast the list should display or something of that sort to notify I think I am clear enough now.
 
Last edited:

vijkris

Learner and Follower

bapu4

Well-Known Member
Last edited:

vijkris

Learner and Follower
Hi Vij,
Interacting after quite some time,Thanks a lot for that,a small quest. ,Do I have to keep window media programme open for this alert,I think, in any case my problem seems solved,I will come back in either cases.Thanx a lot again....
welcome.
no need to open anything else. ami has capability to play sounds..
 

Similar threads