Some orders are being rejected with the error:
error=UnableToSubmitOrder comment='Order 'xxx' can't be submitted: Not enough excess margin.' nr=-1
What numbers specifically is ninja using to produce this error?
Below are the relevant account and risk numbers that are defined:
The Risk profile assigned to the SIM101 account has the following info defined for all the forex instruments I am trading:
Buy Intraday margin=100
Sell Intraday margin=100
Initial Margin = 100
Maintenance Margin = 100
max Order Size = 50,000,000
Max Position Size = 50,000,000
The account balance is set to 93,000.
The forex lot size is set to 1,000.
The strategy placed an order with Quantity=85,500
Please advise what I am doing wrong.
Thanks,
Gary
Comment