Alexei,
Thanks for that reply.
I’m comparing my backtests and the position sizing that OQ is giving me vs the positions sizes I’m calculating on this
http://www.earnforex.com/position-size-calculator and the two are not aligning.
My underlying assumption here is that the positions (and their sizes) should be equal always between OQ and the broker. Would you agree? I should be able to reconcile OQ to my broker account at the end of each trading day to confirm the trades are exactly the same. Do you feel this is a fair assumption?
In this backtest the Strategy currency in this case is set to USD.
Attachment:
Position sizing - threshold cont - backtest results.JPG [ 47.68 KiB | Viewed 134500 times ]
In the case of the AUDJPY trades below what is “Qty” here, AUD? The instrument currency is set to AUD (as per our previous exchange on this thread). So is the “Value” in USD? If so, aren’t I buying nearly 3 mini-lots.
Which if I do the calculation of the PnL from that trade, appears to been. As I lost 19 pips and the loss was ~USD 75 (75 / 19) = 3.9.
So let me put the question another way, how do I buy a mini-lot of AUDJPY using Qty when firing the order to CNX? I need to fire an order with 10,000 right. But, what will be the “Value” in the OQ portfolio? I enter 10,000 into Qty it will do 10,000 * 81.5 Value = 815,000 … which is obviously not what I want… I want to buy use 10,000 AUDs to buy 815,000 of Yen. CNX will have 1 mini-lot and OQ will have the conversation of that mini-lot, the 2 will not equal.
I suspect that I know what is happening here. Unfortunately, it is the same flaw I found in NinjaTrader. See here:
http://www.ninjatrader.com/support/help ... tegies.htm.
I also understand why now PBJ and GP2X have replied as thus in this thread:
viewtopic.php?f=41&t=9799. PBJ solution about manually inserting Transactions into the Portfolio is really messy, but I completely understand why he has now done it.
So in summary, the portfolio in OQ is never going to equal the portfolio at the broker; not good at all. What are the implications of this … e.g. how am I going to use fixed fractional position sizing if the Portfolio value within OQ doesn’t equal reality? It is impossible (hence, PBJ’s solution).
Not good news.
Thanks and regards,
drolles