PureBytes Links
Trading Reference Links
|
> Date: Sat, 18 Apr 1998 23:34:40 -0400
> To: omega-list@xxxxxxxxxx
> From: "Cory L. Romero" <ritchie@xxxxxxxx>
> If at 3:15pm the price is above the open for the month, buy at the close
> and if at 3:15pm the price is below the open for the month, sell at the close.
>
> How do you code open for the month? Is it possible to code the above using
> the 15 minute chart?
Roughly like this, although you may need to tweak a few things on
this, fix up the syntax a little. I think you'll need to add some
exits somewhere. Use this on 15 minute bars.
var: month_open(0);
if (month(date) <> month(date)[1]) Then
month_open = open;
if (time = 1515 and open > month_open) Then
buy at the close;
if (time = 1515 and open < month_open) THEN
sell at the close;
|