MultiCharts Easter Sale has jumped in! Up to 50% off Explore offers
+1 888 340 6572
MultiCharts Project Management
previous_open_issue.png
Go to the previous open issue
previous_issue.png
Go to the previous issue (open or closed)
star_faded.png
Please log in to bookmark issues
bug_report_small.png
Open Bug report MC-2499

PT: wrong trade size with Cash Per Trade setting

action_vote_minus_faded.png
1
Votes
action_vote_plus_faded.png
next_issue.png
Go to the next issue (open or closed)
next_open_issue.png
Go to the next open issue
Description

See Reproduction steps below.

There might be an explanation (exchange rate at trade exit is applied for conversion?), but it is practically wrong and does not serve the purpose of accurate backtesting...

Steps to reproduce this issue

1) Load any USD-quoted currency pair, e.g. USD.JPY, USD.CAD
2) apply any signal
3) set strategy currency to USD
4) set "Cash Per Trade" = $10000

5) run the signal and see in the trade list that trade sizes are not equal to 10 000 usd.

Comments (4)
#1
user-offline.png  Zheka (Zheka)
Aug 27, 2018 - 13:34
A file was uploaded. PT_CashPerTrade_wrong.JPGicon_open_new.png
#2
user-offline.png  MultiCharts Support (MultiCharts)
Sep 19, 2018 - 15:01
Zheka,

What is the Big Point Value for the instrument in question?
Changes:
  •   icon_status.pngStatus changed: Under Review => Need Details
#3
user-offline.png  Zheka (Zheka)
icon_reply.pngSep 19, 15:17, in reply to comment #2
It is 1. What else can it be? And why would it matter in this case?

#4
user-offline.png  MultiCharts Support (MultiCharts)
Sep 27, 2018 - 14:43
Zheka, There is no issue here. Your assumption regarding the exchange rate applied for conversion is correct. The reason you are not seeing the exact 10000 contracts amount is due to the fact that previous daily bar close is used for the currency conversion, which is most often different from the current trade price. Here is the formula that is used for the calculation: Number of Contracts = Cash per trade / ( Big Point Value for the symbol * currency conversion exchange rate * order execution price) You can check the exchange rate using the convert_currency command.
Changes:
  •   icon_status.pngStatus changed: Need Details => Not a bug
History
Issue basics
  • Type of issue
    Bug report
  • Category
    Not determined
  • Targeted for
    Not determined
  • Status
    Not a bug
  • Priority
    Not determined
User pain
  • Type of bug
    Not triaged
  • Likelihood
    Not triaged
  • Effect
    Not triaged
Affected by this issue (0)
There are no items
People involved
  • Posted by
    user-offline.png  Zheka (Zheka)
  • Owned by
    Not owned by anyone
  • Assigned to
    Not assigned to anyone
  • Subscribers
    2 subscriber(s)
    Click here to show the list of subscribers
Times and dates
  • Posted at
  • Last updated
Issue details
  • Reproducability
    Not determined
Attachments (1)
  • /pm/public/files/show/945
    PT_CashPerTrade_wrong.JPG uploaded Aug 27, 2018 by Zheka (Zheka)
Commits (0)
There are no code checkins for this issue
Duplicate issues (0)
This issue does not have any duplicates