One must understand some important issues with regards to orders issued from MC :
1) When the code directive [IntrabarOrderGeneration = True] or when the Format Signal option of "Enable intra-bar order generation and calculation" is set on, the likelihood of a huge number of cancel orders is great.
HOWEVER, THE DOCUMENTATION WON'T TELL YOU THIS !!
2) If you employ "built-in" functions like SetDollarTrailing_pt or SetPercentTrailing or SetBreakEven, etc.....these functions operate INTRABAR by default with no option of changing this behavior other than CONDITIONALLY executing these at the end of the bar. I have complained about this and indeed have entered an enhancement request to have a directive to turn the intrabar generation logic off...[IntrabarSetOrderGeneration = False] .
Currently, to control the behavior of the "SET" functions, one can place condition statements to turn them off and on at the end of a bar (BARSTATUS=2):
Example:
Code:
If ProfitAmt < 300 Then
SetDollarTrailing(100);
So every time the bar closes, the SET statement is re-evaluated.
HOWEVER, THE DOCUMENTATION WON'T TELL YOU THIS !!
Again, these SET statements have a high potential for creating a high number of cancel orders to the broker.
Also keep in mind these intrabar operations have a high impact on CPU utilization. As soon as I started to use them, my CPU utilization went from 20% to 40-60%.