PauDor
7th November 2004, 12:15 PM
Hi there,
I have been working on a breakout system for trading the long side of the NASDAQ with CFD,s.
I wish to enter trades on the open, the day after a the entry trigger if the open price is greater than or equal to the previos days close.
My question is how can I incorporate the above into the system below and if anyone can pick up any fundamental problems with the system below as I am still learning how to write these systems ?
LongEntryTrigger :=
{Bollinger Band Width 12 Mth low + 3%}
(((BBandTop(C,20,S,2.25)-BBandBot(C,20,S,2.25))/Mov(C,20,S))*100)<(LLV((((BBandTop(C,20,S,2.25)-BBandBot(C,20,S,2.25))/Mov(C,20,S))*100),260))+3 AND
{Bollinger Band Width 12 Mth high - 12%}
(((BBandTop(C,20,S,2)-BBandBot(C,20,S,2))/Mov(C,20,S))*100)<(HHV((((BBandTop(C,20,S,2)-BBandBot(C,20,S,2))/Mov(C,20,S))*100),260))-8.5 AND
{3% Consolidation Highest Close to Lowest Close in the last 10 days}
(((Ref(HHV(C,7),-1)-Ref(LLV(C,7),-1))/Ref(LLV(C,7),-1))*100)<3 AND
CLOSE>=BBandTop(C,15,S,1.65)AND
(VOLUME>Mov(V,7,E) OR Mov(OBV(),3,E)>Mov(OBV(),30,E) OR Mov(V,3,E)>Mov(V,10,E)) AND
(ATR(260)/Mov(C,260,S))*100>=2.5 AND
LinRegSlope(C,14)>0 AND
MFI(14)<75 ;
LongEntryPrice := OPEN;
LongExitTrigger := Cross(Ref(LLV(C,4),-1),L) ;
LongExitPrice :=
Ref(LLV(C,4),-1);
LongInitialStop := 0;
ExtFml( "TradeSim.Initialize");
ExtFml("TradeSim.SetStartRecordDate",1,1,1997);
ExtFml("TradeSim.SetStopRecordDate",1,7,2004);
ExtFml("TradeSim.EnableDelayOfEntryByOneBar");
ExtFml( "TradeSim.EnablePriceFilter") ;
ExtFml("TradeSim.RecordTrades",
"PD The Sqeeze Long Cross 3DH NASDAQ",
Long,
longEntryTrigger,
longEntryPrice,
longInitialStop,
longExitTrigger ,
longExitPrice ,
START);
Forever grateful if you could show the way,
Cheers,
Paul
I have been working on a breakout system for trading the long side of the NASDAQ with CFD,s.
I wish to enter trades on the open, the day after a the entry trigger if the open price is greater than or equal to the previos days close.
My question is how can I incorporate the above into the system below and if anyone can pick up any fundamental problems with the system below as I am still learning how to write these systems ?
LongEntryTrigger :=
{Bollinger Band Width 12 Mth low + 3%}
(((BBandTop(C,20,S,2.25)-BBandBot(C,20,S,2.25))/Mov(C,20,S))*100)<(LLV((((BBandTop(C,20,S,2.25)-BBandBot(C,20,S,2.25))/Mov(C,20,S))*100),260))+3 AND
{Bollinger Band Width 12 Mth high - 12%}
(((BBandTop(C,20,S,2)-BBandBot(C,20,S,2))/Mov(C,20,S))*100)<(HHV((((BBandTop(C,20,S,2)-BBandBot(C,20,S,2))/Mov(C,20,S))*100),260))-8.5 AND
{3% Consolidation Highest Close to Lowest Close in the last 10 days}
(((Ref(HHV(C,7),-1)-Ref(LLV(C,7),-1))/Ref(LLV(C,7),-1))*100)<3 AND
CLOSE>=BBandTop(C,15,S,1.65)AND
(VOLUME>Mov(V,7,E) OR Mov(OBV(),3,E)>Mov(OBV(),30,E) OR Mov(V,3,E)>Mov(V,10,E)) AND
(ATR(260)/Mov(C,260,S))*100>=2.5 AND
LinRegSlope(C,14)>0 AND
MFI(14)<75 ;
LongEntryPrice := OPEN;
LongExitTrigger := Cross(Ref(LLV(C,4),-1),L) ;
LongExitPrice :=
Ref(LLV(C,4),-1);
LongInitialStop := 0;
ExtFml( "TradeSim.Initialize");
ExtFml("TradeSim.SetStartRecordDate",1,1,1997);
ExtFml("TradeSim.SetStopRecordDate",1,7,2004);
ExtFml("TradeSim.EnableDelayOfEntryByOneBar");
ExtFml( "TradeSim.EnablePriceFilter") ;
ExtFml("TradeSim.RecordTrades",
"PD The Sqeeze Long Cross 3DH NASDAQ",
Long,
longEntryTrigger,
longEntryPrice,
longInitialStop,
longExitTrigger ,
longExitPrice ,
START);
Forever grateful if you could show the way,
Cheers,
Paul