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

Re: metastock-digest V1 #665



PureBytes Links

Trading Reference Links

In-Reply-To: <199907161545.JAA15653@xxxxxxxxxxxxxxxxxx>
Thanks for that, Bob, but, um, I'm really a newcomer and I tried entering 
that into MetaStock but it doesn't work...
 
> Can someone help me translate a TradeStation formula into MetaStock 
> terms, please? It runs like this:
> 
> Input Xdays (14);
> If Highest Bar(High,20)[1] < 7 and Low < Lowest (Low,5)[1]
> then buy tomorrow on the open;
> If BarsSincceEntry = Xdays then exitlong at the close;
>   
> Many thanks,
> Ian
> - ---
> EL uses n where MS uses -n.
> if (ref (HHV(H,20),-1) < 7 and L < (ref (LLV(L,20),-1)
> buy at the open and sell it 14 days later.
> 
> Bob

Cheers,
Ian