IntraBarOrderGeneration: Difference between revisions
From MultiCharts
→Notes
mNo edit summary |
Dave Masalov (talk | contribs) (→Notes) |
||
Line 14: | Line 14: | ||
== Notes == | == Notes == | ||
* [[:Category:Attributes|Attributes]] like the ''IntrabarOrderGeneration'' statement are applied at the time of compilation and cannot be changed at run-time. | * [[:Category:Attributes|Attributes]] like the ''IntrabarOrderGeneration'' statement are applied at the time of compilation and cannot be changed at run-time. | ||
* Since IntraBarOrderGeneration set to true means that the signal is evaluated on every tick, use [[BarStatus]] to be able to perform certain operations on the bar close. For example, you might only want to calculate the moving average or entry logic on the bar close. This way you'll have the best of two worlds: the possibility to manage your orders and positions on a per tick basis, while still being able to execute certain code only on the bar close. | * Since IntraBarOrderGeneration set to true means that the signal is evaluated on every tick, use [[BarStatus]] to be able to perform certain operations on the bar close. For example, you might only want to calculate the moving average or entry logic on the bar close. This way you'll have the best of two worlds: the possibility to manage your orders and positions on a per tick basis, while still being able to execute certain code only on the bar close. |