![]() |
| Discuss Metastock System ... at the MetaStock within the Traderji.com - Discussion forum for Stocks Commodities & Forex; Good friends, i would like ask, if you help me to design a simple Metastock ... |
|
|||||||
| Notices |
![]() |
|
|
Thread Tools |
| Sponsored Links |
|
#1
|
|||
|
|||
|
Good friends, i would like ask, if you help me to design a simple Metastock system or metastock expert, with the following condictions:
Buy signal: when i put a uptrendline in the chart and the prices close below of this uptrenline and this bar is blanc (close above open). Sell signal: when i put a downtrendline in the chart and the prices close above of this downtrenline(close below open). Best regards Go In |
|
#2
|
|||
|
|||
|
Sorry but the conditions are wrong. The new condictions are obvious:
Buy signal: when i put a downtrendline in the chart and the prices close above of this downtrenline and this bar is blanc (close above open). Sell signal: when i put a uptrendline in the chart and the prices close below of this uptrenline and this bar is black (close below open). Best regards Go In uptrendline in the chart and the prices close below of this uptrenline and this bar is blanc (close above open). Sell signal: when i put a downtrendline in the chart and the prices close above of this downtrenline(close below open). Best regards Go In |
|
#3
|
|||
|
|||
|
Sorry but the conditions are wrong. The new condictions are obvious:
Buy signal: when i put a downtrendline in the chart and the prices close above of this downtrenline and this bar is blanc (close above open). Sell signal: when i put a uptrendline in the chart and the prices close below of this uptrenline and this bar is black (close below open). Best regards Go In |
|
#4
|
|||
|
|||
|
Dear Goin
As far as I understand Metastock does not have a function to recognize the user drawn trend line unlike Amibroker in which line studies made by the user can be named and used in scans and explorations. warm regrads karthik |
|
#5
|
|||
|
|||
|
Friend Karthik,
I discover in internet one formule to draw one trendline in a graph. Is necessary only select date periods. Do not permit extensions on the right/left. With this formule modified is not possible create the system. Perheps it is necessary introduce the right/left extensions and creat a funtion that recognize this trendline. The formule of trenline is: { Trendline - date range v3.0} { Dates user input } StDay:=Input("start Day",1,31,1); StMnth:=Input("start Month",1,12,1); StYear:=Input("start Year",1800,2200,2006); EnDay:=Input("end Day",1,31,1); EnMnth:=Input("end Month",1,12,6); EnYear:=Input("end Year",1800,2200,2006); { Selected date periods } start:=Year()>StYear OR (Year()=StYear AND (Month()>StMnth OR Month()=StMnth AND DayOfMonth()>=StDay)); end:=Year()<EnYear OR (Year()=EnYear AND (Month()<EnMnth OR Month()=EnMnth AND DayOfMonth()<=EnDay)); { Date signals } date1:=start AND Alert(start=0,2); date2:=end=0 AND Alert(end,2); date2:=Zig(end AND Cum(1)>1,1,$)=1; { Restrict out of range dates to chart } date1:=If(LastValue(Cum(date1))>0,date1, Cum(1)=1); date2:=If(LastValue(Cum(date2))>0,date2, LastValue(Cum(1))=Cum(1)); { Sort dates in chronological order } dateOk:=LastValue(BarsSince(date1)) >LastValue(BarsSince(date2)); day1:=If(dateOk,date1,date2); day2:=If(dateOk,date2,date1); { Data Array type, levels } dataArray:=L; price1:=ValueWhen(1,day1,dataArray); price2:=LastValue(ValueWhen(1,day2,dataArray)); { Trendline definition } x1:=LastValue(BarsSince(day1)); x2:=LastValue(BarsSince(day2)); trendline:=price1 +BarsSince(day1)*(price2-price1) /Max(x1-x2,.000001); { Rem next line to extend plot to end of chart } trendline:=Ref(Ref(trendline,-x2),x2); { Plot on price chart } trendline Many thanks Go In |
| Sponsored Links |
|
|
![]() |
| Bookmarks |
| Thread Tools | |
|
|
Similar Threads for: Metastock System ...
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| How to Design a Trading System Within MetaStock. | tanewbie | Technical Analysis | 5 | 25th January 2008 04:19 PM |
| MF Investment System | ravi_s_ghosh | Mutual Funds Discussion Forum | 10 | 7th September 2007 12:12 AM |
| My System | ping_manoj | Technical Analysis | 53 | 2nd March 2007 04:51 PM |
| I want MACD HISTOGRAM DIVERGENCE SYSTEM TESTER IN METASTOCK | exportwork | MetaStock | 18 | 14th May 2006 04:03 PM |
| Enhanced system tester and Optionscope in Metastock | sh50 | Software | 2 | 3rd September 2004 11:42 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.