Hi,
i've coded a new signal in multichart using PL and am now having a problem with the <b>intrabar generation of stoploss orders in the entry bar</b>.
Stoploss orders are generated correctly in all following bars after the entry bar, but not within.
Also, in the EL_Essentials.pdf reference guide (download from the tssupport site) it says on page 90:
... this does not apply to my signal/strategy. If the stoploss is reached, the order is only executed at the next bar (using 30min bars), which leads to partly much higher losses than defined in the Setstoploss() function.
Any ideas?
Thx in advance,
al
Screenshot shows the execution of the stoplossorder at 6988 after the entry at 6974. Stoploss is set to 5 points, so it should be executed at 6979 in the entry bar:
i've coded a new signal in multichart using PL and am now having a problem with the <b>intrabar generation of stoploss orders in the entry bar</b>.
Stoploss orders are generated correctly in all following bars after the entry bar, but not within.
Also, in the EL_Essentials.pdf reference guide (download from the tssupport site) it says on page 90:
Built-in Stops
EasyLanguage includes built-in exit commands that may be included directly in your strategies. These special
commands will be active even on the bar of entry; that is, they are evaluated on each tick (regardless of any
setting for Intrabar Order Generation on the Calculation tab of the Format Strategy dialog). These stops are
not written in EasyLanguage, but are part of the strategy engine.
... this does not apply to my signal/strategy. If the stoploss is reached, the order is only executed at the next bar (using 30min bars), which leads to partly much higher losses than defined in the Setstoploss() function.
Any ideas?
Thx in advance,
al
Screenshot shows the execution of the stoplossorder at 6988 after the entry at 6974. Stoploss is set to 5 points, so it should be executed at 6979 in the entry bar: