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

RE: MetaStock formula query



PureBytes Links

Trading Reference Links

From: owner-metastock@xxxxxxxxxxxxx
[mailto:owner-metastock@xxxxxxxxxxxxx]On Behalf Of Ian Waugh
Sent: Thursday, July 15, 1999 10:24 AM
To: metastock@xxxxxxxxxxxxxxxxxx
Cc: ianwaugh@xxxxxxxxxxxxxxxxxxx
Subject: MetaStock formula query


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