I have a backtest on ASCII Mapping data that is getting the correct entry and exit prices but is calculating the wrong PnL. I am testing on a simple Fixed 100 share position.
I have tried fixing this in the code (hard code to buy 100 shares) and also in Format > Strategy Properties >Maximum shares/contracts per position and ticked the Fixed Shares (set to 100).
In the strategy Performance Report > List of trades the Prices (entry and exit are correct) and the Contract column shows 100 (ie it appears as though the backtest is buying 100 shares) but the PnL is wrong.
I have tinkered in the Quote Manager > Edit Symbol but I can't see anything there. I have tried multiple Exchange and ECN Settings and multiple Price Scales.
I wonder whether it is doing any currency conversions that I can't find the setting for?
This should be very simple buying 100 shares at a price and selling it at another price.
Thanks
trade profit wrong - Stock
-
- Posts: 7
- Joined: 03 Apr 2018
- Has thanked: 1 time
- Been thanked: 1 time
- JoshM
- Posts: 2195
- Joined: 20 May 2011
- Location: The Netherlands
- Has thanked: 1544 times
- Been thanked: 1565 times
- Contact:
Re: trade profit wrong - Stock
If the currency setting in the strategy properties window is the same as the currency for the instrument's exchange (from the QuoteManager), then there shouldn't be a currency conversion happening by MultiCharts.I wonder whether it is doing any currency conversions that I can't find the setting for?
Does the instrument perhaps use an exchange that has a different currency than what your strategy uses?
- Svetlana MultiCharts
- Posts: 645
- Joined: 19 Oct 2017
- Has thanked: 3 times
- Been thanked: 163 times
Re: trade profit wrong - Stock
Hello birdman3000,
Please set the correct Big Point Value for the instrument in QuoteManager -> Edit Symbol -> Settings:
https://www.multicharts.com/trading-sof ... Properties
Please set the correct Big Point Value for the instrument in QuoteManager -> Edit Symbol -> Settings:
https://www.multicharts.com/trading-sof ... Properties