PureBytes Links
Trading Reference Links
|
> Also, I am confused regarding the purpose of the following lines:
>
> > Buy=Buy;
> > Sell=Sell;
> > BuyPrice=Entryprice;/*array*/
> > SellPrice=SellPr;/*array sellpr is given by the dll: next open if
> > you choose exit on bar, close if you choose close as stopprice,
> > stop or open ( if gap) in others cases*/
once you have given all your parameters to the dll,
it returns
buy,sell,sellpr,targetpr and trailpr .
so when you backtest, you must write Buy=Buy...
but if I had written in the dll to returns Harold for the buysignal
and stephane for the sell signal, I must write
buy=harold;
sell=stephane;
that just a naming convention
now for the sellprice, you can choose the name sellpr ( that is given
by the dll) or choose close, or open( but in this last case you must
delayed the exit by one bar and write
sell= ref(sell,-1)
|