PureBytes Links
Trading Reference Links
|
Mike,
Inorder to overcome the "must be constant" error use a DLL.
Support is much better now that Equis supports a forum. The link can
be found in our links section.
Conquering the nuances of MS code is not a quick study. Read the
users manual and the Formula Primer (link in the links section). You
can further enhance your abilities by studying the many indicators
that have been posted here and at the Equis Forum site. There are
some Vendor sites that you will also find rewarding. Again check the
links that are provided in the links section for some of the best.
In my opinion Roy and Jose have mastered Metastock coding skills.
Hhhhmm,....maybe Metastock should confer Masters or PHD Degrees for
this.
If you are interested Roy has a monthly newsletter (MSTT) where he
highlights many of the tricks that he and others have learned. It is
well worth the investment!
I may be wrong but I believe the solution to your problem lies in the
use of a "latch". This is an idea that Roy developed and is discussed
in detail in a learning video that is available at the Equis Forum.
Roy has also developed a program which is called Trade Equity. It is
pure genius in that it tackles some of the problems that you are
encountering and it uses the explorer rather than the system tester
for its solution. I can personally vouch for the enormous amount of
time that it took Roy to develop the codes for this and know that it
took months of diligent preparation.
I believe a problem similar to yours was posted here sometime within
the last 12 months. You might try a search through the archived
messages to see if you can find an answer. Otherwise you will need to
post your codes inorder that someone can help you.
Best of Luck,
Preston
--- In equismetastock@xxxxxxxxxxxxxxx, "atco.mike" <haley.mike@xxxx>
wrote:
>
> Hello,
> I'm very new to Metastock, but have some programming background.
> (Basic & Foxpro 2.6) I'm troubled by my inability to assign
> variables with in the System Tester. Let me first tell you in
plain
> English what I hope to accomplish. My buy trigger is to buy above
> yesterday's high. I then want to put a 4% GTC stop loss order in
> the first day. After the 1st day, I want to take profit at +4%
> from my buy point unless the price is higher than my 4% profit
> stop. If the price is over my 4% stop gain, then I only want to
> exit the position when any one days low is less than the previous
> days low. (kind of like a trailing stop at the lows) If I assign
> a variable to hold my buy price in the buy tab of the system tester
> it is not remembered in the sell tab of the system tester. I then
> tried to capture my buy price within the sell tab of the S.tester.
> I've tried using the valuewhen( , , ) function, but I struggle with
> these functions. I get a lot of "must be a constant" errors when
> trying to use the function. I have to try to trick the function to
> do what I want it to do…. There must be an easier way…. I see a
lot
> of complicated code being shared with the group, so I'm wondering
> where and how did these people learn to program this language with
> what I perceive to be so little support. Does anyone have a simple
> solution to this seemingly very simple problem???
> Thanks,
> Mike
>
------------------------ Yahoo! Groups Sponsor --------------------~-->
Try Online Currency Trading with GFT. Free 50K Demo. Trade
24 Hours. Commission-Free.
http://us.click.yahoo.com/RvFikB/9M2KAA/U1CZAA/BefplB/TM
--------------------------------------------------------------------~->
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/equismetastock/
<*> To unsubscribe from this group, send an email to:
equismetastock-unsubscribe@xxxxxxxxxxxxxxx
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
|