I am performing manual (discretionary) trading with MultiCharts, coupled with Interactive Brokers.
I would like to follow what my trading, in order to perform some statistics.
In this purpose, I am trying to write an indicator or a signal, which would run in parallel of my discretionary trading, and perform some analysis.
However, MarketPosition does not seem to work when in manual trading (= when the trading is not generated by signals).
For instance, I have used this simple signal code:
Code: Select all
[IntrabarOrderGeneration = false]
If LastBarOnChart then begin
MessageLog("");
MessageLog("MarketPosition = ", MarketPosition);
MessageLog("MarketPosition_at_Broker = ", MarketPosition_at_Broker);
MessageLog("MarketPosition_at_Broker_for_the_Strategy = ", MarketPosition_at_Broker_for_the_Strategy);
end;
Do you know a way to have access to MarketPosition when performing manual trading, that is to say when buy/sell orders are not generated by signals, but by the trader?
Thanks in advance for your help!
Best regards,
Nicolas