EntryTrigger
Usage
EntryTrigger
Description
The EntryTrigger keyword is only available in a few specific areas of the TradeSim scans. Specifically it can be used in any BullScript that is part of the Exit tab or the general tab. EntryPrice returns true on days when the criteria on the entry tab evaluate to true. Otherwise it returns false. It can be used to assist creating stops in the exit and general tab.
The EntryTrigger keyword is not a true function. Internally when BullScript for the scan is being generated, it is replaced with another variable that holds the calculation described on the Entry tab.
Example
stop := Low-2*ATR(10);
trailing := if(EntryTrigger, stop, max(stop,prev));
See Also
EntryPrice
Usage
EntryPrice
Description
The EntryPrice keyword is only available in a few specific areas of the TradeSim scans. Specifically it can be used in any BullScript that is part of the exit tab or the general tab. EntryPrice returns the price calculated on the Entry tab the last time the criteria on the Entry tab evaluated to true. Or, if the Delay Entry By One Bartickbox is set on the Entry tab, it returns the price for the following bar. It can be used to assist creating stops in the Exit and Stops tab.
Advanced Notes
The EntryPrice keyword is not a true function. Internally when BullScript for the scan is being generated, it is replaced with one of two scripts. If Delay Entry By One Bar is not ticked on the Entry tab then EntryPrice is equivalent to valuewhen(1,EntryTriggerN,EntryPriceN). where EntryTriggerN and EntryPriceN are variables representing the calculations made on the Entry tab.
If Delay Entry By One Bar is ticked on the Entry tab, then the EntryPrice function is equivalent to the code valuewhen(1,EntryTriggerN or hist(EntryTriggerN,1),EntryPriceN).
Example
stop := if (EntryTrigger, EntryPrice * 0.9, prev*1.01)
See Also