Wondering if there's some way to save and re-load the data for strategy open trades such that Strategy Position Trade reserved words can be re-established if a strategy is turned off and then re-started?
Relevant reserved words:
url=www.multicharts.com/trading-software/in ... ion_Trades
The problem I'm running into at the moment is all open trades in a pyramid position are consolidated into 1 trade when the strategy is restarted.
For example, a position with 2 open entries may look like this:
Code: Select all
OpenEntriesCount = 2
OpenEntryPrice( 0 ) = 0.75
OpenEntryPrice( 1 ) = 0.78
OpenEntryContracts( 0 ) = 1
OpenEntryContracts( 1 ) = 2
OpenEntryMaxProfitPerContract( 0 ) = 1.10
OpenEntryMaxProfitPerContract( 1 ) = 0.15
PosTradeEntryName( 0, 0 ) = Entry_1
PosTradeEntryName( 0, 1 ) = Entry_2
Code: Select all
OpenEntriesCount = 1
OpenEntryPrice( 0 ) = 0.765 ( ( 0.75 + 0.78 ) / 2 )
OpenEntryPrice( 1 ) = 0.0
OpenEntryContracts( 0 ) = 3 (assumes all contracts entered in 1 trade, i.e. 1+2)
OpenEntryContracts( 1 ) = 0
OpenEntryMaxProfitPerContract( 0 ) = 0.15
OpenEntryMaxProfitPerContract( 1 ) = 0.0
PosTradeEntryName( 0, 0 ) = 'Initial Entry' (MC default)
PosTradeEntryName( 0, 1 ) = ""
Thanks