For code/output blocks: Use ``` (aka backtick or grave accent) in a single line before and after the block. See: http://commonmark.org/help/
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 lotHow 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
-
Can you show us the code you have tried so far? Thanks
-
set up your futures-type commission scheme - Docs - Commission Schemes:
margin
is your maintenance margin
mult
is 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.