thanks a lot. btw, I have a conceptual question on applying trailing stop using the function applystop.
if I apply trailing stop before proceeding to my logic for doing realtime trade, ApplyStop(stopTypeTrailing, 2, 10, 2, True ); for 10% trailing profit stopping. then I have another function to work on the Buy, Sell, Cover, Short and determine how to place the ibc.placeorder function. are those parameters actually changed by the applystop function so that I don't have to rest of the code? Thanks. Rgds, Jacky On Thu, Sep 18, 2008 at 10:23 PM, Tomasz Janeczko <[EMAIL PROTECTED]>wrote: > No it does not truncate anything. It rounds to *user-specified*TickSize. > You really need to READ the documentation > http://www.amibroker.com/at/ > > It clearly says: > > *PlaceOrder*( *string* *Ticker*, *string* *Action*, *number* *Quantity*, * > string* *Type*, *number* *LimitPrice*, *number* *StopPrice*, *string* * > TimeInForce*, *bool* *Transmit*, *[optional] number* *TickSize* = 100, * > [optional]* *string* *Attributes* = "", *[optional] string* *ParentID* = > "", [optional] string *OCAGroup*, [optional] number *OCAType*, [optional] > string *FAParams*) > > > *TickSize* - defines minimum price fluctuation allowed for given symbol > expressed in pips (= 0.0001). For most US stocks it is 100 (represents 0.01 > move), for most currencies: 1 (represents 0.0001 move), if minimum move is > less than 0.0001 you can use fractional values for example 1/100 for > 0.000001 move. > > > Best regards, > Tomasz Janeczko > amibroker.com > > ----- Original Message ----- > *From:* jacky lee <[EMAIL PROTECTED]> > *To:* [email protected] > *Sent:* Thursday, September 18, 2008 8:15 AM > *Subject:* [amibroker] ib controller 1.2.0 truncate price to 2 decimal > places only > > Hi All, > I found that the IB controller truncate the price I supplied to only 2 > digital. For most stock, it's ok, but when I trade forex, this is a big > problem, e.g. EurUSd 1.415 become 1.42. Any one can help? > > > Rgds, > Jacky > > >
