Want help in setting params like contract_size , number_of_lot , maintenance_margin
Hi I have a problem I want to set
1- contract size = 100000
2 - number of lots = 2
also want to set a
3 - maintenance margin of 2150 per lot
How do I set it in backtrader??
Also I am going to calculate profit/loss like this -
(buy_price - sell_price) * contract_size * number_of_lot.
Please help me, help will be appreciated
I am working with FOREX pairs ex- EURUSD and start_cash is set to 10000
run-out last edited by
Can you show us the code you have tried so far? Thanks
set up your futures-type commission scheme - Docs - Commission Schemes:
marginis your maintenance margin
multis your point value, but it seems contract size can be used in your case
number of lots you use in the orders
Thanks for the help.