lets try it ... ( need your help )

sr114

Well-Known Member
#51
SR,

How is Behgozin slope finder different from MACD indicator.Are there any big differences between both of them?
just go thru the calculation of the MACD and Behgozin indi. u will find the difference itself.

in MACD - we subtract the longer mean from the shorter mean and then plot the difference as the main part and the mean of the difference as the signal line. similarly the macd histogram is formed.

but in behzogin indicator, completely different calculation is employed and we try to find out the strength of the scrip.

here's the difference

sr
 

sr114

Well-Known Member
#52
Prabh, Ritesh

use this behgozin indi - the explorer is custom made

_SECTION_BEGIN("Background_Setting");
SetChartBkGradientFill( ParamColor("BgTop", colorBlack),
ParamColor("BgBottom", colorDarkGrey),ParamColor("TitleBack",colorGrey40));
SetChartBkColor(ParamColor("Outer Panel",colorPaleBlue));
SetChartOptions(0,chartShowArrows|chartShowDates);
_SECTION_END();

_SECTION_BEGIN("BehgozinStrengthFinder2");
//Behgozin Stock Strength Finder.
//Simply It shows the Strength of any Stock so you can select the best stock
//Also can be used as buy and sell system by crossing zero line
// It can be used in daily, weekly or monthly time frame. Also you can see the results by Exploration
CLN = Ref(C,3);
Beh = ((CLN - EMA(CLN, 10)) / EMA(CLN, 10)) * 100;

V2 = HHV(Beh,100);
V3 = LLV(Beh,100);

Beh1 = WMA(Beh*(V2-V3),6);
Beh2 = EMA(Beh1,5);

Plot(Beh1, "Behgozin Strength Finder ",4,4);
Plot(Beh2, "BSF Mn ",42,4);
Plot(0,"",colorWhite,styleLine);

Buy = Beh1>0 ;
Sell = Beh1<0 ;

Buy=Exrem(Buy,Sell); // added to remove excess signal
Sell=Exrem(Sell,Buy);// addded to remove excess signal

SellPrice = ValueWhen(Sell,C,1);
BuyPrice = ValueWhen(Buy,C,1);

Filter = Buy OR Sell ;
SetOption("NoDefaultColumns", True);
AddTextColumn(Name(), "SYMBOL");
AddColumn(DateTime(), "DATE", formatDateTime);
AddColumn(IIf(Buy, 66, 83), "BSF Sig", formatChar, colorBlack, IIf(Buy, colorBrightGreen, colorOrange));
AddColumn(Beh1,"BSF", SetSortColumns( 4 ));
AddColumn(C, "LTP", 1.2,colorBlue);
AddColumn(V, "Volume", 1, colorBlack,IIf(V > EMA(V,21), colorBrightGreen, colorOrange));

_SECTION_END();
vol is used and its a measure of the increase of vol over 21 ema of vol

sr
 
Last edited:

sr114

Well-Known Member
#56
In the above AFL its written that the results can be viewed by Exploration as well on any time frame.How can we achive this in Ami.
in the Ami - go to new analysis-pick the afl and explore. u will get the result. now changing time frame, go to setting - backtester settings - there u will find the periodicity - change there from daily to weekly to monthly and explore = u will get the concerned periodicity explore result

sr
 
#58
SR,

For EOD can we make use of below Slope finder.Have a look at below AFL

SetChartBkGradientFill(1,23);
_SECTION_BEGIN("Behgozin Slope Finder");

Tr2 = Ref(C,1);
Tr3=Ref(C,7);
Trend2 = MA(Tr2,7);
Trend3=MA(Tr3,7);
Slope1=((Trend3-Trend2)/Trend3)*100;
Plot(Slope1,"Buy When it is Green and Sell when it is Red or Pink",colorGold,styleLine+styleDots|styleThick);



Tr4 = Ref(C,7);
Tr5=Ref(C,15);
Trend3 = MA(Tr4,15);
Trend4=MA(Tr5,15);
Slope2=((Trend4-Trend3)/Trend4)*100;
Plot(Slope2,"",colorGreen,styleLine+styleDots|styleThick);
Plot(0,"",colorWhite,styleLine);
_SECTION_END();SetSortColumns(-2);

//Richu


Buy= nwbull=slope1 > 0 AND slope2 > 0 ;
Sell=nwbear=slope1 < 0 AND slope2 < 0 ;
Buy = ExRem( Buy, Sell );
Sell = ExRem( Sell, Buy );

PlotShapes(IIf(Buy,shapeUpArrow,Null),colorGreen,0,0,-10);

PlotShapes(IIf(Sell,shapeDownArrow,Null),colorRed,0,0,-10);

Plot( 1, /*efines the height of the ribbon in percent of pane width */"ribbon",
IIf( nwbull, colorLime, IIf( nwbear, colorRed,IIf(Signal()<MACD(), colorPink, colorPink ))), /* choose color */
styleOwnScale|styleArea|styleNoLabel, -01, 50 );
how to arrows unchanged? pls.
 

Similar threads