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

Re: QUERY - easy language



PureBytes Links

Trading Reference Links

Here is a sample of the EasyLanguage you could use to create the strategy.

if Open next bar < 0.99 * Low then
  buy next bar at Low stop;


Best regards,

Benjamin Blanco,
EasyLanguage Specialist
( former TradeStation Technologies, Inc. employee of six years )
http://www.benjaminblanco.com/

EasyLanguage is a registered trademarks of TradeStation Technologies, Inc.

----- Original Message -----
From: "dhiraj s kothari" <kotharidhiraj@xxxxxxxxxxxxxx>
To: <omega-list@xxxxxxxxxx>
Sent: Friday, April 04, 2003 6:22 AM
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.