PureBytes Links
Trading Reference Links
|
Problem solved guys. A local guy by the name of Jon helped me see things
I wasn't seeing.
Adrian
> -----Original Message-----
> From: Adrian Pitt [mailto:apitt@xxxxxxxxxxxxx]
> Sent: Monday, 14 July 2003 5:28 PM
> To: omega-list@xxxxxxxxxx
> Subject: Flaw in SwingHighBar/LowBar function?
>
>
> Hi,
>
> 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
>
|