Analysis Techniques & Strategies

_Historical Entry (Strategy)

image\trumpet2.gif Disclaimer

There are cases where you have a position in your TradeStation account that might have transferred in from another account, or might have been opened via the order bar, and you want to be able to take advantage of the power of EasyLanguage to exit the position.  However, since EasyLanguage exit strategies will only close a position if EasyLanguage "knows" about the entry, the _Historical Entry "discretionary" strategy is used to make EasyLanguage "recognize" the existing position after the fact.

When inserted on an intraday or daily chart, this strategy will enter the market (long or short depending on the input) on a valid MyEntryPrice on the desired bar of entry (immediately following the bar specified with date and time).  

 The specified bar can be up to and including the last bar of the chart at the time the strategy is applied.  CAUTION: This strategy should not be used to try to enter a position in the future.  There are several other "discretionary" strategies available that can be used for single price or time based entries in the future.

Input Information

Name Type Default Description
MyEntryPrice Numeric 100 Actual price of entry for the existing open position.
Quantity Numeric 1000 Specifies the number of shares to enter into the position.
LongOrShort Numeric 1 Used to indicate the type of entry; use 1 for Long, 2 for Short.
PrevBarDate_YYMMDD Numeric 020102 Date of the bar prior to the desired bar of entry, in YYMMDD format.
PrevBarTime_HHMM Numeric 1300 Time of the of the bar  that immediately precedes the desired bar of entry, in 24 hour HHMM format. This value is only used in a chart using an intra-day bar interval.  
OpenPriceEntryBar Numeric 0 Opening price of the desired entry bar.

Usage

This strategy creates a single, historical long or short entry based on user-specified inputs. When specifying an entry price (MyEntryPrice), date (PrevBarDate_YYMMDD), or time (PrevBarTime_HHMM), keep in mind that a strategy entry can only occur when the specified price appears on the bar following the PrevBarDate and PrevBarTime setting. In lightly traded stocks, there may be gaps between bars which would prevent a historical entry because a bar does not exist for the entry time or date you specified. In addition, the entry price must also exist in the High-Low range on the entry bar; otherwise no historical entry will occur.

 This strategy should not be used to try to enter a position in the future.  There are several other "discretionary" strategies available that can be used for single price or time based entries in the future.

Description

The _Historical Entry strategy allows you to reproduce an actual, preexisting brokerage account position on a chart. You can then use one or more EasyLanguage strategies to exit the position. By indicating the specific criteria of the entry (number of shares, price, long or short, date, and/or time), the strategy will indicate the entry on the chart when it is applied.

This strategy should not be used to enter a position in the future.

This strategy will only work on charts using an Intra-day or Daily bar interval.

Order Name: Buy, Buy #2, Short, or Short #2 (system-generated default names)

Related Strategy: None

Related Function(s): None