Rank: Newbie
Groups: Registered, Registered Users Joined: 4/4/2005(UTC) Posts: 6
|
hayseed wrote:hey sixpack..... metastock coding is not my forte, yet, but here might be a solution.......
this indicator
plots 1 when 20 is above the 15 and plots a -1 when 15 is above the 20.... change the 'E' to s for simple ma's
MASwitch:=If(Mov(( Mov(C, 20, E)),15,E)<Mov(C,20,E),1,If(Mov(( Mov(C, 20, E)),15,E)>Mov(C,20,E),-1,0));
If(BarsSince(MASwitch=1) <BarsSince(MASwitch=-1),1,-1)
for the expert
bullish=(Mov(( Mov(C, 20, E)),15,E)<Mov(C,20,E))
bearish=(Mov(( Mov(C, 20, E)),15,E)>Mov(C,20,E))
----------------------------------------------------------
system tester
buy order=(Mov(( Mov(C, 20, E)),15,E)<Mov(C,20,E))
sell order=(Mov(( Mov(C, 20, E)),15,E)>Mov(C,20,E))
sell short order=(Mov(( Mov(C, 20, E)),15,E)>Mov(C,20,E))
buy to cover=(Mov(( Mov(C, 20, E)),15,E)<Mov(C,20,E))
here is 'intc' with my attempt at your indicator/expert........which could be completly wrong of course......h
Well, if Metastock coding is not your forte, I like to see what you're really good at! :lol: I plugged the formulae in to the expert for the NDX and it works great. I'd like to use that same idea in the System Tester to see which periods work the best. Is that possible? Sorry for being so dumb at this......programming is not my forte.
But, thanks so much for the help. You guys are great!
|