|
|||||||||||||||||||||||||||||||
|
|||||||||||||||||||||||||||||||
| Special offer: buy MetaStock (try for free) | Reuters QuoteCenter Real-Time Data (get a free month) | EOD Data |
|
-----Original Message----- From: owner-metastock@xxxxxxxxxxxxx [mailto:owner-metastock@xxxxxxxxxxxxx]On Behalf Of Al Taglavore Sent: Monday, January 08, 2001 1:10 AM To: metastock@xxxxxxxxxxxxx Subject: Re: Formula help Dave, Thank you very much. The Inactivity tab procedure worked exactly as I had hoped.
The entry condition does not seem to make the entry that I have wanted. To explain,
I have two conditions for entry: I can get the L<=LLV(L,18) coupled with a close above the MP() to signal entry with no problem.I cannot, however, connect the L<=(L,18) statement with the statement that my entry can only occur above the high of the lowest bar. (I make my entry based on a % of ATR(50) above the high.) I have been trading, with success, this condition.I want to test and attempt to optimize the condition to enhance profits and feel more confident to increase the trade size.My exit has been C<Ref(L,-1). Now I can have that exit and the three day in trade rule to build upon. Again, thank you very much for the response. Hopefully, I have made clear my objective. If you can suggest a code for the entry it would be much appreciated. Thank you, Al Taglavore -----Original Message----- Al, No problem. Since you've chosen the inactivity tab for the exit, I will stay with the assumed use of the MetaStock System Tester. So the setup is that the Low of a bar is the Lowest value in 18 bars. SETUP:=L=LLV(L,18); Your buy stop is set at a percentage of the ATR, I'll use 70% in this example; if the HIGH of the next or any subsequent bar is greater than this HIGH+0.7*(ATR(50)) {Note: I prefer the use of Mov(ATR(1),50,S) to the ATR(50) function. It eliminates some of the smoothing and seems to work better for me--credit to Chuck LeBeau}. LONGTRIGGER:=H>=(ValueWhen(1,SETUP=1,HIGH)+0.7*(ATR(50))); So by combining,the system tester will make you LONG on your desired entry
bar. You can set the entry to delay 1 bar and enter on the next open or enter
on the high of that current LONGTRIGGER bar.I would like to set the entry to
be, let's say that setup high plus 5 ticks or .25 for equities.Unfortunately,
this is where the MetaStock Formula Language hits a limitation. Some coding
with the PREV function will accomplish this, but it will effectively halt your
processing time, especially on large explorations. I expect you are testing your entry conditions for winning percentage. Since you've used the ATR() for your entry, can I assume you'll be looking at replacing the hard three day stop with something like a chandelier exit or even a doubly adaptive one? I have to ask....this is similar to some systems I am currently working on. I hope this helps! Dave Nadeau Code:Long SETUP:=L=LLV(L,18); --- {to ju¿ ja dopisa³em, ale tylko po to by zrobiæ z tego system
w "obie strony"} Short SETUP:=H=HHV(H,18);
Code to difficult? Find somebody to help you with coding here.
all systems for MetaStock all systems
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| However we try to maintain hiqhest possible level of service - most formulas, oscillators, indicators and systems are submitted by anonymous users. Therefore S4T™ does not take any responsibility for it's quality. If you use any of this information, use it at your own risk. You are responsible for your own trading decisions. Be sure to verify that any information you see on these pages is correct, and is applicable to your particular trade. In no case will S4T™ be responsible for your trading gains or losses. |
||
|
||
|