[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Flaw in SwingHighBar/LowBar function?



PureBytes Links

Trading Reference Links

Am I correct in assuming there is a flaw in the Omega SwingHighBar and
SwingLowBar functions?  The following code produce the signal shown in
the attachment.  

If MarketPosition = 1 then begin
	If SwingHighBar(1, H, 2, 20) < SwingHighBar(2, H, 2, 20) then
	ExitLong("time") from Entry("IDBuy") at market;
end

While I realise this statement will always be true, it seems odd to me
it exited the position on the open the day after the second swing
high.  This means it assumed the formula was correct on the day of the
second high swing, which obviously is impossible as it wont know its a
swing high of strength 2 until the next day after the indicated exit.
So in fact it should be exiting 2 days later than indicated.  Am I
missing something here?

Adrian

Attachment:
junk.gif

Attachment: Description: "Description: GIF image"