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

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



PureBytes Links

Trading Reference Links





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 = 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(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,0);<FONT 
face="Courier New">
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">;






Yahoo! Groups Sponsor


  ADVERTISEMENT 









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.



Attachment:
bcktester settings.GIF

Attachment: Description: "Description: GIF image"