For example let's say my strategy usually puts me in a long position within 3 bars of the last swing low and I wish to put a stop loss at that swing low. In EasyLanguage I would use a simple line of code:
Code: Select all
Sell next bar from entry("MY LE") At$ lowest(low,3)Stop;
Unfortunately PowerLanguage still doesn't support the reserved word "At$" which I find surprising as placing a stop at or just below the nearest swing low or above the nearest swing high for a short position is pretty common practice. It would be nice to be able to do that easily in an automated strategy.
Is it likely that At$ will be implemented in PowerLanguage any time soon? If not I would be most grateful to hear from anyone who has a workaround solution they would be kind enough to share.