Amibroker afl construction query

#1
hi!

i am a newbie and i need help from the senior members of the forum.....

can anyone help me making this amibroker afl.....

conditions:

ema 10 (green colour) by 50(blue colour) by 200 (red colour)
buy signal when green crosses above blue......sell signal when green crosses below blue
 

swagat86

Active Member
#2
hi!

i am a newbie and i need help from the senior members of the forum.....

can anyone help me making this amibroker afl.....

conditions:

ema 10 (green colour) by 50(blue colour) by 200 (red colour)
buy signal when green crosses above blue......sell signal when green crosses below blue
Plot(C,"Price", colorBlack, styleCandle );

Buy=Cross( EMA(Close, 10),EMA(Close, 50));
Sell= Cross( EMA(Close, 50),EMA(Close, 10));
Plot(EMA(Close,10)," EMA1", colorBrightGreen,styleThick, 0,0,0);
Plot(EMA(Close,50)," EMA2", colorBlue,styleThick, 0,0,0);
Plot(EMA(Close,200)," EMA3", colorRed,styleThick, 0,0,0);
shape=Buy*shapeUpArrow+Sell*shapeDownArrow;
PlotShapes(shape,IIf(Buy,colorGreen,colorRed),0,IIf(Buy,L,H));
 
#3
thank you so so so much swagat......very kind of u!

one more query:-

condition=

can u develop an afl which can intimate us about the script where the volume was above their average volume!


another query:-
can u develop an afl indicating MACD (period:26 12 9) and insert buy and sell arrows

sir.....i would be very thankfull if u could help me with these queries

awaiting your reply
 

swagat86

Active Member
#4
thank you so so so much swagat......very kind of u!

one more query:-

condition=

can u develop an afl which can intimate us about the script where the volume was above their average volume!


another query:-
can u develop an afl indicating MACD (period:26 12 9) and insert buy and sell arrows

sir.....i would be very thankfull if u could help me with these queries

awaiting your reply
Hi man,


no Sir and all, i dont like ppl callin me Sir :cool:
u can call me dude, stud etc :cool:


yes i can help u with all above afls but do give me exact condition. like how much is the exact avg or MACD is above signal line or so.

Thanks
 
#5
dear swagat
thanks for your reply! i am a newbie......can u develop signals of your own...i mean condition that are the best to trade a stock. the best entry exit signals.........
 

swagat86

Active Member
#7
dear swagat
thanks for your reply! i am a newbie......can u develop signals of your own...i mean condition that are the best to trade a stock. the best entry exit signals.........
Sory brother cant help u on that. Reason is somethin that may work with me doesnt mean that will work with u. Thats not at all necessary.

So if u tell me the condition is can help u on that. :cool:
 
#8
hello all senior members!

can anyone help me with this....i have this amibroker afl.....i want to create buy sell signals.....buy when %k crosses above %D.......sell when %k crosses below %D .....the formula is as below

_SECTION_BEGIN("Stochastic %K");
periods = Param( "Periods", 15, 1, 200, 1 );
Ksmooth = Param( "%K avg", 3, 1, 200, 1 );
Plot( StochK( periods , Ksmooth), _DEFAULT_NAME(), ParamColor( "Color", colorCycle ), ParamStyle("Style") );
_SECTION_END();

_SECTION_BEGIN("Stochastic %D");
periods = Param( "Periods", 15, 1, 200, 1 );
Ksmooth = Param( "%K avg", 3, 1, 200, 1 );
Dsmooth = Param( "%D avg", 3, 1, 200, 1 );
Plot( StochD( periods , Ksmooth, DSmooth ), _DEFAULT_NAME(), ParamColor( "Color", colorCycle ), ParamStyle("Style") );
_SECTION_END();
 

swagat86

Active Member
#9
hello all senior members!

can anyone help me with this....i have this amibroker afl.....i want to create buy sell signals.....buy when %k crosses above %D.......sell when %k crosses below %D .....the formula is as below

_SECTION_BEGIN("Stochastic %K");
periods = Param( "Periods", 15, 1, 200, 1 );
Ksmooth = Param( "%K avg", 3, 1, 200, 1 );
Plot( StochK( periods , Ksmooth), _DEFAULT_NAME(), ParamColor( "Color", colorCycle ), ParamStyle("Style") );
_SECTION_END();

_SECTION_BEGIN("Stochastic %D");
periods = Param( "Periods", 15, 1, 200, 1 );
Ksmooth = Param( "%K avg", 3, 1, 200, 1 );
Dsmooth = Param( "%D avg", 3, 1, 200, 1 );
Plot( StochD( periods , Ksmooth, DSmooth ), _DEFAULT_NAME(), ParamColor( "Color", colorCycle ), ParamStyle("Style") );
_SECTION_END();
hi buddy,

here's ur afl


-------------------------------------------------------------------

_SECTION_BEGIN("Stochastic %K");
periods = Param( "Periods", 15, 1, 200, 1 );
Ksmooth = Param( "%K avg", 3, 1, 200, 1 );
Plot( StochK( periods , Ksmooth), _DEFAULT_NAME(), ParamColor( "Color", colorCycle ), ParamStyle("Style") );
_SECTION_END();

_SECTION_BEGIN("Stochastic %D");
periods = Param( "Periods", 15, 1, 200, 1 );
Ksmooth = Param( "%K avg", 3, 1, 200, 1 );
Dsmooth = Param( "%D avg", 3, 1, 200, 1 );
Plot( StochD( periods , Ksmooth, DSmooth ), _DEFAULT_NAME(), ParamColor( "Color", colorCycle ), ParamStyle("Style") );
_SECTION_END();

A=StochK( periods , Ksmooth);
B=StochD( periods , Ksmooth, DSmooth );

Buy=Cross(a,b);
Sell=Cross(b,a);

---------------------------------------------------------
 

Similar threads