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

[amibroker] Re: Applystop are always for me on the dark side....



PureBytes Links

Trading Reference Links

OK,

Let me ask the question differently:
I did believe that 
ApplyStop (stopTypeProfit, stopModePoint, 2*ATR(10) ,True,False) ; 

is 
Equity(1);
Plot(HighestSince(Buy,H-2*ATR(10)),"",colorBlue,1);

that's not the case (there are some minor difference in price values 
between chart and backtest report), Why? 

<nenapacwanfr@xxxx> wrote:
> hello,
> 
> with a simple system like that one
> Buy= DayOfWeek()==5;
> Sell=0;
> BuyPrice= C ;
> ApplyStop (stopTypeTrailing, stopModePoint,3*ATR(10) ,True,True) ;
> 
> I suppose that the trailing price must be :
> Q1:  Plot(HighestSince(Buy,H-3*ATR(10)),"",colorBlue,1);?????
> Q2:  and it must be activated when Low <= trailing price.?????
>  
> 
> I CAN CHECK IT with
> Title=Name() + " ApplyStop" ;
> Buy= DayOfWeek()==5;
> Sell=0;
> BuyPrice= C ;
> ApplyStop (stopTypeTrailing, stopModePoint,3*ATR(10) ,True,True) ; 
> 
> Plot(Close,"close",colorBlack,64);
> Equity(1);
> PlotShapes(IIf(Buy,
> shapeUpArrow,shapeNone),colorGreen,0,L,-10); 
> PlotShapes(IIf(Sell,
> shapeDownArrow,shapeNone),colorRed,0,H,-10);
> 
> Plot(HighestSince(Buy,H-3*ATR(10)),"",colorBlue,1);


------------------------ Yahoo! Groups Sponsor ---------------------~-->
Buy Ink Cartridges or Refill Kits for your HP, Epson, Canon or Lexmark
Printer at MyInks.com. Free s/h on orders $50 or more to the US & Canada.
http://www.c1tracking.com/l.asp?cid=5511
http://us.click.yahoo.com/mOAaAA/3exGAA/qnsNAA/GHeqlB/TM
---------------------------------------------------------------------~->

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/