gawdib
2nd March 2004, 05:51 PM
I need to have various ways of exiting. all include referring to the entry price , while also adding other conditions.
I have tried to check out what the results look like , by using your format for doing so, by having it show up in experts.
However, when I put in exit something even as simple as
entrytrigger:= C>10; EntryPrice:=CLOSE;
ExitTrigger:= C>1.3*EntryPrice; ExitPrice:=CLOSE;
initialstop:=0;dummy:=ExtFml("TradeSim.Initialize" );dummy:=ExtFml("TradeSim.SuppressFileProcessing");dummy:=ExtFml( "TradeSim.SetReturnInfoType",ExitTriggers;dummy:=ExtFml("tradesim.setstopgappricetoopen"); ExtFml( "TradeSim.RecordTrades", " yyccdc",LONG, EntryTrigger, EntryPrice, 0, ExitTrigger, ExitPrice, START);
,, nothing shows up for sells, except on the very last trading day displayed in the metastock chart. ( another issue: I cannot understand why the last day is a sell)
I am actually tyring to do something like selling after the stock price has advanced at least 30 % above the entry price then has retraced more than 5% down from the highest high value of the close in the past 7 trading days.
In addition, i want to put in anthoer exit condition that would exit if the stock price has remained between -5% and +5% of the value of the entry price. etc etc,
Your assistance would sure be apreciated. thank you and best regards, geoffrey
I have tried to check out what the results look like , by using your format for doing so, by having it show up in experts.
However, when I put in exit something even as simple as
entrytrigger:= C>10; EntryPrice:=CLOSE;
ExitTrigger:= C>1.3*EntryPrice; ExitPrice:=CLOSE;
initialstop:=0;dummy:=ExtFml("TradeSim.Initialize" );dummy:=ExtFml("TradeSim.SuppressFileProcessing");dummy:=ExtFml( "TradeSim.SetReturnInfoType",ExitTriggers;dummy:=ExtFml("tradesim.setstopgappricetoopen"); ExtFml( "TradeSim.RecordTrades", " yyccdc",LONG, EntryTrigger, EntryPrice, 0, ExitTrigger, ExitPrice, START);
,, nothing shows up for sells, except on the very last trading day displayed in the metastock chart. ( another issue: I cannot understand why the last day is a sell)
I am actually tyring to do something like selling after the stock price has advanced at least 30 % above the entry price then has retraced more than 5% down from the highest high value of the close in the past 7 trading days.
In addition, i want to put in anthoer exit condition that would exit if the stock price has remained between -5% and +5% of the value of the entry price. etc etc,
Your assistance would sure be apreciated. thank you and best regards, geoffrey