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
Weird precision limit
- Dave Masalov
- Posts: 1712
- Joined: 16 Apr 2010
- Has thanked: 51 times
- Been thanked: 489 times
Re: Weird precision limit
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).
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).
Re: Weird precision limit
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
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