Amibroker users plz advice

#1
I have searched all softwares, spider iris,falcon,metastock, amibroker, and found that least priced is AMIBROKER, is it really good? and useful like any other? pls advice
 
#4
Need Amibroker AFL for plotting stop loss

Hello guys i am not so good in writing afl hence needed some expert or pro here to help me .

I trade on 1 minute chart on Nifty and hence need an afl wich plots trailing sl line of 10 points , shud be green wen below stock and red above.
And if possible it shud prompt for no. points.
 
#5
Re: Need Amibroker AFL for plotting stop loss

Hello guys i am not so good in writing afl hence needed some expert or pro here to help me .

I trade on 1 minute chart on Nifty and hence need an afl wich plots trailing sl line of 10 points , shud be green wen below stock and red above.
And if possible it shud prompt for no. points.
A little detail, maybe some sketch. trailing sl means stoploss:right??
 
#6
TRY This

_SECTION_BEGIN("Ensign Volatility Stop");
// Ensign Volatility Stop
// get the multiple of 9 period EMA of ATR_Ensign

k=Param("multiplication factor", 1,0.5,5,0.1);
period=k*9;

VS_raw = 2.5 * EMA(ATR(1), period);

// for longs, VS line is below price

loline = VS_below_price = HHV(Close, period) - VS_raw;

// for shorts, VS line is above price

hiline = VS_above_price = LLV(Close, period) + VS_raw;

between = IIf (C < hiline AND C > loline, 1, 0);

up = IIf(C > hiline OR (H > Ref(H, -1) AND H > hiline), 1, 0);

dn = IIf(C < loline OR (L < Ref(L, -1) AND L < loline), 1, 0);

upcond = IIf(between AND BarsSince(up) < BarsSince(dn) , 1, 0);

dncond = IIf(between AND BarsSince(dn) < BarsSince(up) , 1, 0);

upline = IIf(up OR upcond, loline, Null);

dnline = IIf(dn OR dncond, hiline, Null);

Plot(C, "", colorLightGrey, styleBar);

Plot(upline, "", colorGreen, styleStaircase) ;

Plot(dnline, "", colorRed, styleStaircase) ;
Buy=upline;
Sell=dnline;
Buy=ExRem(Buy,Sell);
Sell=ExRem(Sell,Buy);
PlotShapes(Buy*shapeUpArrow,colorGreen);
PlotShapes(Sell*shapeDownArrow,colorRed);


/**** END ****/

_SECTION_BEGIN("Background");
SetChartOptions(0,chartShowArrows|chartShowDates);
if( ParamToggle("Tooltip shows", "All Values|Only Prices" ) )
{
ToolTip=StrFormat("Open: %g\nHigh: %g\nLow: %g\nClose: %g
(%.1f%%)\nVolume: "+NumToStr( V, 1 ), O, H, L, C, SelectedValue( ROC( C, 1
)));
}

SetChartBkColor(ParamColor("Outer panel color ",colorBlack)); // color of outer border
SetChartBkGradientFill( ParamColor("Inner panel color upper half",colorDarkTeal),
ParamColor("Inner panel color lower half",colorBlack)//color of inner panel
,ParamColor("behind Text Color", colorRed));
_SECTION_END();
 
#7
Thnx Mr. Piyush for the AFL u pasted.
It is almost what i wanted but instead of multification factor can you add points ? Like instead of Param("multiplication factor", 1,0.5,5,0.1) can you add Param("Points",10,5,50,1).
And whenever it crosses the stock it shud turn color and plot any arroq or circle as i have given.
I think it will give errors if i run this on small scrips of 10-20 rs but i only need it for Nifty :)
[/URL]
[/IMG]
 
Last edited:
#9
Hi friedns,

I want to change these support and Resistance color.
I want support color is green and resistance color is red.
If you can pls try these.

_SECTION_BEGIN("Support_and_Resistance");
/* SUPPORT AND RESISTANCE */
/* AFL Code - Prakash Shenoi */
LB= Param("Look Back Periods",10,1,30,1);
R=ValueWhen(Cross(MA(C,LB),C),HHV(H,LB),1);
S=ValueWhen(Cross(C,MA(C,LB)),LLV(L,LB),1);
Color=IIf(O>C,colorWhite,colorWhite);
Plot (R,"Resz",22,8+16);
Plot (s,"Supp",19,8+16);
GraphXSpace=4;
_SECTION_END();
 
#10
PHP:
_SECTION_BEGIN("Support_and_Resistance");
/* SUPPORT AND RESISTANCE */
/* AFL Code - Prakash Shenoi */
LB= Param("Look Back Periods",10,1,30,1);
R=ValueWhen(Cross(MA(C,LB),C),HHV(H,LB),1);
S=ValueWhen(Cross(C,MA(C,LB)),LLV(L,LB),1);
Color=IIf(O>C,colorWhite,colorWhite);
Plot (R,"Resz",colorRed,8+16);
Plot (s,"Supp",colorGreen,8+16);
GraphXSpace=4;
_SECTION_END();

Hi friedns,

I want to change these support and Resistance color.
I want support color is green and resistance color is red.
If you can pls try these.

_SECTION_BEGIN("Support_and_Resistance");
/* SUPPORT AND RESISTANCE */
/* AFL Code - Prakash Shenoi */
LB= Param("Look Back Periods",10,1,30,1);
R=ValueWhen(Cross(MA(C,LB),C),HHV(H,LB),1);
S=ValueWhen(Cross(C,MA(C,LB)),LLV(L,LB),1);
Color=IIf(O>C,colorWhite,colorWhite);
Plot (R,"Resz",22,8+16);
Plot (s,"Supp",19,8+16);
GraphXSpace=4;
_SECTION_END();
 

Similar threads