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

Re: [amibroker] How do I test points only for a future contract?



PureBytes Links

Trading Reference Links




Hello,
 
Use
 
PositionValue = MarginDeposit = 1;
 
in your formula.
 
Best regards,Tomasz Janeczkoamibroker.com
<BLOCKQUOTE 
>
  ----- Original Message ----- 
  <DIV 
  >From: 
  <A title=emarco@xxxxxxxxxxxxxxx 
  href="">emarco 
  To: <A title=amibroker@xxxxxxxxxxxxxxx 
  href="">amibroker@xxxxxxxxxxxxxxx 
  Sent: Wednesday, June 11, 2003 3:27 
  PM
  Subject: [amibroker] How do I test points 
  only for a future contract?
  
  
  Hi,
  How do I test points only for a future 
  contract?
  this is the code and in the Pic are the 
  settings.
  THANKS!
   
  Buy = <FONT 
  color=#0000ff>Cross(ADX(<FONT 
  color=#ff00ff>14),20) AND <FONT 
  color=#0000ff>PDI(14)><FONT 
  color=#0000ff>MDI(14);
  Sell = <FONT 
  color=#0000ff>Cross( MA(Close,<FONT 
  color=#ff00ff>20),Close) OR <FONT 
  color=#0000ff>IIf(MA(Close,<FONT 
  color=#ff00ff>20)>=Low AND <FONT 
  color=#0000ff>Ref(MA(Close,<FONT 
  color=#ff00ff>20),-1)>=<FONT 
  color=#0000ff>Ref(Low,-1),<FONT 
  color=#ff00ff>1,0) OR <FONT 
  color=#0000ff>IIf(ADX(<FONT 
  color=#ff00ff>14)<30 AND <FONT 
  color=#0000ff>ADX(14)><FONT 
  color=#ff00ff>20 AND ADX(<FONT 
  color=#ff00ff>14) < Ref(<FONT 
  color=#0000ff>ADX(14),-<FONT 
  color=#ff00ff>1),1,<FONT 
  color=#ff00ff>0);
  Buy=<FONT 
  color=#0000ff>ExRem(Buy,Sell);
  Sell=<FONT 
  color=#0000ff>ExRem(Sell,Buy);<FONT 
  face="Courier New">
  Short<FONT 
  face="Times New Roman"> = Cross(<FONT 
  color=#0000ff>ADX(14),<FONT 
  color=#ff00ff>20) AND PDI(<FONT 
  color=#ff00ff>14)<<FONT 
  face="Times New Roman">MDI(<FONT 
  color=#ff00ff>14);
  Cover<FONT 
  face="Times New Roman"> = <FONT 
  color=#0000ff>Cross(Close<FONT 
  face="Courier New">,<FONT 
  color=#0000ff>MA(Close,20)) OR 
  IIf(<FONT 
  color=#0000ff>MA(Close,<FONT 
  color=#ff00ff>20)<<FONT 
  face="Times New Roman">=<FONT 
  face="Courier New">High<FONT 
  face="Times New Roman"> AND Ref(<FONT 
  color=#0000ff>MA(Close,20),-<FONT 
  color=#ff00ff>1)<<FONT 
  face="Times New Roman">=Ref(<FONT 
  face="Courier New">High<FONT 
  size=3>,-1),1,<FONT 
  color=#ff00ff>0) OR IIf(<FONT 
  color=#0000ff>ADX(14)<<FONT 
  color=#ff00ff>30 AND ADX(<FONT 
  color=#ff00ff>14)>20 AND <FONT 
  color=#0000ff>ADX(14) < <FONT 
  color=#0000ff>Ref(ADX(<FONT 
  color=#ff00ff>14),-1),<FONT 
  color=#ff00ff>1,<FONT 
  color=#ff00ff>0);
  Short<FONT 
  face="Times New Roman">=ExRem(<FONT 
  face="Courier New">Short,Cover<FONT 
  face="Times New Roman" size=3>);
  Cover<FONT 
  face="Times New Roman">=ExRem(<FONT 
  face="Courier New">Cover,Short<FONT 
  face="Times New Roman" size=3>);
  PositionSize = <FONT 
  face="Courier New" color=#ff00ff size=3>1<FONT 
  size=3>;
  PointValue = <FONT 
  size=3>50<FONT 
  face="Courier New">;Send 
  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 
  Your use of Yahoo! Groups is subject to the <A 
  href="">Yahoo! Terms of Service. 







Yahoo! Groups Sponsor












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