Trying Positions-Tested AFL-300%profit.

SwingKing

Well-Known Member
#61
Backtesting Results of Velluri's System

Here are the back testing results of Velluri System,

Download Results File Here

Methodology: Individual Back testing used on List of Nifty Future shares and Nifty index.

Position Size: For Simplicity, position size per share is restricted to Rs. 20000

Max Loss: Maximum Loss limit is set at 15%. Though this is too much. I just wanted to give the system flexibility.

Time Period: Jan 2003 to Current

Trade Delays: Set to '0'

Out of Sample: For better understanding I have given the average profit per share in the end. That is divided the total profit by number of trade. I have particularly removed one out of sample data which was giving returns beyond the range. This is done under the principle of normalized distribution to avoid distortion of results.

Commissions including all costs: 1%

Notes: System is good. Concept is also good. However, on removing the out of sample data, the system gives average profit of 24% per trade. The total number of trades is 905. On analysing and adding filters, Velluri can indeed take the average profits higher. Some of the filters which I would suggest are seasonality or low historical volatility ratio.

Formula Used -
Code:
CON1=Cross( MA( Close, 5 ), MA( Close, 10 ) ) AND BarsSince( MA( Close, 13 ) <= MA( Close, 50 ) ) >= 10 AND MA(Close, 50)<High-Close*0.02 AND BarsSince (Close<MA(Close,15))>=5;
CON1A=Cross( BBandBot( Close, 20, 2 ), Close );
_SECTION_BEGIN("vel");
EnableScript("vbscript");
<%
function jMA(jH,jL,A2,A2m,k)
dim result()
redim result(UBound(jH))
for i=k to UBound(jH)
n=i+1
if A2(i)<= A2m(i) then
do until n=0
n=n-1
if A2(n)>= A2m(i) then exit do
Loop
result(i)=jH(n)
else
do until n=0
n=n-1
if A2(n)<= A2m(i) then exit do
Loop 
result(i)=jL(n)
end if
next
jMA=result
end function
%>
script=GetScriptObject();
n=15;
Graph0=script.jMA(H,L,AccDist(),EMA(AccDist(),n),n );
Graph1=C;
Graph1Style=128;
Graph2=IIf(C<MA(C,n),MA(H,n),MA(L,n));Graph2Style= 1;
_SECTION_END();
CON2=Graph1 > Graph0;
CON3=Cross( MA( Close, 10 ), MA( Close, 5 ) ) AND BarsSince( MA( Close, 50 ) <= MA( Close, 13 ) ) >= 10 AND MA(Close, 50)>Low+Close*0.02 AND BarsSince (Close>MA(Close,15))>=5;
CON4=Graph1 < Graph0;
Buy = CON1 AND CON2;
Sell= CON3 AND CON4;
QTY=High*.15;
QTY1=920/QTY;
CAP=High*QTY1;
Short=CON3 AND CON4;
Cover=CON1 AND CON2;
Filter = Buy ;
AddColumn( High, " Buy " );
AddColumn( QTY1, " QTY " );
AddColumn( CAP, " CAP " );
AddColumn( High-High*.15, "stop loss " );
AddColumn( High+High*.04, "Tgt 1 " );
AddColumn( High+High*.08, "Tgt 2 " );
AddColumn( High+High*.12, "Tgt 3 " );
AddColumn( High+High*.15, "Tgt 4 " );
 

veluri1967

Well-Known Member
#62
Raunak Aggarwal,

Thank you for the marvellous work done.

Though I am not sure about the filters you have suggested, I will try my best to incorporate them into the system.

Meanwhile, if you can suggest anything, I welcome.

Thanx once again.
 

veluri1967

Well-Known Member
#63
Code:
Ticker	Date/Time	 Buy 	 QTY 	 CAP 	stop loss 	Tgt 1 	Tgt 2 	Tgt 3 	Tgt 4 	
RALLIS	15-02-2010	1135.00	5.40	6133.33	964.75	1180.40	1225.80	1271.20	1305.25
 
#64
Dear raunak agrawalji,

please write to me at [email protected] with your contact number. I want to have some paid services from you.

Can you please write the afl strategy in simple words as i don't use amibroker/metastock.

I will program the strategy in ms-excel sheet and post it for the benefit of traderji members.
Thanks.
 

veluri1967

Well-Known Member
#65
Code:
Ticker	Date/Time	 Buy 	 QTY 	 CAP 	stop loss 	Tgt 1 	Tgt 2 	Tgt 3 	Tgt 4 	
INDUSINDBK	03-02-2010	159.65	38.42	6133.33	135.70	166.04	172.42	178.81	183.60	
RALLIS	15-02-2010	1135.00	5.40	6133.33	964.75	1180.40	1225.80	1271.20	1305.25	
NFL	16-02-2010	145.30	42.21	6133.33	123.51	151.11	156.92	162.74	167.10	
INDUSINDBK	18-02-2010	154.90	39.60	6133.33	131.66	161.10	167.29	173.49	178.13
 

veluri1967

Well-Known Member
#69
Code:
Ticker	Date/Time	 Buy 	 QTY 	 CAP 	stop loss 	Tgt 1 	Tgt 2 	Tgt 3 	Tgt 4 	
	
INDUSINDBK	18-02-2010	154.90	39.60	6133.33	131.66	161.10	167.29	173.49	178.13