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

Re: rembuy.dll



PureBytes Links

Trading Reference Links

> If I use bins=1 to exit on the open on the day after the close is 
> less than my entryprice, how do the preset 'prices' and 'delays' 
> settings affect such an exit?

are you speaking of the settings?
it is simple to let them to close and 0 delay.
because buyprice and buy take over the settings.

for example in EOD on monday a bar is building, you have a buy 
signal,
you want place an order on open next day ( tuesday)
you write
buy= ref(buycondition,-1);// you delayed your buysignal by one day
buyprice=open;

and ++++++++++ is to write
buy=ref(exremspan(buycondition,1),-1); to be sure to do not have 
pollution with a new buy.


> Regarding the one bar peak, are the following entries equivalent 
to 
> one another:
> 
> buy=C>ma(c,20);
> buy=hold(buy==0,2) and buy;
> 
> buycondition=C>ma(c,20);
> buy=ref(buycondition,-1);
> 

if you plot them, you'll see it is different,
in first case you have a buy peak one bar one peak
in second case you delayed the buycondition by one day

what happen if you give 
> buycondition=C>ma(c,20);
> buy=ref(buycondition,-1);

if you have a sell (on stop or on target) and if the buy condition 
is always filled, you buy again next day following the sell day.