Moving average system which waits for a better entry

Wait for a better entry:
A simple way to improve the relevant conditions is to wait for a better price than the system signal. One obvious problem is that when prices give a new signal and move on, you don't have a chance to enter the market at a better price. Statistically, a lot of small improvements may offset the chance that the deal was completely missed. In order to avoid missing the worst case of maximum profit, if there is no trading opportunity within 5 days, we can enter into the market at the closing and if there is no opportunity, the deal will end on day 5.

本着真正的TradingView精神,该脚本的作者将其开源发布,以便交易者可以理解和验证它。为作者喝彩!您可以免费使用它,但在出版物中重复使用此代码受网站规则的约束。 您可以收藏它以在图表上使用。