Traderji.com - Discussion forum for Stocks Commodities & Forex

Discussion on kolkata meet signal

Discuss Discussion on kolkata meet signal at the MetaStock within the Traderji.com - Discussion forum for Stocks Commodities & Forex; Originally Posted by SGM Hello Vikram From your chart, it seems you would get decent ...


Go Back   Traderji.com - Discussion forum for Stocks Commodities & Forex > TOOLS & RESOURCES > Software > MetaStock

Notices


Advertise Here

Reply
 
Thread Tools
Sponsored Links
  #31  
Old 20th April 2008, 12:49 PM
Member
 
Join Date: Mar 2008
Posts: 209
Thanks: 28
Thanked 23 Times in 15 Posts
vvvv is on a distinguished road
Reputation: 33
Default Re: Discussion on kolkata meet signal

Quote:
Originally Posted by SGM View Post
Hello Vikram

From your chart, it seems you would get decent gains if you had taken the third entry after the first 2 getting stopped out.

Have you checked with other charts, if yes, what was your observation from those other examples? According to you how many stops in a row would make a system unuseable?

Regards
Sanjay
havent checked a lot of charts but i like to go for charts which are choppy & no definable trend.
will try to apply on sum other chart & post it.
the question is not how many stops in a row.say u hold a future position according to the chart ive given & u loose 2 times in a row.wud u be in a position mentally to take the 3rd trade.
also if u put too tight stops then there are more chances to be stopped out on a good winning trade,so u have to give sum leaveway.
i am attaching the renko chart of aban with a brick size = 100 with the indicator on top of it.i think the stuf is self explanatory
so the thing to be considered is :
1)if i trade a simple renko which takes me 1 min to understand,i win most of the time with stop below the 1st brick
2)shud i go for indicators & oscillators & stuff like tht.
3)can u take a trade solely on the kol meet indicator or u have to use sumthing else in conjunction with it.
for ex : ive read in books candlesicks works best with stochastics.

wht do u suggest????

N.B. wanted to clear sum doubts of mine regarding the renko.

Last edited by vvvv; 29th May 2008 at 12:42 PM.
Reply With Quote
  #32  
Old 20th April 2008, 01:33 PM
Member
 
Join Date: Nov 2006
Posts: 1,425
Thanks: 7
Thanked 8 Times in 6 Posts
kkseal will become famous soon enough
Reputation: 64
Default Re: Discussion on kolkata meet signal

Study MAs first - their construction, pros & cons, watch them on charts & you'll get your answers No point in rushing into 'crocodiles' & 'butterflies' without knowing the basics.

Regards,
Kalyan.
Reply With Quote
  #33  
Old 21st April 2008, 06:40 PM
SGM SGM is offline
Member
 
Join Date: Aug 2005
Location: PUNE
Posts: 468
Blog Entries: 14
Thanks: 11
Thanked 33 Times in 11 Posts
SGM will become famous soon enough
Reputation: 73
Default Re: Discussion on kolkata meet signal

Hello

Yesterday Asishda send me some metastock code to be converted to Amibroker afl and post on the forum, I guess his intention was to provide an open code so that the collaboration effort can continue.

He also asked me to do back tests and publish the performance.

Regards
Sanjay


So here we go.

Original Code
Code:
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx 

K:= C;
a:=30;
S1:=Sin(1*a)*K;
S2:=Sin(2*a)*Ref(K,-1);
S3:=Sin(3*a)*Ref(K,-2);
S4:=Sin(4*a)*Ref(K,-3);
S5:=Sin(5*a)*Ref(K,-4);
Num:=S1+S2+S3+S4+S5;
Den:=Sin(a)+Sin(2*a)+Sin(3*a)+Sin(4*a)+Sin(5*a);
j1:= Num/Den;
j1;

xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Reply With Quote
  #34  
Old 21st April 2008, 06:42 PM
SGM SGM is offline
Member
 
Join Date: Aug 2005
Location: PUNE
Posts: 468
Blog Entries: 14
Thanks: 11
Thanked 33 Times in 11 Posts
SGM will become famous soon enough
Reputation: 73
Default Re: Discussion on kolkata meet signal

Code translated into an AFL
Code:
_SECTION_BEGIN("Asish_Indicator_01");

a  = Param("Len",30,15,45,1);

Num = sin(1*a) * C + sin(2*a) * Ref(C,-1) + sin(3*a) * Ref(C,-2) + sin(4*a) * Ref(C,-3) + sin(5*a) * Ref(C,-4);
Den = sin(a) + sin(2*a) + sin (3*a) + sin(4*a) + sin(5*a);
j1 = Num / Den;
_SECTION_END();
Reply With Quote
  #35  
Old 21st April 2008, 06:59 PM
SGM SGM is offline
Member
 
Join Date: Aug 2005
Location: PUNE
Posts: 468
Blog Entries: 14
Thanks: 11
Thanked 33 Times in 11 Posts
SGM will become famous soon enough
Reputation: 73
Default Re: Discussion on kolkata meet signal

The original code did not have any buy / sell conditions but gave us a wiggly (j1) when plotted on the charts.

The most common things we can do with wigglies is
  1. To use the direction (slope) as a signal to go long / short

  2. Use close to decide buy /sell, buy when close is above, sell when below the wiggly

I have back tested the code only using 1, will also provide code for 2, so members can even test for that. You can also add to this list.

Code:
_SECTION_BEGIN("Asish_Indicator_01");

a  = Param("Len",30,15,45,1);

Num = sin(1*a) * C + sin(2*a) * Ref(C,-1) + sin(3*a) * Ref(C,-2) + sin(4*a) * Ref(C,-3) + sin(5*a) * Ref(C,-4);
Den = sin(a) + sin(2*a) + sin (3*a) + sin(4*a) + sin(5*a);
j1 = Num / Den;
Plot(j1,"j1",IIf(j1 > Ref(j1,-1),colorBlueGrey,colorLime),styleThick);

_SECTION_END();

_SECTION_BEGIN("Price");
SetChartOptions(0,chartShowArrows|chartShowDates);
_N(Title = StrFormat("{{NAME}} - {{INTERVAL}} {{DATE}} Open %g, Hi %g, Lo %g, Close %g (%.1f%%) {{VALUES}}", O, H, L, C, SelectedValue( ROC( C, 1 ) ) ));
Plot( C, "Close", ParamColor("Color", colorBlack ), styleNoTitle | ParamStyle("Style") | GetPriceStyle() ); 
_SECTION_END();


_SECTION_BEGIN("Signal01");
Buy  = j1 > Ref(j1,-1);
Sell = j1 < Ref(j1,-1);

Buy = ExRem(Buy,Sell);
Sell = ExRem(Sell,Buy);

Short = j1 < Ref(j1,-1);
Cover = j1 > Ref(j1,-1);

Short = ExRem(Short,Cover);
Cover = ExRem(Cover,Short);

//Position size fixed 100 units
SetPositionSize(100,4);
SetTradeDelays(1,1,1,1);

PlotShapes(shapeUpArrow * Buy, colorBlue,0, L,-10);
PlotShapes(shapeDownArrow * Short, colorRed,0, H, -10);
_SECTION_END();
The red/blue arrows on the charts are courtesy Karthik, years back he taught me that
Reply With Quote
  #36  
Old 21st April 2008, 07:06 PM
SGM SGM is offline
Member
 
Join Date: Aug 2005
Location: PUNE
Posts: 468
Blog Entries: 14
Thanks: 11
Thanked 33 Times in 11 Posts
SGM will become famous soon enough
Reputation: 73
Default Re: Discussion on kolkata meet signal

The back test reports

For backtesting Ami backtester was used.

Brokerage of 2 points is considered for every trade (1 point on each side).

All 6 runs are done with EoD data.

After the signal is triggered buy/sell price is considered as the next bar's open price.

No slippage is considered.

Initial Capital 500000

Backtest Summary for Spot Nifty EoD, with default settings.
Code:
	Period			Trades	win	Loss	Net Gain/Loss in Points

01 Jan 2008 - April 17 2008	33	15	18		899


01 Jan 2007 - Dec 31 2007	122	46	76		-9	


01 Jan 2000 - Dec 31 2006	812	330	482		-1978
I do not have much faith in the process of brute force optimization, but for the sake of completeness have also given optimized reports. Please note that the back test results for the optimized versions are the best case ones, and are achieved by curve fitting.
Attached Files
File Type: rar Asish Indicator Back Tests.rar (12.5 KB, 53 views)

Last edited by SGM; 21st April 2008 at 07:47 PM.
Reply With Quote
  #37  
Old 21st April 2008, 07:11 PM
SGM SGM is offline
Member
 
Join Date: Aug 2005
Location: PUNE
Posts: 468
Blog Entries: 14
Thanks: 11
Thanked 33 Times in 11 Posts
SGM will become famous soon enough
Reputation: 73
Default Re: Discussion on kolkata meet signal

The code for Above/Below Condition

Code:
_SECTION_BEGIN("Signal 02");
Buy  = C > j1;
Sell = C < j1;

Buy = ExRem(Buy,Sell);
Sell = ExRem(Sell,Buy);

Short = Sell;
Cover = Buy;

Short = ExRem(Short,Cover);
Cover = ExRem(Cover,Short);

//Position size fixed 100 units
SetPositionSize(100,4);
SetTradeDelays(1,1,1,1);

PlotShapes(shapeUpArrow * Ref(Buy,-1), colorBlue,0, L,-10);
PlotShapes(shapeDownArrow * Ref(Short,-1), colorRed,0, H, -10);

_SECTION_END();
To change from fixed position sizing (100) to Money based sizing, say 100,000
Replace

SetPositionSize(100,4); with SetPositionSize(100000,1);
Reply With Quote
  #38  
Old 21st April 2008, 07:59 PM
SGM SGM is offline
Member
 
Join Date: Aug 2005
Location: PUNE
Posts: 468
Blog Entries: 14
Thanks: 11
Thanked 33 Times in 11 Posts
SGM will become famous soon enough
Reputation: 73
Default Re: Discussion on kolkata meet signal

wosh, it took me more than double the time to post compared to code and backtest. Anyway, heres the last one with back test report of Nifty Futures

NF, EoD, 01 Jan 2008 - April 17 2008

NF, Hourly, 01 Jan 2008 - April 17 2008

Please do your own test before drawing any conclusions. The code is available, so shouldn't be a problem to convert into anything.

Regards
Sanjay
Attached Files
File Type: rar NF Back Tests.rar (6.5 KB, 29 views)

Last edited by SGM; 21st April 2008 at 08:08 PM.
Reply With Quote
  #39  
Old 21st April 2008, 08:14 PM
Member
 
Join Date: Mar 2008
Posts: 209
Thanks: 28
Thanked 23 Times in 15 Posts
vvvv is on a distinguished road
Reputation: 33
Default Re: Discussion on kolkata meet signal

sanjay,
i want to learn AFL..from where do i start . pls name sum resources.& give sum tips
Reply With Quote
  #40  
Old 21st April 2008, 08:22 PM
Member
 
Join Date: Mar 2008
Posts: 209
Thanks: 28
Thanked 23 Times in 15 Posts
vvvv is on a distinguished road
Reputation: 33
Default Re: Discussion on kolkata meet signal

Quote:
Originally Posted by SGM View Post
wosh, it took me more than double the time to post compared to code and backtest. Anyway, heres the last one with back test report of Nifty Futures

NF, EoD, 01 Jan 2008 - April 17 2008

NF, Hourly, 01 Jan 2008 - April 17 2008

Please do your own test before drawing any conclusions. The code is available, so shouldn't be a problem to convert into anything.

Regards
Sanjay
are u sure that the afl is correct.the code for metastock gives a smooth curve but the afl gives a highly choppy curve.
moreover the line's for the kolkata meet indicator & the one in which the code is given doesnt match
Reply With Quote
Sponsored Links

Reply

Bookmarks


Advertise Here


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off


All times are GMT +5.5. The time now is 04:57 PM.

Indemnity, Disclaimer & Disclosure Notice:
• By visiting Traderji.com you indicate your acceptance of our Forum Rules Disclaimer & Disclosure and indemnify Traderji.com, its associates and related parties of all claims howsoever resulting from the usage of the forum.
Disclaimer: Trading or investing in stocks & commodities is a high risk activity. Any action you choose to take in the markets is totally your own responsibility. Traderji.com will not be liable for any, direct or indirect, consequential or incidental damages or loss arising out of the use of this information.
Disclosure: The information in this forum is neither an offer to sell nor solicitation to buy any of the securities mentioned herein. The writers may or may not be trading in the securities mentioned.
• All names or products mentioned are trademarks or registered trademarks of their respective owners.
General Content Disclaimer Notice:
In light of our policy of encouraging candid, open exchanges of views and the rapid distribution of information originating from many sources, Traderji.com cannot determine the accuracy of information that may be uploaded to the forum. Opinions, advice and all other information expressed by participants in discussions are those of the author. You rely on such information at your own risk. You are urged to seek professional advice for specific, individual situations and not rely solely on advice or opinions given in the discussions. Since Traderji.com is an open and free discussion forum, any comments made by members of this forum in their posts reflect their own views and not of the owner or administrator of Traderji.com. Thus the owner/administrator indemnify themselves of all claims whatsoever and will not be liable or responsible for any members comments/views in this forum Traderji.com. If you find any objectionable or offensive posts made by members of this forum which you would like to bring to our notice for removal then please Contact Us.
 


Copyright © 2001 - 2008, Traderji.com All Rights Reserved.

Recommended Websites - www.TradersEdgeIndia.com - www.TradingPicks.com - www.MasterOfTrading.com