×

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
Open main menu

Changes

IntraBarOrderGeneration

81 bytes added, 09:41, 19 February 2012
m
no edit summary
Where:
:'''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:
* [[: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.
* Use [[IntraBarPersist]] for variables that are updated on every tick.
== Examples ==
if (Close > Close[1]) then
Buy ("EL") 1 contracts next bar at market;
</syntaxhiglightsyntaxhighlight>
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]]