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

[amibroker] Help with SetPositionSize, Urgent!



PureBytes Links

Trading Reference Links

Hi, 

I have a function to calculate how many shares I sould initialize like
 fShares(.....) Ok.

When I use SetPositionSize(fShares, spsShares). Looks like it does not
work. For instance, when my function return 300, the SetPositionSize
actually bought 550. What is going on here? 

I have test the SetPositionSize(fShares, spsShares) with a constant like
fShares = 500. It works fine. 

But when use a dynamic number like the value returned from a function,
things messed up.

Thanks a lot.




------------------------ Yahoo! Groups Sponsor --------------------~--> 
Get fast access to your favorite Yahoo! Groups. Make Yahoo! your home page
http://us.click.yahoo.com/dpRU5A/wUILAA/yQLSAA/GHeqlB/TM
--------------------------------------------------------------------~-> 

Please note that this group is for discussion between users only.

To get support from AmiBroker please send an e-mail directly to 
SUPPORT {at} amibroker.com

For other support material please check also:
http://www.amibroker.com/support.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/