IntraBarOrderGeneration: Difference between revisions
From MultiCharts
→Example
m (→Notes) |
|||
Line 17: | Line 17: | ||
* [[: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. | ||
== | == Examples == | ||
Enable intra-bar order generation: | Enable intra-bar order generation: | ||
<syntaxhighlight>[IntrabarOrderGeneration = True];</syntaxhighlight> | <syntaxhighlight>[IntrabarOrderGeneration = True];</syntaxhighlight> | ||
When IntraBarOrderGeneration is turned on, ''next bar'' really means ''next '''tick''' ''. For example: | |||
<syntaxhighlight> | |||
if (Close > Close[1]) then | |||
Buy ("EL") 1 contracts next bar at market; | |||
</syntaxhiglight> | |||
Will generate a buy order that is active for the next tick only. As long as the condition remains true, the entry order is submitted for the next tick. | |||
[[Category:Attributes]] | [[Category:Attributes]] |