Warning: one more newbie question about sizing: I want to trade with oanda and have a USD account. If I use order_target_percent to calulate the sizing, in the end the backtrader has to pass "units" parameter to the Oanda API. The end price varies depending on what units you are buying.
- If I buy one lot of USD/ZAR the units will be 100.000 and the price before leverage is also 100.000 USD.
- If I buy one lot of EUR/USD the units will be 100.000, but the "price" paid before the leverage is 100.000/eur_usd_exhange_rate.
I guess my question is whether the size calculation takes into the account that the price/margin needed for one unit of a currency pair depends on the currency pair being traded.
Hence, order_target_percent
should render different sizes depending on the pair traded and the currency used, right?