General Trading Chat

princy01

Well-Known Member
TP ji beleive me all these AFL's were gifted to me by some very special gifted and charitable people like Happy Ji and Extremist ji whom i cannot thank enough. I have only done the channelling part which does not require coding an AFL like these. Rest to copy and paste, i am learning the ropes.
VARUN ji

how do you manage symbols on amibroker via GDFL , as they dont provide automatic symbols in datafeed , you have to add manually
 

princy01

Well-Known Member
also i cant find you obv afl anywhere as you use it in your charts , can you share the link if its posted ??

found it , it never works the way you plot , its always random , i am also technically challenged like you :D
 
Last edited:

princy01

Well-Known Member
One more code from Extermist Ji for some one looking for price bands.

Code:
_SECTION_BEGIN("VKBand");

eh = EMA(H,2);
el = EMA(L,2);

kt = MA(eh,8)+(0.4*ATR(3));
kb = MA(el,8)-(0.4*ATR(3));

vt = TEMA(kt,2);
vb = TEMA(kb,2);

Plot(vt,"\nVtop",colorGreen,styleThick);
Plot(vb,"\nVbot",colorred,styleThick);

_SECTION_END();
MB

have you been able to plot OBV pane of varun ji as in his charts ??
 

Tuna

Listen and act, don't ask it, it doesn't oblige
Something is cooking in this counter.

 

Tuna

Listen and act, don't ask it, it doesn't oblige
And the last one for this weekend, breach of BB Low with increasing OBV was the right place, but I wanted to wait a bit for my condition, which is met now. Enough of buying stock, why not buy an exchange :p

 
MB

have you been able to plot OBV pane of varun ji as in his charts ??
Check Param screenshots carefully and do it on your machine

Code:
_SECTION_BEGIN("OBV");
Plot( OBV(), _DEFAULT_NAME(), ParamColor("Color", colorCycle ), ParamStyle("Style") );
_SECTION_END();

_SECTION_BEGIN("Bollinger Bands");
P = ParamField("Price field",-1);
Periods = Param("Periods", 6, 2, 300, 1 );
Width = Param("Width", 2, 0, 10, 0.05 );
Color = ParamColor("Color", colorCycle );
Style = ParamStyle("Style");
Plot( BBandTop( P, Periods, Width ), "BBTop" + _PARAM_VALUES(), Color, Style );
Plot( BBandBot( P, Periods, Width ), "BBBot" + _PARAM_VALUES(), Color, Style );
_SECTION_END();

_SECTION_BEGIN("EMA");
P = ParamField("Price field",-1);
Periods = Param("Periods", 15, 2, 30000, 1, 10 );
Plot( EMA( P, Periods ), _DEFAULT_NAME(), ParamColor( "Color", colorCycle ), ParamStyle("Style") );
_SECTION_END();

_SECTION_BEGIN("EMA1");
P = ParamField("Price field",-1);
Periods = Param("Periods", 15, 2, 30000, 1, 10 );
Plot( EMA( P, Periods ), _DEFAULT_NAME(), ParamColor( "Color", colorCycle ), ParamStyle("Style") );
_SECTION_END();

_SECTION_BEGIN("Keltner Bands");
P = ParamField("Price field",-1);
Periods = Param("Periods", 15, 2, 300, 1 );
Width = Param("Width", 2, 0, 10, 0.05 );
Color = ParamColor("Color", colorCycle );
Style = ParamStyle("Style", styleLine | styleNoLabel);

CenterLine = MA( P, Periods );
KTop = CenterLine + Width * ATR( Periods );
//KBot = CenterLine - Width * ATR( Periods );

Plot( KTop, "KBTop" + _PARAM_VALUES(), Color, Style );
//Plot( KBot, "KBBot" + _PARAM_VALUES(), Color, Style );
_SECTION_END();

_SECTION_BEGIN("Keltner Bands1");
P = ParamField("Price field",-1);
Periods = Param("Periods", 15, 2, 300, 1 );
Width = Param("Width", 2, 0, 10, 0.05 );
Color = ParamColor("Color", colorCycle );
Style = ParamStyle("Style", styleLine | styleNoLabel);

CenterLine = MA( P, Periods );
//KTop = CenterLine + Width * ATR( Periods );
KBot = CenterLine - Width * ATR( Periods );

//Plot( KTop, "KBTop" + _PARAM_VALUES(), Color, Style );
Plot( KBot, "KBBot" + _PARAM_VALUES(), Color, Style );
_SECTION_END();

_SECTION_BEGIN("TEMA");
P = ParamField("Price field",-1);
Periods = Param("Periods", 15, 2, 300, 1, 10 );
Plot( TEMA( P, Periods ), _DEFAULT_NAME(), ParamColor( "Color", colorCycle ), ParamStyle("Style") );
_SECTION_END();

_SECTION_BEGIN("TEMA1");
P = ParamField("Price field",-1);
Periods = Param("Periods", 15, 2, 300, 1, 10 );
Plot( TEMA( P, Periods ), _DEFAULT_NAME(), ParamColor( "Color", colorCycle ), ParamStyle("Style") );
_SECTION_END();

_SECTION_BEGIN("EMA2");
P = ParamField("Price field",-1);
Periods = Param("Periods", 15, 2, 30000, 1, 10 );
Plot( EMA( P, Periods ), _DEFAULT_NAME(), ParamColor( "Color", colorCycle ), ParamStyle("Style") );
_SECTION_END();

_SECTION_BEGIN("Bollinger Bands2");
P = ParamField("Price field",-1);
Periods = Param("Periods", 15, 2, 300, 1 );
Width = Param("Width", 2, 0, 10, 0.05 );
Color = ParamColor("Color", colorCycle );
Style = ParamStyle("Style");
Plot( BBandTop( P, Periods, Width ), "BBTop" + _PARAM_VALUES(), Color, Style );
Plot( BBandBot( P, Periods, Width ), "BBBot" + _PARAM_VALUES(), Color, Style );
_SECTION_END();


 

Similar threads