Difference between revisions of "From"

From MultiCharts
Jump to navigation Jump to search
m
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
A skip word; used in strategy exit statements in combination with [[Entry]] word that ties an exit to the particular entry that was assigned the [[EntryLabel name.]]
+
A skip word; used in strategy exit statements in combination with [[Entry]] word that ties an exit to the particular entry that was assigned the ''EntryLabel'' name.
  
An exit can only be tied to an entry within the same signal; for more information, see [[Buy]] or [[SellShort.]]  
+
An exit can only be tied to an entry within the same signal; for more information, see [[Buy]] or [[SellShort]].
  
 
Skip Words serve solely to improve the readability of PowerLanguage code and are skipped (ignored) during the compilation and execution.  
 
Skip Words serve solely to improve the readability of PowerLanguage code and are skipped (ignored) during the compilation and execution.  
Line 7: Line 7:
 
The use of Skip Words is optional; they can be inserted anywhere within the PL code and will appear in red in PowerLanguage Editor.  
 
The use of Skip Words is optional; they can be inserted anywhere within the PL code and will appear in red in PowerLanguage Editor.  
 
   
 
   
==== Usage ====
+
== Usage ==
 
<syntaxhighlight>From Entry("EntryLabel")</syntaxhighlight>
 
<syntaxhighlight>From Entry("EntryLabel")</syntaxhighlight>
  
Where: [[EntryLabel]] - the name that was assigned to the entry that the exit is to be tied to
+
Where:  
           
 
[[From]] - a skip word and can be omitted 
 
  
==== Example ====
+
:'''EntryLabel''' - the name that was assigned to the entry that the exit is to be tied to.
Completely exit from the long position established by the entry labeled "Original Entry", at Market
+
:'''From''' - a skip word and can be omitted.
price on open of next bar:
 
  
<syntaxhighlight>Sell From Entry("Original Entry")Next Bar at Open;</syntaxhighlight>  
+
== Example ==
 +
Completely exit from the long position established by the entry labelled "Original Entry", at Market price on open of next bar:
 +
 
 +
<syntaxhighlight>Sell From Entry ("Original Entry") Next Bar at Open;</syntaxhighlight>  
  
 
[[Category:Skip Words]]
 
[[Category:Skip Words]]

Latest revision as of 15:08, 19 February 2012

A skip word; used in strategy exit statements in combination with Entry word that ties an exit to the particular entry that was assigned the EntryLabel name.

An exit can only be tied to an entry within the same signal; for more information, see Buy or SellShort.

Skip Words serve solely to improve the readability of PowerLanguage code and are skipped (ignored) during the compilation and execution.

The use of Skip Words is optional; they can be inserted anywhere within the PL code and will appear in red in PowerLanguage Editor.

Usage

From Entry("EntryLabel")

Where:

EntryLabel - the name that was assigned to the entry that the exit is to be tied to.
From - a skip word and can be omitted.

Example

Completely exit from the long position established by the entry labelled "Original Entry", at Market price on open of next bar:

Sell From Entry ("Original Entry") Next Bar at Open;