PureBytes Links
Trading Reference Links
|
Thanks Roy. It's mostly the simple mechanics at the beginning. I
know there are loads of examples out there (and probably on my computer)
but finding them and moving them in and out of MS becomes a first challenge.
>I've only ever come across one guy who thought he was an expert with
MS
after two weeks
I'm shattered. :-)
Bodaire
---------
Roy Larsen wrote:
Bodaire
I think the function that would be most useful to your cause is
ValueWhen(). The functions Gordon
mentioned are available for MS 8.01 and 9.0 but there are other
methods that work both with these
and earlier versions as well.
I'd suggest that you have a look at the PS Fractal Trading
Systems found in every version of MS
since 7.2. Convert the Enter Long code into an indicator and pull
it apart. Here's my own variation
used on the ASX which sets a price target that is one price increment
above a recent HIGH.
This can be easily adapted to give a price or binary signal when
the line is touched or breached. If
this doesn't do what you want check out how a simple latch works
and see if that helps. There's a
document of mine called "Thanks for the memory", or possibly an
earlier version with a different
name, floating around in the files sections of numerous groups.
If a simple latch doesn't help then
the PREV latch may help (same document).
Consider creating your system code as indicators before you try
and run it in the system tester -
it's much easier to troubleshoot an indicator because you can plot
it on a chart and really see
what's happening. Unless your optimising there's no need to have
any code other than an Fml() call
or two in the System Tester anyway.
Whatever else you do don't just sit and wait for someone else to
give you the answer. You'll learn a
lot more if you have to ferret around a bit, try things, see what
works, see what doesn't, find out
why something doesn't work. I've only ever come across one guy
who thought he was an expert with MS
after two weeks. For everybody else, you and I included, it takes
time and effort. Good luck with it
anyway.
Roy
{System Fractal}
Single:=Ref(H,-2)>Ref(H,-4) AND
Ref(H,-2)>Ref(H,-3) AND
Ref(H,-2)>Ref(H,-1);
Double:=Ref(H,-2)>Ref(H,-5) AND
Ref(H,-2)>Ref(H,-4) AND
Ref(H,-2)=Ref(H,-3) AND
Ref(H,-2)>Ref(H,-1);
Triple:=Ref(H,-1)>Ref(H,-6) AND
Ref(H,-2)>Ref(H,-5) AND
Ref(H,-2)=Ref(H,-4) AND
Ref(H,-2)=Ref(H,-3) AND
Ref(H,-2)>Ref(H,-1);
F:=ValueWhen(1,Single OR Double OR Triple,Ref(H,-2));
Tp:=If((F>=0.1 AND F<0.5), F+.005,If(F<0.1,F+.001,F+.01));
Tp;
> Thanks Gordon. From the last time I used it, my
> v8 has some bug and it won't find the vendor
> eSignal. So, I'm back using my v7. That's
> working fine for now. I just need to get as much
> programming practice as possible so that I can
> backtest some trading systems.
>
> Bodaire
> ----------
>
> Gordon Sutherland wrote:
>
> > Bodaire,
> >
> > I have version 8.01 EOD.
> >
> > There is a set of special functions in the
> > Enhanced System Tester that are used for the
> > purpose you query. Whilst you are in the System
> > Tester and in a formula window then click on the
> > button named "Functions." and you will find a
> > function category named "Simulation" you need to
> > choose one of these to lock-into the buy point
> > of your system. I don't use Enhanced System
> > Tester for testing anymore so I can't be of much
> > additional help. Good luck!
> >
> > Regards,
> >
> >
> > Gordon Sutherland
> >
> > -----Original Message-----
> > From: Bodaire [mailto:bodaire88@xxxxxxxxxx]
> > Sent: Thursday, 22 July 2004 9:26 a.m.
> > To: MetastockUsers; EquisMetaStock
> > Subject: [Metastockusers] A Moving Target
> >
> > How do I nail down a price in MS?
> >
> > If I use Ref(H,-3), I get the high from 3 days
> > ago. If I buy at $1 above that and get out when
> >
> > I've made $3, what would the coding look like.
> >
> > Even if I give the entry price a name
> > BuyPrice:=Ref(H,-3)+1, the BuyPrice still moves
> > as
> > I move from bar to bar. How do I set it as a
> > constant from the time of buy/entry?
> >
> > Bodaire
> > -------------
Yahoo! Groups Sponsor
ADVERTISEMENT
Yahoo! Groups Links
To visit your group on the web, go to:http://groups.yahoo.com/group/Metastockusers/
To unsubscribe from this group, send an email to:Metastockusers-unsubscribe@xxxxxxxxxxxxxxx
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
|