PDA

View Full Version : Oops


recneps
9th December 2003, 02:25 AM
Can anyone help me with the formulae for Larry Williams Oops?

If todays open is lower than the previous days low, then buy today at previous days low. Exit at tomorrows open.

My efforts have me entering and exiting sometimes on the same bar. I'm also unsure on what to use for an exit trigger.

EntryTrig:= O < Ref(L,-1 );

EntryPrice:= Ref(L,-1 );

InitialStop:= Ref(C,-1)-3*ATR(10);

ExitTrig:=OPEN;

ExitPrice:=OPEN;

ExtFml("TradeSim.Initialize");
ExtFml("TradeSim.EnableDelayOfAllExitsByOneBar");
ExtFml("TradeSim.EnableProtectiveStop",0);
ExtFml("TradeSim.RecordTrades",
"OOPS",
LONG,
EntryTrig,
EntryPrice,
InitialStop,
ExitTrig,
ExitPrice,
START);

NeilW
9th December 2003, 11:25 AM
Hi,

Why don't you just exit on the close of the same day you entered. You may leave some money on the table but you will sleep better.