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

[amibroker] Re: RemBuy Problem



PureBytes Links

Trading Reference Links

Stephane,

Thanks for the reply.  When I run the code from the help file on the 
^NDX from 1/1/03-9/8/03, my first buy is on January 2nd.  Then I get 
buy and sell signals on the same day.  I get stopped out on January 
27th with a buy on the same day.  The buy signals don't
correspond to the crossing of 50 by the 3 period RSI.  

What signals are you getting?  Has to do with my settings??  

By "Upgrade", do you mean a new dll?   

Thanks.

Rob

--- In amibroker@xxxxxxxxxxxxxxx, "Stephane Carrasset" 
<nenapacwanfr@xxxx> wrote:
> Hello,
> 
> In fact I have done an upgrade to RemBuy ( you can choose any 
> stoploss, trailingstop, target or bars counter that you want), but 
> perhaps I have not upgrade the help file ??? (sorry)
> it works perfectly for me with the last version of Amibroker.
> I promise to upload a detailled help file saturday in the 
afternoon, 
> only for LONG side.
> 
> Stephane
> 
> 
> > 
> > I am having some trouble with RemBuy.  So I tested the code that 
> was 
> > included with the help file and that didn't seem to work properly 
> > either.  
> > This problem seemed to happen when I upgraded to version 4.4.  
The 
> > code included in the help file is below.  Maybe it has to do with 
> my 
> > settings?  I am using version 1.0.2 of the Rem Amibroker Plugin.
> > 
> > Title=Name() + " RemBuy TRAIL" ;
> > Buy= Cross(RSI(3),50) ;/* you must convert it to one bar peak*/ 
> > Entryprice= Close;
> > StopPrice= L; 
> > StopLoss=  L-ATR(3);/* you must give your stoploss as an array, 
you 
> > don't need of valuewhen the dll makes it for you*/
> > stop= Optimize("stop", 1, 1, 2, 1 ); 
> > Trailstop= IIf( stop==1, L-3*StDev(C,20),IIf( stop==2, L-3*ATR
> > (30),scCBLLong(5)));
> > Pf=2;
> > Target= (1+Pf)*Entryprice - Pf*stopLoss;
> > Count= -1; 
> > Bars= -1; 
> > scRemBuyTrail
> > (Buy,Entryprice,StopPrice,StopLoss,TrailStop,Target,Count,Bars);
> > Buy=Buy; 
> > Sell=Sell;
> > BuyPrice=Entryprice;/*array*/
> > SellPrice=SellPr;/*array sellpr is given by the dll: close if you 
> > choose exit on bar, close if you choose close as stopprice, stop 
or 
> > open ( if gap) if you choose Low as stopprice */ 
> > Entryprice=ValueWhen(Buy,Entryprice);
> > Stoploss=ValueWhen(Buy,StopLoss);
> > profit =ValueWhen(Buy,Target) ; 
> > Trail=HighestSince(Buy,Trailstop);
> > 
> > MaxGraph=14;
> > Plot(Close,"close",IIf( Buy, 6, IIf(Sell , 4 ,1 )),64);
> > Plot(Entryprice,"Ep",3,1);
> > Plot(Stoploss,"stop",4,1);
> > //Plot(Profit,"Profit",7,1);
> > Plot(TargetPr,"",6,1);
> > /* targetpr and trailpr are returned by the dll*/
> > Plot(TrailPr,"TrailPr",5,1);
> > Plot(ValueWhen(Sell,SellPrice),"",2,1);
> > 
> > //Plot(Buy*10,"",6,2);
> > //Plot(Sell*5,"",7,2);


Send BUG REPORTS to bugs@xxxxxxxxxxxxx
Send SUGGESTIONS to suggest@xxxxxxxxxxxxx
-----------------------------------------
Post AmiQuote-related messages ONLY to: amiquote@xxxxxxxxxxxxxxx 
(Web page: http://groups.yahoo.com/group/amiquote/messages/)
--------------------------------------------
Check group FAQ at: http://groups.yahoo.com/group/amibroker/files/groupfaq.html 

Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/