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

RE: [AmiBroker] Re: FW: Ratio Adjusted Databases Question



PureBytes Links

Trading Reference Links




Paolo,
for example:
if on short position
ref(low,-1)==100
and open of the day==110
 
min ( ref(low,-1) , open== 100
 
but if the low of the day is 105
 
you can short only at 105 and not 100
 
stephane
<BLOCKQUOTE 
>
  ----- Original Message ----- 
  <DIV 
  >From: 
  Paolo 
  
  To: <A title=amibroker@xxxxxxxxxxxxxxx 
  href="">amibroker@xxxxxxxxxxxxxxx 
  Sent: Saturday, May 01, 2004 4:49 
PM
  Subject: [amibroker] Entry Price 
  Problem
  Here is the code, amended with Al Venosa's 
  help:BuyStop=Ref(H,-1); 
  SellStop=Ref(L,-1);BuyPrice=Max(BuyStop,O);CoverPrice=Max(BuyStop,O);ShortPrice=Min(SellStop,O);SellPrice=Min(SellStop,O);PositionSize=4000;Buy=Cross(Ref(PDI(14),-1),Ref(MDI(14),-1));Short=Cross(Ref(MDI(14),-1),Ref(PDI(14),-1));Sell=Short;Cover=Buy;The 
  Backtester enters the trade half the time on the previous day's high or 
  low as planned, the rest of the time on the CURRENT day's high or low 
  instead. No gaps are involved. Can anyone tell me what I'm doing 
  wrong?PaoloSend 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 
  __________ 
  NOD32 1.745 (20040501) Information __________This message was checked 
  by NOD32 antivirus system.<A 
  href="">http://www.nod32.com


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.