[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[EquisMetaStock Group] SPY code update



PureBytes Links

Trading Reference Links

Thanks Martin. I appreciate your assistance. Unfortunately we're 
still stuck.

Here's the code for the VLE part. I wrote it as an expert so you can 
attach it directly to the SPY chart. However, it does not test out 
properly. I'm looking at the formula and MS to see if either one is 
the problem. 

To make an expert

Highlight Buy

a:=Security("online:$VLE",C);
X:=If(Cum(Ref(a>Lowest(a)*1.04 OR a<Highest(a)*.96,-1))=0,
 If(a>Lowest(a)*1.04,1,
  If(a<Highest(a)*.96,-1,0)),
If(PREV=1,
 If(a<HighestSince(1,PREV<1,a)*.96,-1,PREV),
  If(a>LowestSince(1,PREV>-1,a)*1.04,1,PREV)));
I:=Cum(1)<=2;
State:=BarsSince(X=1 OR I)<BarsSince(X=-1 OR I)+(Cum(X=1)=1);
State;

Symbols Buy

a:=Security("online:$VLE",C);
X:=If(Cum(Ref(a>Lowest(a)*1.04 OR a<Highest(a)*.96,-1))=0,
 If(a>Lowest(a)*1.04,1,
  If(a<Highest(a)*.96,-1,0)),
If(PREV=1,
 If(a<HighestSince(1,PREV<1,a)*.96,-1,PREV),
  If(a>LowestSince(1,PREV>-1,a)*1.04,1,PREV)));
I:=Cum(1)<=2;
x=1 AND Ref(x,-1)=-1

Symbols Sell

a:=Security("online:$VLE",C);
X:=If(Cum(Ref(a>Lowest(a)*1.04 OR a<Highest(a)*.96,-1))=0,
 If(a>Lowest(a)*1.04,1,
  If(a<Highest(a)*.96,-1,0)),
If(PREV=1,
 If(a<HighestSince(1,PREV<1,a)*.96,-1,PREV),
  If(a>LowestSince(1,PREV>-1,a)*1.04,1,PREV)));
I:=Cum(1)<=2;
x=-1 AND Ref(x,-1)=1

You don't need a highlight sell if you color your line red. It's the 
inverse. 

This is without the 20 dma. You can add that to the chart by hand.

Everything looks right but something is out of wack. Back to the 
drawing board. it predicts the trend changes nicely. 






--- In equismetastock@xxxxxxxxxxxxxxx, "praktikus_ms" 
<praktikus@xxxx> wrote:
> Hi JO,
> 
> What people like you, Roy and many others do here in this group is 
> greatly appreciated by me (and I guess many others too). It helps 
me 
> a lot to get a greater unterstanding of MS. Thank you all for your 
> posting!
> 
> A really good way of further improvement is the give and take rule. 
> Only the one who teaches realizes what he can learn from that.
> 
> JO, I was not sure wich version of MS you are using and from my 
> expirience I know that a lot of people dont know the Security Data 
> function. 
> 
> I was just trying to assist with my little knowledge and was not 
> aware of the problems you described. From my use I did not come up 
> with similar problems.
> 
> Thank you,
> 
> Martin 
> 
>  
> > While this one looks the same on the surface, Roy and I have been 
> > exchanging data and it has yet to work properly. Roy has found at 
> > least part of the problem with false signals and overlapping 
> signals 
> > leading to wrong interpretations of trades. Hopefully in a couple 
> of 
> > more days, we'll have it ironed out. The backtesting seems to 
work 
> > better for Roy using MS 7.02. MS 8.01 still has a few issues. As 
I 
> > said these problems didn't come up on TradeStation. MS is a 
little 
> > more ridgid.


------------------------ Yahoo! Groups Sponsor ---------------------~-->
Buy Ink Cartridges or Refill Kits for your HP, Epson, Canon or Lexmark
Printer at MyInks.com. Free s/h on orders $50 or more to the US & Canada.
http://www.c1tracking.com/l.asp?cid=5511
http://us.click.yahoo.com/mOAaAA/3exGAA/qnsNAA/BefplB/TM
---------------------------------------------------------------------~->

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/