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

[amibroker] Re: Question for Stephane



PureBytes Links

Trading Reference Links

100000000000000000x thanks for your help !!!
I really apreciate your help!

Kind regards
Robert

--- In amibroker@xxxxxxxxxxxxxxx, "Stephane Carrasset" 
<s.carrasset@xxxx> wrote:
> below an example
> BarsToTest = 1000;
> 
> Trade = IIf((BarIndex() > (LastValue(BarIndex()) - 
BarsToTest)),1,0);
> 
> Buy= DayOfWeek()==5 AND Trade AND BarIndex() > 10;
> 
> Sell=0;// exit on applystop
> 
> BuyPrice= C ;
> 
> ApplyStop (stopTypeTrailing, stopModePoint, 2*ATR
(10),exitatstop=True,volatile=False,reentrydelay=1) ;
> 
> 
> 
> Equity(1,0);
> 
> Plot(Close,"close",IIf( Buy, colorGreen, IIf(Sell , 
colorRed ,1 )),64);
> 
> PlotShapes(IIf(Buy,
> 
> shapeUpArrow,shapeNone),colorGreen,0,C,-20); 
> 
> PlotShapes(IIf(Sell,
> 
> shapeDownArrow,shapeNone),colorRed,0,H,-20);
> 
> Plot(HighestSince(Buy, H - ValueWhen(Buy,2*ATR
(10))),"",colorBlue,1);
> 
> Title=Name() + " ApplyStop Trail=" + WriteVal(HighestSince(Buy, H - 
ValueWhen(Buy,2*ATR(10)))) + EncodeColor(colorWhite) + " Open="+ 
WriteVal(Open);
> 
>   ----- Original Message ----- 
>   From: rocou 
>   To: amibroker@xxxxxxxxxxxxxxx 
>   Sent: Saturday, April 24, 2004 5:22 PM
>   Subject: [amibroker] Amibroker -> Plot Trailing Stop Level
> 
> 
>   Hi traders,  
> 
>   May I ask for your help again -
> 
>   how can I plot a " trailing stop line" that continously
>   represents the trailing stop level ?
> 
>   Thanks for your help
>   Regards
>   Robert
> 
>   _____________________________________________________________
> 
>   MA1Pr=Optimize("MA1Pr",1,1,3,1);
>   LBPr=Optimize("LBPr",3,3,9,1);
>   LBD=Optimize("LBD",1,1,3,1);
> 
>   Buy = Cross(BBandBot(Close,LBPr,LBD), EMA(Close,MA1Pr));
>   Sell = Cross(EMA(Close,MA1Pr), BBandTop(Close,LBPr,LBD));
>   Short = Cross(EMA( Close,MA1Pr), BBandTop(Close,LBPr,LBD));
>   Cover = Cross(BBandBot(Close,LBPr,LBD), EMA(Close,MA1Pr));
> 
>   ApplyStop(2, 2, Optimize("max.loss stop level", 0.0055, 0.0005, 
>   0.0100, 0.0005 ), 2, False, 1 ); 
> 
>   PositionSize = 100000;
>   ______________________________________________________________
> 
> 
> 
>   Send BUG REPORTS to bugs@xxxx
>   Send SUGGESTIONS to suggest@xxxx
>   -----------------------------------------
>   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 
> 
> 
> 
> --------------------------------------------------------------------
----------
>   Yahoo! Groups Links
> 
>     a.. To visit your group on the web, go to:
>     http://groups.yahoo.com/group/amibroker/
>       
>     b.. To unsubscribe from this group, send an email to:
>     amibroker-unsubscribe@xxxxxxxxxxxxxxx
>       
>     c.. Your use of Yahoo! Groups is subject to the Yahoo! Terms of 
Service. 
> 
> 
> 
>   __________ NOD32 1.732 (20040422) Information __________
> 
>   This message was checked by NOD32 antivirus system.
>   http://www.nod32.com



------------------------ 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 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
     http://groups.yahoo.com/group/amibroker/

<*> To unsubscribe from this group, send an email to:
     amibroker-unsubscribe@xxxxxxxxxxxxxxx

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