×

Sign up and get MultiCharts free

Use its powerful simulation mode with data included out of the box. Just fill out the form and start honing your trading skills with a few clicks.

Changes - MultiCharts

Changes

Jump to navigation Jump to search

IntraBarOrderGeneration

740 bytes added, 14:43, 31 August 2012
Toggles intra-bar order generation flag on or off.
==== Usage ====
<syntaxhighlight>[IntrabarOrderGeneration = LogicalValue]</syntaxhighlight>
Where: <syntaxhighlight>LogicalValue</syntaxhighlight> - a true/false value; True = Enable; False = Disable
:'''LogicalValue''' - a true/false value: [[True]] = Enable; [[False]] = Disable.
If the attribute is not present in the study's code, intra-bar order generation can be set by the user in the Calculations tab of the Format Signal window.:
* If set to True, the "Enable intra-bar order generation and calculation" check box will be checked and grayed out, and the radio buttons will be available.* If set to False, the "Enable intra-bar order generation and calculation" check box will be unchecked and grayed out, and the radio buttons disabled. == Notes ==
If * [[: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 Falsetrue means that the signal is evaluated on every tick, "Enable intra-use [[BarStatus]] to be able to perform certain operations on the bar order generation and calculation" check box will be unchecked and grayed outclose. For example, and you might only want to calculate the moving average or entry logic on the radio buttons disabled. ==== Notes ==== Intra-bar order generation is currently supported for single-data series charts onlyclose. Intra-bar order generation for multiple-data series charts will be implemented in This way you'll have the next release best of two worlds: the platformpossibility to manage your orders and positions on a per tick basis, while still being able to execute certain code only on the bar close.* Use [[IntraBarPersist]] for variables that are updated on every tick.
Attributes are applied at the time of compilation and cannot be changed at run-time. ==== Example ==Examples ==
Enable intra-bar order generation:
<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;
</syntaxhighlight>
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]]

Navigation menu