Thank you for the update, now I see the script replicates what is done in the Close and Rev buttons in the main account
I have one last scenario where I need to "replicate" orders but in a lightly different way that is the next:
I’m testing 1 algorithmic strategy and it gives signals based in the ES, but happens that I need to replicate the orders the strategy places (Entry, Trailing Stop Loss…) in a Sim account that will work with Micros like the MES. So in this case the second account has a different instrument to work with different order quantities.
The idea is that if the strategy generates 1 ES long contract trade, then the script replicates this trade but “in fractions of the ES”, so in Micro-ES where maybe you could specify the target contract instrument and order quantity. In this example let’s say the script replicates the order in a 2nd account but instead to replicate 1 ES long contract trade, it replicates 5 MES long contract trade to fit the risk according to the size in the 2nd account.
I think the more intuitive way to do this would be additionally specifying in the script:
- The account #2 Target Order Quantity to replicate.
- The account #2 Input series where replicate the order.
I will attach 1 picture to give a visual idea (I don't know if it could be the most useful way to specify this in the script but it is more or less the idea I have), because I have since this Thrursday looking for a way to do this and I can’t find anything similar to what I explain. During these days I’ve tried different things trying to get the result I explain and the most I got was to replicate from the ES to the MES, but unable to change the target quantity. And I don’t know if the way I could replicate from the ES to the MES is the most efficient way because I first loaded the MES in the main chart window as a second data series in order to then be able to specify in the script the MES as Input Series.
Thank you very much for your time and for the support
Comment