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

Re: Limiting system to one trade per day



PureBytes Links

Trading Reference Links

Owen:

Try this example for buys.  Do the opposite for sells.

  {In this example, the open is only
    considerered a gap down open if open is below
     the low of yesterday's closing bar.}

gapDOWNopen:=Hour()<Ref(Hour(),-1) AND
                            O<Ref(L,-1);
BuyTrigger:=Cross(Stoch(5,3),20) AND
                    BarsSince(gapDOWNopen)<
                    BarsSince(Ref(Cross(Stoch(5,3),20),-1));
BuyTrigger

Regards,
iamken