Login Page - Create Account

Support Board


Date/Time: Sun, 24 Nov 2024 17:48:07 +0000



Post From: How to automatically aggregate positions from 2 different studies?

[2024-05-16 11:46:55]
User895922 - Posts: 1
The problem i am facing is like this. I have 2 studies which are different strategies meant to be run together. Both of them will have their own trades. Now take the case where study 1 executed 10 lots long at market. Now if maybe 5 minutes later, study 2 executes 5 short orders at market, What is happening is the earlier 10 lots are getting flattened and my net position becomes 5 short. This wasnt the intended effect. Ideally what i want to happen is, if study 1 is long 10 lots and study 2 executes 5 short orders, my net position should now be 5 long. as 5 lots were liquidated. In this scenario if the market goes to my study 1 stop loss, it should result in 10 lots shorted (which were earlier long), so my net position becomes 5 short. However i am not able to achieve this. I dont require 2 positions from different strategies to run simultaneously although the net effect would be the same. I just want my orders changing in this fashion. How can i achieve this?