![]() |
|
| Discuss Experiments in Technical Analysis at the Technical Analysis within the Traderji.com - Discussion forum for Stocks Commodities & Forex; Hi Karthik, Here is the code: Indicator 1: Name : "zz macd divergence binary wave ... |
|
|||||||
| Notices |
| Technical Analysis Discussion of all the principles involved in technical analysis. |
![]() |
|
|
Thread Tools |
| Sponsored Links |
|
#721
|
|||
|
|||
|
Hi Karthik,
Here is the code: Indicator 1: Name : "zz macd divergence binary wave bullish" Formula : If((Mov(C,12,E) - Mov(C,26,E)-Mov(Mov(C,12,E) - Mov(C,26,E),9,E) > Ref(Mov(C,12,E) - Mov(C,26,E)-Mov(Mov(C,12,E) - Mov(C,26,E),9,E),-5) AND H < Ref(H,-5)) AND (Mov(C,12,E) - Mov(C,26,E)-Mov(Mov(C,12,E) - Mov(C,26,E),9,E) > Ref(Mov(C,12,E) - Mov(C,26,E)-Mov(Mov(C,12,E) - Mov(C,26,E),9,E),-4) AND H < Ref(H,-4)),1,0) Indicator 2: Name: "zz macd divergence binary wave bearish" Formula: If(((Mov(C,12,E) - Mov(C,26,E)) - Mov((Mov(C,12,E) - Mov(C,26,E)),9,E) < Ref((Mov(C,12,E) - Mov(C,26,E)) - Mov((Mov(C,12,E) - Mov(C,26,E)),9,E),-5) AND C > Ref(C,-5)) AND(Ref((Mov(C,12,E) - Mov(C,26,E)) - Mov((Mov(C,12,E) - Mov(C,26,E)),9,E),-1) < Ref((Mov(C,12,E) - Mov(C,26,E)) - Mov((Mov(C,12,E) - Mov(C,26,E)),9,E),-6)AND Ref(C,-1) > Ref(C,-6)),1,0) ----> Expert : In highlights : 1) Bullish divergence: Fml( "zz MACD divergence binary wave bullish") = 1 (colour = green) 2) Bearish divergence: Fml( "zz macd divergence binary wave bearish") = 1 (colour = red) In Symbols: 1) Buy : Fml( "zz MACD divergence binary wave bullish") = 1 AND C > O AND C > Ref(C,-1) 2) Sell: Fml( "zz macd divergence binary wave bearish") = 1 AND C < O AND C < Ref(C,-1) This was coded about 2months back when I started off with metastock coding. You would find terrible coding techniques used here and hence, you must excuse me. However, here is the MACDH formula with customizable time frames (created today): FMA:= Input("FastMA",1,500,12); SMA:= Input("SlowMA",1,500,26); Sig:= Input("Signal",1,500,9); a:= Mov(C,FMA,E); b:= Mov(C,SMA,E); d:= a - b ; f:= Mov(a-b,Sig,E); d-f; 0 BTW, I'd also recommend you visiting www.metastocktools.com Jose's MACDH divergence toolkit is considered superb but it costs E400 I guess. Oxy |
| Sponsored Links |
|
#722
|
|||
|
|||
|
Quote:
In any case i'm not looking to apply it in the MACDH of prices. Regards, Kalyan. |
|
#723
|
|||
|
|||
|
Improved MACDH divergence kit
Download Link: http://www.************/file/10030008...ivergence.html Metastock coding for metastock 8 users: Indicator 1: zz MACDH Formula: FMA:= Input("FastMA",1,500,12); SMA:= Input("SlowMA",1,500,26); Sig:= Input("Signal",1,500,9); a:= Mov(C,FMA,E); b:= Mov(C,SMA,E); d:= a - b ; f:= Mov(a-b,Sig,E); d-f; 0 Indicator 2: zz MACDH Divergence Formula: If( H = HHV(H,60) AND Fml( "zz MACDH") = LLV(Fml("zz MACDH"),40),-1, If(L = LLV(L,25) AND Fml("zz MACDH") = HHV(Fml("zz MACDH"),25),1,0)); Now go to expert advisor ---> new (name it MACDH Divergence kit) ---> symbols: Symbol 1: Buy Formula: Fml( "zz MACDH divergence") = 1 AND C > O AND C > Ref(C,-1) Symbol 2: Sell Formula: Fml( "zz MACDH divergence") = -1 AND C < O AND C < Ref(C,-1) Go to highlights: Highlight 1: Bullish divergence Formula: Fml( "zz MACDH divergence") = 1 Highlight 2: Bearish Divergence Formula: Fml( "zz MACDH divergence") = -1 A hectic process, I must say. I have enclosed a couple of charts. Note : Trend kills this system (generates too many false trades when in an established trend). The system does not kill the trend Oxy Last edited by oxusmorouz; 18th September 2008 at 02:32 PM. |
|
#724
|
|||
|
|||
|
Kalyan, I was just trying to establish a link between EWs and MACDH divergence ,LOL...as absurd as it may sound, I strongly believe they are derived from the same premise --> a 3 wave correction
|
|
#725
|
|||
|
|||
|
Quote:
Actually it does not make a difference how you plot it as long as you can interpret it properly. But the Histogram presents a easier to visualize and understand picture especially in case of divergences. Also the histogram lends itself to some nice color coding to make the understanding easier and quicker. Quote:
Right now I am not in a position to comment on the Chaikin Oscillator. Enclosing a sample chart showing the MACD with Histogram, LR of close and LR of the Histogram. Regards Karthik Last edited by karthikmarar; 20th May 2008 at 12:26 AM. |
|
#726
|
|||
|
|||
|
Hi Anant,
No new post from you for long time. Are you working on any new twist to Experiments in Technical Analysis. Regards *** Uma *** |
|
#727
|
|||
|
|||
|
Thanks, Karthik.
Regards, Kalyan. |
|
#728
|
|||
|
|||
|
Could be. If prices rise & fall in 5 & 3 wave patterns then it will get reflected in the MACD as well since both reflect the same price movements.
|
|
#729
|
|||
|
|||
|
Quote:
You are right. The Histogram method has inherent problem of whipsaws. I have already used the Hi-Lo threshold and MA threshold to reduce them. I have described the two options in an earlier post in this thread. You might have gone through that. I was expecting some comments from you on this. Although there was reduction in whipsaws the two alternatives had some other problems in specific cases as I have pointed out in that post. The MA threshold still gives a few more whipsaws compared to Hi-Lo threshold. I am working on another alternative. It appears to give better performance than all the earlier variants. I will post it in a day or two. Your comments and guidance will be very useful for refining the system. Regards -Anant |
|
#730
|
|||
|
|||
|
Quote:
Will be eagerly awaiting your post. I had read your earlier post but really didn't know what to say as both the thresholds seemed to have their own share of problems. Your efforts are commendable and i'm sure there's some way to fix this (to a reasonable degree); but at the same time any filter should not leave out large chunks of profitable moves - i'm sure you'll agree to that. Regards, Kalyan. P.S.: This whipsaw problem (not just for your system but more or less all MA based systems) somehow keeps playing at the back of my mind all day. I'm sure you or Karthik or both will succeed where my limited intelligence fails. |
| 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 | 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 |
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.