Traderji.com - Discussion forum for Stocks Commodities & Forex

Experiments in Technical Analysis

Discuss Experiments in Technical Analysis at the Technical Analysis within the Traderji.com - Discussion forum for Stocks Commodities & Forex; Hi friends Some members were looking for the Mabiuts- HB code for metastock. I am ...


Go Back   Traderji.com - Discussion forum for Stocks Commodities & Forex > METHODS & STRATEGIES > Technical Analysis

Notices

Technical Analysis Discussion of all the principles involved in technical analysis.


Advertise Here

Reply
 
Thread Tools
Sponsored Links
  #611  
Old 19th January 2007, 10:03 PM
Moderator
 
Join Date: Jul 2005
Location: kuwait
Posts: 1,456
Blog Entries: 5
Thanks: 45
Thanked 549 Times in 102 Posts
karthikmarar is a name known to allkarthikmarar is a name known to allkarthikmarar is a name known to allkarthikmarar is a name known to allkarthikmarar is a name known to allkarthikmarar is a name known to all
Reputation: 629
Default Re: Experiments in Technical Analysis

Hi friends

Some members were looking for the Mabiuts- HB code for metastock.

I am enclosing the code for the Indicator and Expert. Please note for many Buys and Sells mutiple signals are generated. Is there way to avoid multiple signals in MS? ..something similar to the AB Exrem command..

regards

Karthik

Last edited by karthikmarar; 20th May 2008 at 12:44 AM.
Reply With Quote
Sponsored Links
  #612  
Old 19th January 2007, 10:09 PM
Moderator
 
Join Date: Jul 2005
Location: kuwait
Posts: 1,456
Blog Entries: 5
Thanks: 45
Thanked 549 Times in 102 Posts
karthikmarar is a name known to allkarthikmarar is a name known to allkarthikmarar is a name known to allkarthikmarar is a name known to allkarthikmarar is a name known to allkarthikmarar is a name known to all
Reputation: 629
Default Re: Experiments in Technical Analysis - Trading the MACD

Hi Friends

Continuing with "Trading the MACD"...

Trading MACD better combining with ADX

Combining with ADX provides some good additional clues and we can differentiate which are better signals. I call these signals Power Buys, Power Dips and Power shorts. We will take up some example and define some basic rules, which can be consistently followed.

RULE : All Bullish signals Buys, Dips, Hooks, Zero line crossover are generally good when the Both the ADX and DI+ are rising. To differentiate these from other signals we will call then Power Buys, Power Dips etc.

The Afl draws small hollow circles in Magenta color when these power signals occur. A point to be noted here is that though most of the time the Afl does pick up the signals, times the Afl misses these points (I have tried many methods to code the rising AD and DI+ and each had its own drawback) or the ADX and DI+ starts rising soon after the signals occurs. So eyeballing becomes necessary.

RULE: Generally sell signals like bearish ZL crossover, Dips and Hooks are ineffective when Both ADX and DI+ are rising or high above the DI-.

Check out Example –1

We will the standard ADX(14) here along with the MACD.

Those who have downloaded the Afl can check themselves on their charts..

Reagrds

Karthik

Last edited by karthikmarar; 20th May 2008 at 12:40 AM.
Reply With Quote
  #613  
Old 20th January 2007, 11:33 AM
Member
 
Join Date: Sep 2006
Location: Chennai
Posts: 965
Thanks: 14
Thanked 71 Times in 45 Posts
oxusmorouz will become famous soon enoughoxusmorouz will become famous soon enough
Reputation: 147
Default Re: Experiments in Technical Analysis

You can avoid multiple signals in metastock in the following way:

a:= "Enter the condition for buy" ;
b:= "Enter the condition for sell" ;
(in case of buy signal)
state:=If(BarsSince(a)<BarsSince(b),1,0);
state>Ref(state,-1);

(in case of sell signal)
state:=If(BarsSince(a)>BarsSince(b),1,0);
state>Ref(State,-1);
Reply With Quote
  #614  
Old 20th January 2007, 12:14 PM
Member
 
Join Date: Dec 2006
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
rajsinhaus is on a distinguished road
Reputation: 20
Red face Re: Experiments in Technical Analysis

Quote:
Originally Posted by oxusmorouz View Post
You can avoid multiple signals in metastock in the following way:

a:= "Enter the condition for buy" ;
b:= "Enter the condition for sell" ;
(in case of buy signal)
state:=If(BarsSince(a)<BarsSince(b),1,0);
state>Ref(state,-1);

(in case of sell signal)
state:=If(BarsSince(a)>BarsSince(b),1,0);
state>Ref(State,-1);
I think it may help to modify the MABIUTS - HB code for metastock to avoid multiple signals in metastocks.
Reply With Quote
  #615  
Old 20th January 2007, 12:15 PM
Member
 
Join Date: Sep 2006
Location: Chennai
Posts: 965
Thanks: 14
Thanked 71 Times in 45 Posts
oxusmorouz will become famous soon enoughoxusmorouz will become famous soon enough
Reputation: 147
Default Re: Experiments in Technical Analysis

Great thread guys!

The MACD (or any indicator based on a moving average for that matter) simply cannot exist without the lag effect. If it did, it would be going against the purpose of what it was meant to do,LOL...follow the trend.

Another point I'd like to stress here is that the lag associated with an indicator is inversely related to the number of false trades generated by a security. So an indicator which doesn't lag the market is an indicator which gives out the most number of false signals! (commission cost + loss incurred from false trades should approximately be equal to the loss incurred by lagging the market). So whether an indicator lags or does not shouldn't be much of a worry to a person unless it lags by a terrible degree or it produces too many false signals...
What,I guess, should be more of a concern is the "smoothness" of the indicator,given the volatility. In the earlier pages of this post, I saw Karthik explaining about the 9 day EMA of the 13 day EMA...an excellent way to increase the smoothness of the indicator (DEMA - Double exponential moving average).
In one of my experiments using the same logic as the base, I have attempted to smoothen the moving average, but only to a great extent (With 7 TEMAs - Triple Exponential Moving Average and 5 Exponential MAs...a bit overcooked but the food has seemingly turned out good)
Here is an example:
http://**********.com/files/12504629...ed_MA.rar.html

For metastock users, here is the metastock code:
Mov(Tema(Mov(Tema(Mov(Tema(Mov(Tema(Mov(Tema(Mov(T ema(Mov(C,7,E),2),3,E),2),2,E),2),2,E),2),3,E),2), 2,E),2),2,E)

Unfortunately or fortunately, I don't have a clue about amibroker programming
and hence, the amibroker users must forgive me.

Oxymoron

Last edited by oxusmorouz; 20th January 2007 at 02:39 PM.
Reply With Quote
  #616  
Old 20th January 2007, 01:48 PM
Moderator
 
Join Date: Jul 2005
Location: kuwait
Posts: 1,456
Blog Entries: 5
Thanks: 45
Thanked 549 Times in 102 Posts
karthikmarar is a name known to allkarthikmarar is a name known to allkarthikmarar is a name known to allkarthikmarar is a name known to allkarthikmarar is a name known to allkarthikmarar is a name known to all
Reputation: 629
Default Re: Experiments in Technical Analysis

Hi Oxy

Interesting... Yes your MA is very smooth indeed. Naturally a little more lagging compared to a similiar period EMA. Thanks for sharing it with us.
Another ingredient for experiment ...

regards

Karthik
Reply With Quote
  #617  
Old 20th January 2007, 03:02 PM
Member
 
Join Date: Nov 2006
Posts: 195
Thanks: 0
Thanked 0 Times in 0 Posts
alpha1 is on a distinguished road
Reputation: 25
Default Re: Experiments in Technical Analysis

Buy-sell signals using oscillators along with MAs?
Reply With Quote
  #618  
Old 20th January 2007, 04:34 PM
Member
 
Join Date: Feb 2006
Posts: 355
Thanks: 0
Thanked 0 Times in 0 Posts
rahulg77 is on a distinguished road
Reputation: 20
Default Re: Experiments in Technical Analysis

good good...yeh dil mange more....Hi Karthik, I dont know why your thread is making me refer to so many TV commercials and movies. Hmm in short I M Lovin it :-)

Regards

Rahul
Reply With Quote
  #619  
Old 20th January 2007, 05:22 PM
Member
 
Join Date: Nov 2006
Posts: 1,496
Thanks: 55
Thanked 69 Times in 38 Posts
kkseal will become famous soon enoughkkseal will become famous soon enough
Reputation: 133
Default Re: Experiments in Technical Analysis

Quote:
Originally Posted by oxusmorouz View Post
Great thread guys!

The MACD (or any indicator based on a moving average for that matter) simply cannot exist without the lag effect. If it did, it would be going against the purpose of what it was meant to do,LOL...follow the trend.

Another point I'd like to stress here is that the lag associated with an indicator is inversely related to the number of false trades generated by a security. So an indicator which doesn't lag the market is an indicator which gives out the most number of false signals! (commission cost + loss incurred from false trades should approximately be equal to the loss incurred by lagging the market). So whether an indicator lags or does not shouldn't be much of a worry to a person unless it lags by a terrible degree or it produces too many false signals...
What,I guess, should be more of a concern is the "smoothness" of the indicator,given the volatility. In the earlier pages of this post, I saw Karthik explaining about the 9 day EMA of the 13 day EMA...an excellent way to increase the smoothness of the indicator (DEMA - Double exponential moving average).
In one of my experiments using the same logic as the base, I have attempted to smoothen the moving average, but only to a great extent (With 7 TEMAs - Triple Exponential Moving Average and 5 Exponential MAs...a bit overcooked but the food has seemingly turned out good)
Here is an example:
http://**********.com/files/12504629...ed_MA.rar.html

For metastock users, here is the metastock code:
Mov(Tema(Mov(Tema(Mov(Tema(Mov(Tema(Mov(Tema(Mov(T ema(Mov(C,7,E),2),3,E),2),2,E),2),2,E),2),3,E),2), 2,E),2),2,E)

Unfortunately or fortunately, I don't have a clue about amibroker programming
and hence, the amibroker users must forgive me.

Oxymoron
Hi Oxy,

Agree with you It's always a choice between 'quick' & 'sure' and difficult to integrate the two.

BTW you seem to be an expert in Metastock coding. So could you please help in deciphering the meaning of the code i've posted at http://www.traderji.com/73645-post595.html (it's post 595 on pg 60 of this thread)

specially the meaning of the PREV function (what it returns etc.).

The code is one for determining Stop Losses based on Linear Regression & (Wilder's) Average True Range.

Thanking you in advance.

Regards,
Kalyan.
Reply With Quote
  #620  
Old 20th January 2007, 08:59 PM
Moderator
 
Join Date: Jul 2005
Location: kuwait
Posts: 1,456
Blog Entries: 5
Thanks: 45
Thanked 549 Times in 102 Posts
karthikmarar is a name known to allkarthikmarar is a name known to allkarthikmarar is a name known to allkarthikmarar is a name known to allkarthikmarar is a name known to allkarthikmarar is a name known to all
Reputation: 629
Default Re: Experiments in Technical Analysis - Trading the MACD

Hi Friends

Continuing with MACD....

We will define the remaining rules.

RULE: Bearish signals like ZL crossover, MA Crossover, Dips and Hooks are effective when the ADX is rising and DI- is also rising and both ADX and DI- are above D+.


RULE: Bullish signals are ineffective when the ADX are ineffective when the ADX is rising along with DI- and both are above D+.

RULE: When Bullish and Bearish signals are appearing alternately in quick succession it shows period of indecision and better to stay away .

Since ADX is a lagging indicator many times the ADX reacts only after a BUY or SELL condition occurs. In such case it is better to eye ball the charts and enter/exit a few days after the Buy/Sell condition. Many times a Power dips comes after a BUY condition indicating good entry opportunity.

Check out Example –2

Regards

Karthik

Last edited by karthikmarar; 20th May 2008 at 12:40 AM.
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

Similar Threads for: Experiments in Technical Analysis
Thread Thread Starter Forum Replies Last Post
Technical Analysis Course snowy Technical Analysis 28 7th November 2008 07:37 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


All times are GMT +5.5. The time now is 07:32 AM.

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