View Full Version : what are the required basic phrasing and ordering of command
gawdib
24th December 2003, 11:40 PM
is there a place in the manual that clearly spells out what are the minimum commands, and the order they must be in to acheive an outcome so as to use the outcome as an indicator , an expert or trade data analysis?
There seeme to be so many varieations, I cannot tell what is always required. I read the quick tutorial, so I know that variation, but it does nnot say if that order of commands is alwyas necesary and I cannot tell, even thought i am quite familiar with metastock. sorry t be so dense. thank you.
David Samborsky
25th December 2003, 01:21 AM
The following example shows the minimum requirements to setup a trade database. Note that the call to the Initialize function should come before any other external calls.
This code should be inserted in column A of the exploration. The filter should not be used.
Also make sure you have some securities selected and the minimum data loading requirements of the explorer should be an adequate number otherwise no trade information will be generated.
EntryTrigger := Cross(MACD(),Mov(MACD(),9,E));
EntryPrice := CLOSE;
ExitTrigger := Cross(Mov(MACD(),9,E),MACD());
ExitPrice := CLOSE;
InitialStop := 0; { optional initial stop }
ExtFml( "TradeSim.Initialize"); { Initialize internal variables }
ExtFml( "TradeSim.RecordTrades",
"MACD Long Example", { Trade Data Filename }
LONG, { Trade Position Type }
EntryTrigger, { Entry Trigger }
EntryPrice, { Entry Price }
InitialStop, { Initial Stop }
ExitTrigger, { Exit Trigger }
ExitPrice, { Exit Price }
START); { Trade Recorder Control }
vBulletin® v3.8.6, Copyright ©2000-2012, Jelsoft Enterprises Ltd.