Weird precision limit

Questions about MultiCharts and user contributed studies.
Dan122
Posts: 10
Joined: 10 May 2012
Has thanked: 1 time
Been thanked: 3 times

Weird precision limit

Postby Dan122 » 26 Jun 2012

Why “sell next bar at 49 limit;” gives the same result as

“sell next bar at 49.65 limit;” ??

(I´m working with OHLC end-of-day data)

Does the limit order rounds to the lowest integer?

Is that a way to avoid that?

Thanks

User avatar
Dave Masalov
Posts: 1712
Joined: 16 Apr 2010
Has thanked: 51 times
Been thanked: 489 times

Re: Weird precision limit

Postby Dave Masalov » 26 Jun 2012

Hello Dan122,

Sell at X limit means sell at the price of X or better (higher). So both "49 limit” and "49.65 limit" lines may produce the same result if the price of the next bar is higher than 49.65 (let's say 50).

Dan122
Posts: 10
Joined: 10 May 2012
Has thanked: 1 time
Been thanked: 3 times

Re: Weird precision limit

Postby Dan122 » 26 Jun 2012

Thanks for the answer
For example - If I buy at the close for 49, set the limit to 49.40, next day it open at 49.80, therefore it is supposed to sell at 49.80 (the open number) or 49.40 (the limit number). The high of the day is 50.30. Multicharts is selling at 50 in both the workspace/graphics and in the backtester.
It makes sense to me, as you said, if the open of the day is over the limit it will sell at it, or in the limit, but I can´t understand why it rounds this value to the integer because in many situations this precise limit is important.
Dan

Dan122
Posts: 10
Joined: 10 May 2012
Has thanked: 1 time
Been thanked: 3 times

Re: Weird precision limit

Postby Dan122 » 28 Jun 2012

As Roman (from the support teem) showed me, the problem was in the Quote Manager,
set exchange & ECN settings - price scale to 1/100.

Thanks
Daniel


Return to “MultiCharts”