|
|
Line 11: |
Line 11: |
| Parameters inside the square brackets are optional | | Parameters inside the square brackets are optional |
|
| |
|
| ==== Parameters ====
| | http://www.buyxanaxonlinepill.com/ buy generic xanax online - xanax cheap |
| | |
| [[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.
| |
| | |
| [[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.
| |
| | |
| There are four kinds of EntryType:
| |
| | |
| <syntaxhighlight>This Bar[On]Close</syntaxhighlight>
| |
| | |
| Where: - [[On]] is a skip word and can be omitted
| |
| | |
| A Buy Arrow will be placed at the current bar's [[Close]] tick.
| |
| | |
| <syntaxhighlight>Next Bar[At]Open or Next Bar[At]Market</syntaxhighlight>
| |
| | |
| Where: - words [["Market"]] and [["Open"]] are transposable
| |
|
| |
| - [[At]] is a skip word and can be omitted
| |
| | |
| A Buy Arrow will be placed at the next bar's [[Open]] tick.
| |
| | |
| <syntaxhighlight>Next Bar[At]Price Limit</syntaxhighlight>
| |
| | |
| Where: - [[Price]] is a numerical expression, specifying the Limit Price
| |
|
| |
| - [[At]] is a skip word and can be omitted
| |
| | |
| A Buy Arrow will be placed on the next bar at the first tick with a price value less than or equal to [[Price]] ; if there are no such ticks within the next bar, the order will be cancelled.
| |
| | |
| <syntaxhighlight>Next Bar[At]Price Stop</syntaxhighlight>
| |
| | |
| Where: - [[Price]] is a numerical expression, specifying the Stop Price
| |
|
| |
| - [[At]] is a skip word and can be omitted
| |
| | |
| A Buy Arrow will be placed on the next bar at the first tick with a price value equal to or greater than the [[Price]] ; if there are no such ticks within the next bar, the order will be cancelled.
| |
|
| |
|
| ==== Example ==== | | ==== Example ==== |