PDA

View Full Version : help needed metastock/tradesim


wkw1952
30th November 2006, 11:16 AM
Hi Jose

What am i missing here

comes up with an error in columnA in metastock selects no records at all.

Pds:=34;
Comp:=CLOSE/INDICATOR;
Index:=RSI(Comp,Pds);
NZU:=Index -55;
NZL:=Index -45;
UC:=Index-70;
NeutUp:=CLOSE-(CLOSE*(NZU/100));
OB:=CLOSE-(CLOSE*(UC/100));
NeutL:=CLOSE-(CLOSE*(NZL/100));
EntryTrigger:=CLOSE>NeutUp AND Ref(CLOSE,-1)<=Ref(NeutUp,-1);
EntryPrice:=OPEN;
ExitTrigger:=(CLOSE<NeutL AND (Ref(CLOSE,-1)>=Ref(NeutL,-1))) OR (CLOSE<OB AND (Ref(CLOSE,-1)>=Ref(OB,-1)));
ExitPrice:=OPEN;
InitialStop:=0;

ExtFml( "TradeSim.RecordTrades",
"Comparative Stenght Channel", { Trade Database Filename }
Long,
EntryTrigger,
EntryPrice,
InitialStop,
ExitTrigger,
ExitPrice,
START);

Jose
4th December 2006, 04:17 AM
Problem here:

Comp:=CLOSE/INDICATOR;



jose '-)