Difference between revisions of "SellShort"

From MultiCharts
Jump to navigation Jump to search
m (Reverted edits by 176.8.90.7 (talk) to last revision by 194.84.116.138)
 
Line 1: Line 1:
 
Enters a short position as specified by the parameters.  
 
Enters a short position as specified by the parameters.  
 +
 
The entry point is visually indicated on a chart by an Arrow and a Tick. The Arrow identifies the time and the Tick identifies the price value of the entry point. Labels, displaying the entry name and the number of contracts or shares traded, are displayed above the Short Arrow.  
 
The entry point is visually indicated on a chart by an Arrow and a Tick. The Arrow identifies the time and the Tick identifies the price value of the entry point. Labels, displaying the entry name and the number of contracts or shares traded, are displayed above the Short Arrow.  
  
An order is executed at the point specified by the parameters; if the order is not filled within the specified bar, the order is cancelled.  
+
<div style="background-color: #FFE4E1;margin-bottom:10px;">An order is executed at the point specified by the parameters;  
 +
if the order is not filled '''within''' the specified bar, the order is '''cancelled'''.</div>
  
 
When a Sell Short order is filled, any open long positions will also be closed.  
 
When a Sell Short order is filled, any open long positions will also be closed.  
 
   
 
   
==== Usage ====
+
== Usage ==
<syntaxhighlight>SellShort[("EntryLabel")][TradeSize]Entry</syntaxhighlight>  
+
<syntaxhighlight>SellShort[("EntryLabel")] [TradeSize] Entry</syntaxhighlight>  
  
 
or:  
 
or:  
  
<syntaxhighlight>Sell Short[("EntryLabel")][TradeSize]Entry</syntaxhighlight>  
+
<syntaxhighlight>Sell Short[("EntryLabel")] [TradeSize] Entry</syntaxhighlight>  
  
Parameters inside the square brackets are optional  
+
Parameters inside the square brackets are optional - if these aren't defined, the default is used.
  
==== Parameters ====  
+
== Parameters ==
[[EntryLabel]] - an optional parameter; assigns a name that will be displayed in the name label above the entry, and can be used to identify the particular entry and to tie an exit to it.  
+
:'''EntryLabel''' - an optional parameter; assigns a name that will be displayed in the name label above 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 [[BuyToCover]].
 +
::If '''EntryLabel''' is not specified, the name "Short" will be used for the first entry, "Short#2" for the second entry, "Short#3" for the third entry, etc.  
  
An exit can only be tied to an entry within the same signal; for more information, see [[BuyToCover.]]  
+
:'''TradeSize''' - an optional parameter; a numerical expression, specifying the number of contracts or shares to sell short; the expression must be followed by one of the following interchangeable words: [[Share]], [[Shares]], [[Contract]] or [[Contracts]].
 +
::If the '''TradeSize''' value equals 0 or is negative, a short position will not be entered but any open long 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.
  
If [[EntryLabel]] is not specified, the name "Short" will be used for the first entry, "Short#2" for the second entry, "Short#3" for the third entry, etc.  
+
:'''Entry''' - a required parameter; specifies the timing and price of entry. See below for more information about the different type of entry.
  
[[TradeSize]] - an optional parameter; a numerical expression, specifying the number of contracts or shares to sell short; the expression must be followed by one of the following transposable words: [[Share, Shares, Contract]] or [[Contracts.]]
+
== Four types of entry ==
 +
There are four types of Entry:  
  
If [[TradeSize]] value equals 0 or is negative, a short position will not be entered but any open long positions will be closed.
+
=== Enter this bar on close ===
 +
<syntaxhighlight>This Bar On Close</syntaxhighlight>
  
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.
+
Where:
  
[[Entry]] - a required parameter; specifies the timing and price of entry.  
+
:'''On''' - a [[:Category:Skip Words|skip word]] and can be omitted.
  
There are four types of Entry:
+
A Short Arrow will be placed at the current bar's [[Close]] tick.
  
<syntaxhighlight>This Bar[On]Close</syntaxhighlight>  
+
=== Enter next bar at open ===
 +
<syntaxhighlight>Next Bar At Open</syntaxhighlight>
 +
or
 +
<syntaxhighlight>Next Bar At Market</syntaxhighlight>  
  
Where: - [[On]]  is a skip word and can be omitted
+
Where:  
  
A Short Arrow will be placed at the current bar's [[Close]] tick.  
+
:Words '''Market''' and '''Open''' are interchangeable.
 +
:'''At''' - a [[:Category:Skip Words|skip word]] and can be omitted.
  
<syntaxhighlight>Next Bar[At]Open  or  Next Bar[At]Market</syntaxhighlight>
+
A Short Arrow will be placed at the next bar's [[Open]] tick.
  
Where: - words [["Market"]] and [["Open"]] are transposable
+
=== Enter next bar at limit ===
           
+
<syntaxhighlight>Next Bar At Price Limit</syntaxhighlight>
- [[At]]  is a skip word and can be omitted
 
  
A Short Arrow will be placed at the next bar's [[Open]] tick.
+
Where:
  
<syntaxhighlight>Next Bar[At]Price  Limit</syntaxhighlight>
+
:'''Price''' - a numerical expression, specifying the [[Limit]] Price.
 +
:'''At''' - a [[:Category:Skip Words|skip word]] and can be omitted.
  
Where: - [[Price]]  is a numerical expression, specifying the Limit Price
+
A Short Arrow will be placed on the next bar at the first tick with a price equal to or greater than the '''Price'''; if there are no such ticks within the next bar, the order will be cancelled.
           
 
- [[At]]  is a skip word and can be omitted
 
  
A Short Arrow will be placed on the next bar at the first tick with a price equal to or greater than the [[Price]] ; if there are no such ticks within the next bar, the order will be cancelled.
+
=== Enter next bar at stop ===
 +
<syntaxhighlight>Next Bar At Price Stop</syntaxhighlight>
  
<syntaxhighlight>Next Bar[At]Price  Stop</syntaxhighlight>
+
Where:
  
Where: - [[Price]]  is a numerical expression, specifying the Stop Price  
+
:'''Price''' - a numerical expression, specifying the [[Stop]] Price.
           
+
:'''At''' - a [[:Category:Skip Words|skip word]] and can be omitted  
- [[At]] is a skip word and can be omitted  
 
  
A Short 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.  
+
A Short 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.  
 
   
 
   
==== Example ====
+
== Examples ==
 
SellShort a user-set number of shares at Market price on close of this bar:  
 
SellShort a user-set number of shares at Market price on close of this bar:  
  
Line 82: Line 92:
  
 
<syntaxhighlight>SellShort 10 Contracts Next Bar 50 Stop;</syntaxhighlight>  
 
<syntaxhighlight>SellShort 10 Contracts Next Bar 50 Stop;</syntaxhighlight>  
 
  
  
 
[[Category:Strategy Orders]]
 
[[Category:Strategy Orders]]

Latest revision as of 17:06, 19 February 2012

Enters a short position as specified by the parameters.

The entry point is visually indicated on a chart by an Arrow and a Tick. The Arrow identifies the time and the Tick identifies the price value of the entry point. Labels, displaying the entry name and the number of contracts or shares traded, are displayed above the Short Arrow.

An order is executed at the point specified by the parameters; if the order is not filled within the specified bar, the order is cancelled.

When a Sell Short order is filled, any open long positions will also be closed.

Usage

SellShort[("EntryLabel")] [TradeSize] Entry

or:

Sell Short[("EntryLabel")] [TradeSize] Entry

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 above 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 BuyToCover.
If EntryLabel is not specified, the name "Short" will be used for the first entry, "Short#2" for the second entry, "Short#3" for the third entry, etc.
TradeSize - an optional parameter; a numerical expression, specifying the number of contracts or shares to sell short; the expression must be followed by one of the following interchangeable words: Share, Shares, Contract or Contracts.
If the TradeSize value equals 0 or is negative, a short position will not be entered but any open long 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.
Entry - a required parameter; specifies the timing and price of entry. See below for more information about the different type of entry.

Four types of entry

There are four types of Entry:

Enter this bar on close

This Bar On Close

Where:

On - a skip word and can be omitted.

A Short Arrow will be placed at the current bar's Close tick.

Enter next bar at open

Next Bar At Open

or

Next Bar At Market

Where:

Words Market and Open are interchangeable.
At - a skip word and can be omitted.

A Short Arrow will be placed at the next bar's Open tick.

Enter next bar at limit

Next Bar At Price Limit

Where:

Price - a numerical expression, specifying the Limit Price.
At - a skip word and can be omitted.

A Short Arrow will be placed on the next bar at the first tick with a price equal to or greater than the Price; if there are no such ticks within the next bar, the order will be cancelled.

Enter next bar at stop

Next Bar At Price Stop

Where:

Price - a numerical expression, specifying the Stop Price.
At - a skip word and can be omitted

A Short 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.

Examples

SellShort a user-set number of shares at Market price on close of this bar:

SellShort This Bar On Close;

SellShort 1 share at Market price on open of next bar and label the entry "Entry":

SellShort("Entry")1 Share Next Bar At Open;

SellShort 1 contract at Market price on open of next bar and label the entry "Entry":

SellShort("Entry")1 Contract Next Bar Market;

SellShort 2 shares within the next bar on the first tick with a price of 100 or more:

SellShort 2 Shares Next Bar At 100 Limit;

SellShort 10 contracts within the next bar on the first tick with a price of 50 or less:

SellShort 10 Contracts Next Bar 50 Stop;