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

[amibroker] Re: Help with SetPositionSize, Urgent!



PureBytes Links

Trading Reference Links

Tomasz,

Thanks a lot. I have find the bug. Sorry, The fault is on me.

zwz

--- In amibroker@xxxxxxxxxxxxxxx, "Tomasz Janeczko" <amibroker@xxxx>
wrote:
> Please verify if the value you pass is really equal to 300 AT THE BAR
> of the ENTRY (taking into account eventual trading delays that you
may or may not be using)
> 
> Best regards,
> Tomasz Janeczko
> amibroker.com
> ----- Original Message ----- 
> From: "zwz21766" <zwzhang@xxxx>
> To: <amibroker@xxxxxxxxxxxxxxx>
> Sent: Wednesday, September 14, 2005 6:22 PM
> Subject: [amibroker] Help with SetPositionSize, Urgent!
> 
> 
> > 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.
> > 
> > 
> > 
> > 
> > 
> > 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
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> >




------------------------ 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/