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

[amibroker] Re: Plotting question



PureBytes Links

Trading Reference Links




use Applystop (read the manual to see what you want 
to use for it's variables
<FONT face="Courier New" 
size=3> 
Buy =  
Ref(C,-1) > Ref(C,-2)  AND    //buy after 2 
up-Closes       Ref(C,-2) > 
Ref(C,-3):       BuyPrice = 
(Ref(C,-1);  //Buy today at yesterdays Close(Limit) 

ApplyStop( stopTypeNBar,stopModeBars,5,ExitAtStop = 
1,Volatile = False, ReentryDelay = 1 );
 
 
rgds, Ed
<BLOCKQUOTE 
>
  ----- Original Message ----- 
  <DIV 
  >From: 
  Werner 
  To: <A title=amibroker@xxxxxxxxxxxxxxx 
  href="">amibroker@xxxxxxxxxxxxxxx 
  Sent: Friday, March 12, 2004 2:31 
PM
  Subject: [amibroker] STOPs / Exit 
  anybody?
  Good day,I want to implement a simple Exit 
  strategy, namely EXITING after 5 trading days. I have created a 
  simple strategy for backtesting: (still learning):Buy =  
  Ref(C,-1) > Ref(C,-2)  AND    //buy after 2 
  up-Closes       Ref(C,-2) > 
  Ref(C,-3):       BuyPrice = 
  (Ref(C,-1);  //Buy today at yesterdays Close(Limit) 
  ----------------------------------------------------------------Now I 
  want to sell after 5 days. Went to the Backtester and Settings > 
  Stops and set the "N-Bar Stop" to 5.After doing this, I get the 
  following error message from backtester:"Missing Buy/Sell Variable 
  assignment".What am I doing 
  wrong?Thanks.WernerSend 
  BUG REPORTS to bugs@xxxxxxxxxxxxxSend SUGGESTIONS to 
  suggest@xxxxxxxxxxxxx-----------------------------------------Post 
  AmiQuote-related messages ONLY to: amiquote@xxxxxxxxxxxxxxx (Web page: <A 
  href="">http://groups.yahoo.com/group/amiquote/messages/)--------------------------------------------Check 
  group FAQ at: <A 
  href="">http://groups.yahoo.com/group/amibroker/files/groupfaq.html 
  


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 Sponsor


ADVERTISEMENT



















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 the Yahoo! Terms of Service.