![]() |
| Discuss please correct this formula at the AmiBroker within the Traderji.com - Discussion forum for Stocks Commodities & Forex; from few days i have been trying to correct this very simple formula which helps ... |
|
|||||||
| Register | Blogs | FAQ | Chat Room [1] | Search | Today's Posts | Mark Forums Read |
|
Welcome to the Traderji.com - Discussion forum for Stocks Commodities & Forex. You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today! If you have any problems with the registration process or your account login, please read the FAQ. |
![]() |
|
|
Thread Tools |
| Sponsored Links |
|
#1
|
|||
|
|||
|
from few days i have been trying to correct this very simple formula which helps me find stocks which are making new weekly higher highs and higher lows, however the formula is not working properly. if someone can help me with this, the exploration formula that i have is
============================================= TimeFrameSet(inWeekly); HH = High > Ref(High,-1) AND Ref(High,-1) > Ref(High,-2); HL = Low > Ref(Low,-1) AND Ref(Low,-1) > Ref(Low,-2); Filter = HH AND HL; AddColumn(High,"high"); AddColumn(Ref(High,-1) ,"Last Week High"); AddColumn(Ref(High,-2) ,"Previous Week High"); TimeFrameRestore(); ============================================= |
|
#2
|
|||
|
|||
|
This is my Copy paste effort. I am myself not very proficient in coding Metastock.
See if what follows would be of any use to you : Exploration for highest percentage rise in share prices, stocks traded for any length of time : Column A: +% incrs TtlDays:=LastValue(Cum(1)); FirstDay:=If(TtlDays>252,TtlDays-252,1); FirstCl:=ValueWhen(1,Cum(1)=FirstDay,C); Int((C/FirstCl-1)*10000)/100 Column B: today Close Column C: 52w back TtlDays:=LastValue(Cum(1)); FirstDay:=If(TtlDays>252,TtlDays-252,1); ValueWhen(1,Cum(1)=FirstDay,C) Column D: $ t/over Int(WC()*V) Column E: months Int(LastValue(Cum(1)/21)) Column F: weeks Int((LastValue(Cum(1)) -Int(LastValue(Cum(1)/21))*21)/5) Filter: colA > 0 AND colD > 10000 |
|
#3
|
|||
|
|||
|
thanks for your efforts rkkarnani, however i am using amibroker, so the code that was posted was from amibroker. i am trying to find stocks which are making higher highs and higher lows on weekly charts from past three weeks. anyways thanks once again for trying. so i request once again to senior members if they can help me correct this AFL
|
| Sponsored Links |
|
|
![]() |
| Thread Tools | |
|
|
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.