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

Re: Trading day of the month



PureBytes Links

Trading Reference Links

> Is there a way to specify trading days of the month in TS 4.0?
> 
> EX:  Buy the Open on the 4th trading day of the month and Sell on the Open
> of 
> the 18th trading day of the month.

Try this.....

var: da(0), mo(0);

mo = month(date);
if mo <> mo[1] then da = 0;
da = da + 1;

if da = 3 then buy market;
if da = 17 then sell market; {or exitlong market}

-- 
  Dennis