![]() |
|
| Discuss Experiments in Technical Analysis at the Technical Analysis within the Traderji.com - Discussion forum for Stocks Commodities & Forex; Dear friends, Thanks for your views, comments and suggestions. I am sure some more will ... |
|
|||||||
| Notices |
| Technical Analysis Discussion of all the principles involved in technical analysis. |
![]() |
|
|
Thread Tools |
| Sponsored Links |
|
#341
|
|||
|
|||
|
Dear friends,
Thanks for your views, comments and suggestions. I am sure some more will come after you run the AFLs on different stocks and under different conditions. I am waiting for your valuable inputs. I will try to explain some of the points already posted by different members. First of all let me thank you, Karthik, for taking such keen interest inspite of your heavy schedule. From your post I could see that you have put your test results within an hour or two after I posted the codes. Really dedicated work by you. You appear to have run the codes very late in the night or may be early hours foregoing sleep and rest. Please take care of your health. Quote:
I have tried few methods to eliminate the small signals. But what happened was in many cases, an insignificant Buy signal just before a large upward movement got eliminated and there was no way of entering into the up trend. This is important especially at the end of a range bound movement. Therefore I just kept on trading with all the signals, however minute they were. This is also in line with my conditions posted earlier that all signals will be traded. Quote:
Quote:
I had removed the histogram plotting code in order to highlight the exploration part alone. (I have a combined code which can plot and explore so that the same AFL can be used to either plot or to explore.) Hello thetraderman, I am sorry. I have never used MS. So I cannot help you. But the members here would do that for you. Regards and Happy trading. -Anant |
|
#342
|
|||
|
|||
|
Dear Murthy garu,
Thanks for your observations and suggestions. Let me attempt to put in my reactions. Quote:
There will be many cross overs especially in range bound region which are not of much use. We must try to find out ways to eliminate them. Your suggestion of using a 3-period EMA can definitely be tested and compare the returns. I would try that after I complete the present work. Meanwhile some other members also can give it a try. It may not be out of place to refer to my answers to Sanjay, wherein I have explained the danger of eliminating small cross-overs. We have to keep this also in mind before eliminating them. Because, when a cross-over occurs we do not know whether it is a beginning of a really big move. And surely we don't want to miss it. Quote:
Please keep on giving your comments and suggestions. I need them very much. Thank you once again for your keen interest and encouragement. Regards -Anant |
|
#343
|
|||
|
|||
|
Quote:
p1:=13; {13} p2:=9; {9} X := Mov(C,p1,E); Y := Mov(X,p2,E); {Signal} D := X-Y; Buy := Ref(D,-2)>Ref(D,-1) AND D>Ref(D,-1); Sell:= Ref(D,-2)<Ref(D,-1) AND D<Ref(D,-1); Bprice := If(Buy,Ref(O,1),0); {Buying Price} Sprice := If(Sell,-Ref(O,1),0); {Selling Price} Bprice; Sprice; Thanks, TheTraderMan |
|
#344
|
|||
|
|||
|
Dear Anant
I will use the value 15 for P1 and P2 and try to chk out the diff. There is lots to assimilate and respond about your work, will take quite a bit of time. From my limited investigations so far I am of the opinion that the original system proposed by Karthik suits me better (buying above the previous peak reduces most of the wipsaws). But as the seniors say the most important aspect about suitability of a system has to be the temperament of the trader/investor. Quote:
I have tried to incorporate the above inputs from you in an Indicator. After introducing the dead band the system gives more whipsaws, and averaging the difference (EMA of D) just delays the signal further adding to the risk rather than reducing it. I am uploading the Indicator, plz insert it below the price chart. Just play around with the various parameter values to see the different effects. I have also plotted the ATR value on the indicator which will be useful to try to judge the outside limits of deviations of the signal line(EMA) from the averages(EMA of EMA). This could be used as an anti-trend signal, perhaps to book partial profits ![]() Warm Regards Sanjay PS: Rename the file extention from txt to afl |
|
#345
|
|||
|
|||
|
dear sgm,
thanks for the indicator. i will 'play' with it and post by observations; but it needs good lot of time. murthymsr |
|
#346
|
|||
|
|||
|
Dear Anant
As suggested by you, I tried out the combination of 15 & 15 as values for p1 and p2 . It definately improves the performance. Quote:
12,20 ; 13,19 ; 14,16 ; 15,17 ; 16,16 & yes also 15,15. It would be amazing if you have arrived at the 15,15 pair just by intuition. There was another interesting aspect that i noticed. The values of P1, P2 can be interchanged without having much difference in the performance. For e.g. Instead of P1 = 12 and P2 = 20, we can also use P1=20 and P2 = 12. Personally, I have chosen the values of 13, 19 for use with the Mabitus system. Finally, I would like to thank Karthik, Murthy and Anant, for all the help I have got from your posts in this thread. It enabled me to get some insight into back testing for a trading system. Thanks and Regards Sanjay Last edited by SGM; 11th November 2006 at 03:22 PM. |
|
#347
|
|||
|
|||
|
hai Mr. Kumar ,
You all seem to speak Latin & Greek , for me , as I am very new to this world of trading. Please let me know what are these. Please mail me luraselrach@*****.com. Pl. give feedback , so that I can try to understand what are these points. Thanks in advance.
|
|
#348
|
|||
|
|||
|
I think its ok if it gives whipsaws in sideways. You cann't have a single system for every mode. This indicator works well in trending mkt and you may be well off, with osc in sideways.
Anjan |
|
#349
|
|||
|
|||
|
Quote:
Thank you for your appreciative words and I am glad to see your interest in learning. I am giving the proof of moving average delay below: For the sake of easy explanation I am oversimplifying the example. However, the steps explained here are equally applicable to real situation also. Let us assume a share being traded at Rs. 100 and the price goes on increasing by Re. 1 every day (You can take any value you like, eg price = 300 and increase = 1.7 etc. But the values I have taken make the calculation easy). Also assume that the price increases from 100 to 110 and then starts falling by Re. 1 each day till it reaches Rs 95. Thereafter it again increases Re. 1 everyday to again reach Rs 110. This up and down continues. Let us take the first 50 days' data for our example. Let us say we want to calculate 5-day and 15-day simple moving averages and their cross over. The price data, the moving averages and their difference along with the chart are attached as a PDF file with this post. You can download the file, take a print out and follow along with the explanation here. The 5-day moving average is simply the average of previous 5 day prices starting today. So, in our example the first four days have no moving average, 5th day onwards the values are calculated and entered against the day number. So, the first MA value is against 5th day, second value against 6th day etc. Similar is the case with 15-day moving average, the first value is against 15th day and so on. The moving average difference column starts with 15th day. You can see from the table of values in the attached file that the price has reached the maximum value of 110 on 11th day and thereafter it is falling. But the 5-day moving average reached maximum value of 108.80 on 13th day and the 15-day MA reached its maximum value of 106.27 on 18th day. This extra time is the moving average lag. Why it happens? When you take 5-day MA the first time you add values of day 1 to day 5. On the second occasion you add values of day 2 to day 6. In effect, you are removing the first day value and adding 6th day value. As the 6th day value is higher than 5th day value the MA increases. On 11th day you add the maximum price for the first time. On 12th day you add a value which is smaller than the maximum, but the value being removed is still smaller than this 12 th day value. So, MA continues to increase even after the Peak in price is reached. This continues till the latest value added is smaller than the value removed. This happens when the Maximum Price is in the center. As we are taking 5-days prices, the Maximum price is in the centre after half of this period i.e. 2.5 days. This makes it 11+2.5=13.5. So we see the peak in MA on 13th day. Similarly, the peak of 15-day MA appears on 11+(15/2)=11+7.5=18.5 days which is rounded to 18th day. Therefore, the MA peak lags the price peak by half of the averaging period. Similarly, the lowest value of MA lags the lowest price by the same number of days. We have taken regularly increasing/decreasing prices in this example. In real situation this is not true. So, the actual lag will be a little different from the 'half of the averaging period'. Depending on which side of the price peak (or valley) is changing faster, the MA peak is displaced a little to the left or right. But on an average we can take this lag to be half of averaging period. Coming to the cross-over of the two MAs we can explain it as follows. Now I have to introduce a little maths here. But it is very simple. Let us say p1 is short term, p2 is long term. As we have seen above, the short term MA reaches peak (p1)/2 days after the price peak and the long MA reaches its peak (p2)/2 days after price peak. So the time difference between the two MA peaks is (p2)/2 - (p1)/2 which is same as (p2-p1)/2. That means Half of the difference between the two averaging periods. The cross over will occur midway between this difference. So it will be hallf of (p2-p1)/2 or equal to (p2-p1)/4. That is one-fourth of the difference between the averaging periods. In our case the MA period difference is 15-5=10 and 10/4=2.5. So the cross over is 2.5 days (or 2 to 3 days) after short MA peak. We can see from the data and graphs that this is indeed the case. If you have understood this, then you can try to prove why the histogram peaks appear much before the cross over. I will leave it as an excercise. As the Histogram peak appears much before the cross over, I tried to use it in my MABIUTS-H strategy. Regards -Anant Last edited by asnavale; 28th December 2007 at 09:22 PM. Reason: Forgot attachment |
|
#350
|
|||
|
|||
|
Dear Sanjay,
Thanks for your test results and optimisation results. Thanks also for the words of appreciation and encouragement. Quote:
This is the reason why this forum is the place to learn. Sharing the test results will thus be put to test and better suggestions will come out to improve the strategies. I hope some more people will come out with their test results and we may finally get a solution to reducing the number of signals generated in MABIUTS-H without sacrificing much of the profits. Quote:
Thank you once again. Hope to get more intersting test results from you and others too. Regards. -Anant |
| Sponsored Links |
|
|
![]() |
| Bookmarks |
| Thread Tools | |
|
|
Similar Threads for: Experiments in Technical Analysis
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Technical Analysis Course | snowy | Technical Analysis | 25 | 29th December 2007 10:19 PM |
| Technical analysis course | sh50 | Seminars & Tutors | 18 | 10th June 2007 03:46 PM |
| Hello everybody.Technical Analysis | vijay chauhan | Introductions | 2 | 30th May 2007 03:09 PM |
| Technical Analysis | crosscurrency | Forex | 0 | 30th October 2005 11:00 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.