OPEN-SOURCE SCRIPT

Moving average system which waits for a better entry

By dongyun
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.
Moving AveragesTrend Analysis

Open-source script

In true TradingView spirit, the author of this script has published it open-source, so traders can understand and verify it. Cheers to the author! You may use it for free, but reuse of this code in publication is governed by House rules. You can favorite it to use it on a chart.

Want to use this script on a chart?

Disclaimer