MarketPosition_at_Broker_for_The_Strategy
Posted: Nov 27 2023
Hi,
I want to run multiple automated trading strategies on a single chart in MultiCharts. So I tried using the following two keywords of powerlanguage to access the strategy specific market position and the average entry price.
MarketPosition_at_Broker_for_The_Strategy
AvgEntryPrice_at_Broker_for_The_Strategy
But they return 0 in almost all the cases, even when they should return a non-zero value. I've done backtests as well as live tests on a demo account and the results were the same. Note, I've enabled IntraBarOrderGeneration for these strategies.
Please let me know how to access these values reliably.
Thank you.
I want to run multiple automated trading strategies on a single chart in MultiCharts. So I tried using the following two keywords of powerlanguage to access the strategy specific market position and the average entry price.
MarketPosition_at_Broker_for_The_Strategy
AvgEntryPrice_at_Broker_for_The_Strategy
But they return 0 in almost all the cases, even when they should return a non-zero value. I've done backtests as well as live tests on a demo account and the results were the same. Note, I've enabled IntraBarOrderGeneration for these strategies.
Please let me know how to access these values reliably.
Thank you.