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

[amibroker] Re: VBScript to automate back test and export of tradelist.



PureBytes Links

Trading Reference Links




Jayson,
 
I would avoid using loops if posible ... All AFL 
gets executed as interpreted line by line ... but if you use the AB built in 
functions (Lastvalue... etc) the code is executed as native (compiled) code 
which is much faster...
<BLOCKQUOTE dir=ltr 
>
  ----- Original Message ----- 
  <DIV 
  >From: 
  Jayson 
  
  To: <A title=amibroker@xxxxxxxxxxxxxxx 
  href="">amibroker@xxxxxxxxxxxxxxx 
  Sent: Tuesday, April 20, 2004 8:15 
  AM
  Subject: RE: [amibroker] If Then...
  
  <FONT face=Arial color=#0000ff 
  size=2>Ara,
  I 
  thought that should work as well....
  <FONT face=Arial color=#0000ff 
  size=2> 
  <FONT 
  face=Arial color=#0000ff> 
  range=<FONT 
  face=Arial color=#0000ff>C<FONT 
  color=#0000ff>/2<FONT 
  color=#282828 size=2>;<FONT 
  color=#800000 size=2>
  if<FONT 
  color=#0000ff> (H<FONT 
  size=2>-C<FONT 
  face=Arial color=#0000ff size=2> < .1*range)
  {
  Value1 =<FONT 
  face=Arial color=#0000ff size=2>H<FONT 
  face=Arial color=#0000ff size=2>;
  Value2 = <FONT 
  face=Arial color=#0000ff size=2>L<FONT 
  face=Arial color=#0000ff size=2>;
  Value3 = <FONT 
  face=Arial>2 * 
  C<FONT face=Arial 
  color=#0000ff size=2>;
  Value4 = <FONT 
  face=Arial>2 * 
  O<FONT face=Arial 
  color=#0000ff size=2>;
  }
   
  <FONT face=Arial 
  color=#0000ff size=2>I get the error indicating IF needs to be numeric or 
  boolean.<FONT face="Times New Roman" 
  color=#000000>..
   
  Regards,Jayson 
  
  
    <FONT face=Tahoma 
    size=2>-----Original Message-----From: Ara Kaloustian 
    [mailto:ara1@xxxxxxxxxx]Sent: Tuesday, April 20, 2004 10:50 
    AMTo: <A 
    href="">amibroker@xxxxxxxxxxxxxxxSubject: 
    Re: [amibroker] If Then...Same way... slighly 
    different syntaxif (condition){Value1 = xx;Value2 
    =yy;}----- Original Message ----- From: "bealer_bob" 
    <rhunt@xxxxxxxxxxxxxxx>To: 
    <amibroker@xxxxxxxxxxxxxxx>Sent: Tuesday, April 20, 2004 7:37 
    AMSubject: [amibroker] If Then...> I want to be able to 
    set a whole series of values if a particular> condition is true. It 
    appears that the IFF function will set only one> value. I could 
    create a whole series of IFF statements, but I would> rather set all 
    values with one statement.>> In Tradestation Easy Language it 
    would look like this:>> If H-C < .1*Range then 
    begin>    Value1 = H>    Value2 
    = L>    Value3 = 2 * C>    
    Value4 = 2 * O> End;>> How would I do something similar 
    in AFL?>> Thanks in advance,>> 
    Bob>>>>> Send BUG REPORTS to 
    bugs@xxxxxxxxxxxxx> Send 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> 
    Yahoo! Groups 
    Links>>>>>>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 
    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 
    


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