THE FIRST QUESTION: How does one manage the position sizes for concurrent signals in a real-time IBC trading system?
For the backtest, I am doing portfolio position sizing in the CBT. That means, I have a general position size rule in the 1st phase AFL basing on the volume of the -7th bar (trading hourly) and I modify the resulting order size in the CBT (1) to check if it does not exceed 20% of the protfolio equity and (2) to divide the available cash equally between multple signals received at the same bar. While (1) can be done outside the CBT, (2) cannot ALAIK.
I read that it is possible to submit orders from the CBT form there: Launch orders from portfolio backtester . But there is no "AR Backtest" option similar to Scan/Explore. In the official IBC guide IBController 1.3.8 READ ME, the order is placed in the 1st phase, just right after specifying Buy and Sell arrays (Example 1). However, it is not possible to access the signals array for the bar from there (feel free to correct me if I am mistaken).
I downloaded the AB and started with AFL in the middle of the July 2021 and I am greatly pleased with the concepts of the language, the documentation, the information found in the forum and most of all, the flashing performance. However, while all the necessary information to assemble an automatic trading system might actually be present in the docs, a "Hello World" type sample project would be most welcome to make it less confusing.