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

RE: QUERY - easy language



PureBytes Links

Trading Reference Links

Dhiraj,

Here are the rules you may use for this condition.

If Open next bar < (Low * .99) then
	Buy next bar at Low Stop;
 
 
 
Best regards,
 
Sergio Sotolongo
www.TechnicalCentral.com






-----Original Message-----
From: dhiraj s kothari [mailto:kotharidhiraj@xxxxxxxxxxxxxx] 
Sent: Friday, April 04, 2003 6:22 AM
To: omega-list@xxxxxxxxxx
Subject: QUERY - easy language


Hi all,
I have a small problem coding the following in easy language:

I want to go long today if this condition is met:

(1) check if open of today is more than 1% below yesterdays low,
(2) if this is true, than buy "TODAY's" BAR at yesterdays low 
stop.

When I code the following in easy language:

if open < ( 0.99*(low[1]) ) then BUY at l[1] stop;

Tradestation buys at the open of the following day, i.e. not on 
the day with the gap, but the following day.

What could be the possible solution, any help would be 
appreciated.

Thank you,
Regards,
Dhiraj kothari.