Historical Entry
_Historical Entry strategy creates a single historical long or short entry order that is based on user-specified inputs.
Description
The strategy entry can only occur when the specified price appears on the bar following the PrevBarDate and PrevBarTime setting. The _Historical Entry strategy allows you to replicate an actual preexisting brokerage account position on a chart. You can then use one or more exit strategies to exit the position.
Default Inputs
MyEnrtyPrice( 100 ) sets the actual price of entry for the existing open position.
Quantity( 1000 ) sets the number of shares to enter into the position.
LongOrShort( 1 ) sets the type of entry. 1 = long; 2 = short.
PrevBarDate_YYMMDD( 050102 ) sets the date of the bar prior to the desired entry bar in YYMMDD format.
PrevBarTime_HHMM( 1300 ) sets the time of the bar that immediately precedes the desired entry bar in 24-hour HHMM format (for intra-day bar chart only).
OpenPriceEntryBar( 0 ) sets the Open price of the desired entry bar.