backtesting.py icon indicating copy to clipboard operation
backtesting.py copied to clipboard

MT5 Position Netting changing SLO/TP to the last trade Python 3

Open zeshansari opened this issue 1 year ago • 0 comments

Expected Behavior

Actual Behavior

I have Mt5 Netting Demo account and I am using MT5 api to test my strategy on demo account

when any trade open it get merged in the same group and because of that I face the following problems:

  1. Stoploss and Take profit get revised not on average but as per the last trade, infact all trade requests have their separate slo/tp value
  2. so many lots/volume added i.e. 200+ sometimes which is not required because it gives too much loss at once

I want to know following:

  1. How to put slo/tp separately on individual lot/trade/volume
  2. How to limit lot/volume size not to trade more if I have 10 lots in 1 position.

zeshansari avatar May 25 '23 06:05 zeshansari