×

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

Buy

224 bytes added, 15:29, 19 February 2012
no edit summary
When a Buy order is filled, any open short positions will also be closed.
==== Usage ====<syntaxhighlight>Buy[("EntryLabel")][TradeSize]EntryType;</syntaxhighlight>
Parameters inside the square brackets are optional -if these aren't defined, the default is used.
==== Parameters ==== :'''EntryLabel''' - an optional parameter; assigns a name that will be displayed in the name label below the entry, and can be used to identify the particular entry and to tie an exit to it.::An exit can only be tied to an entry within the same signal; for more information, see [[Sell]]. ::If '''EntryLabel''' is not specified, the name "Buy" will be used for the first entry, "Buy#2" for the second entry, "Buy#3" for the third entry, etc.
[[EntryLabel]] :'''TradeSize''' - an optional parameter; assigns a name that numerical expression, specifying the number of contracts or shares to buy; the expression must be followed by one of the following equivalent words: [[Share]], [[Shares]], [[Contract]] or [[Contracts]].::If '''TradeSize''' value equals 0 or is negative, a long position will not be displayed entered but any open short positions will be closed.::If '''TradeSize''' is not specified, the trade size value set by the user in the name label below Properties tab of the entry, and can Strategy Properties window will be used to identify the particular entry and to tie an exit to it.
An exit can only be tied to an entry within the same signal; for more information, see [[Sell.]]  If [[EntryLabel]] is not specified, the name "Buy" will be used for the first entry, "Buy#2" for the second entry, "Buy#3" for the third entry, etc.  [[TradeSize]] - an optional parameter; a numerical expression, specifying the number of contracts or shares to buy; the expression must be followed by one of the following transposable words: [[Share, Shares, Contract]] or [[Contracts.]] If [[TradeSize]] value equals 0 or is negative, a long position will not be entered but any open short positions will be closed. If [[TradeSize]] is not specified, the trade size value set by the user in the Properties tab of the Strategy Properties window will be used.  [['''EntryType]] ''' - a required parameter; specifies the timing and price of entry.
== Entry types ==
There are four kinds of EntryType:
=== Enter this bar on close ==<syntaxhighlight>This Bar[On]Close</syntaxhighlight>
Where: :'''On''' - is a [[On:Category:Skip_Words|skip word]] is a skip word and can be omitted.
A Buy Arrow will be placed at the current bar's [[Close]] tick.
=== Buy next bar at open ===<syntaxhighlight>Next Bar[At]Open </syntaxhighlightor <syntaxhighlight>Next Bar[At]Market</syntaxhighlight>
Where: - words [[:Words '''"Market"]] ''' and [['''"Open"]] ''' are transposable interchangeable.:'''At''' - is a [[At:Category:Skip_Words|skip word]] is a skip word and can be omitted.
A Buy Arrow will be placed at the next bar's [[Open]] tick.

Navigation menu