| 
 PureBytes Links 
Trading Reference Links 
 | 
Hello,
MarginRequirement is a property of your brokerage account and it has to be fixed (not changing from bar to bar).
It was explained here four days ago:
http://finance.groups.yahoo.com/group/amibroker/message/68093
Best regards,
Tomasz Janeczko
amibroker.com
----- Original Message ----- 
From: "malc5899" <malc5899@xxxxxxxxx>
To: <amibroker@xxxxxxxxxxxxxxx>
Sent: Wednesday, August 04, 2004 4:27 PM
Subject: [amibroker] help on Set Option marginrequirement AFL
> 
> 
> Anyone know why this error occurs?
> 
> 
> QQQtoday=(Foreign("QQQ","Close")-Ref(Foreign("QQQ","Close"),-1))/Ref
> (Foreign("QQQ","Close"),-1)+1;/*  */
> 
> Margin = 100/QQQtoday;/* 100=no margin */
> 
> Margin =Nz(Margin,100);
> 
> SetOption("MarginRequirement",Margin);
> -------------------------------------^
> 
> Error 2.
> Bad argument(s)
> 
> 
> 
> 
> 
> Check AmiBroker web page at:
> http://www.amibroker.com/
> 
> Check group FAQ at: http://groups.yahoo.com/group/amibroker/files/groupfaq.html 
> Yahoo! Groups Links
> 
> 
> 
>  
> 
> 
------------------------ Yahoo! Groups Sponsor --------------------~--> 
Make a clean sweep of pop-up ads. Yahoo! Companion Toolbar.
Now with Pop-Up Blocker. Get it for free!
http://us.click.yahoo.com/L5YrjA/eSIIAA/yQLSAA/GHeqlB/TM
--------------------------------------------------------------------~-> 
Check AmiBroker web page at:
http://www.amibroker.com/
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:
    http://docs.yahoo.com/info/terms/
 
 |