TradingView
BigBitsIO
10 Th04 2020 18:36

Fancy Triple Moving Averages [BigBitsIO] 

Bitcoin / United States DollarCoinbase

Mô tả

This script is for three moving averages with as many features as I can possibly fit into a single moving average.

Features:
- Three moving averages (MA1, MA2, MA3).

- Standard MA inputs.
- MA type.
- MA period.
- MA price.
- MA resolution (time frame).
- Visibility toggle.
- MA Candle Type

- Fancy MA inputs.
- Toggle to show only candles included in the MA calculation ("Highlight inclusion") or display entire MA history.
- Toggle to show a ghost trail when Highlight inclusion is toggled on. Displays a shaded version of past MA history before the inclusion period (as seen on snapshot).
- Toggle to show forecast values for the MA.
- Other inputs related to forecasting:
- Forecast bias. (Neutral forecasts MA if the current price remains the same.)
- Forecast period.
- Forecast magnitude.


*** DISCLAIMER: For educational and entertainment purposes only. Nothing in this content should be interpreted as financial advice or a recommendation to buy or sell any sort of security or investment including all types of crypto. DYOR, TYOB. ***

Phát hành các Ghi chú

Updated the moving average plots to only show inclusion highlights if you are using the "00 Current" resolution for the respective moving average.

Phát hành các Ghi chú

Added many new alert conditions based on moving average crosses and price crossing moving averages.

Phát hành các Ghi chú

Minor bugs resolved: Updated alert condition titles so they didn't use the same number in some instances.

Phát hành các Ghi chú

Updated the code to use else if instead of nested if statements.

Phát hành các Ghi chú

Added ALMA
Bình luận
PineCoders
BigBitsIO
@PineCoders, Thank you!
Mexi_kiwi
Hi, thanks for your script. Should the dots appear in the chart once it is added? and when the dots should appear in the chart? Cheers
BigBitsIO
@Mexi_kiwi, Yes, the dots are the forecasted values. They appear by default, but there is a setting to disable them. Also, selecting a custom resolution will also disable them to prevent issues on the x-axis.
Mexi_kiwi
@BigBitsIO, Can you let me know how to enable them? would the dots help to create bullish/bearish signals?
BigBitsIO
@Mexi_kiwi, Click on the settings icon next to the the indicator name on your chart. It should already be checked by default, but scroll down toward the bottom of the settings and make sure the setting "Show Forecasts" is checked/enabled.

The forecast by default assumes the price does not change, but you can apply a bullish or bias to it in the settings as well.
Mexi_kiwi
@BigBitsIO, thank you very for your replies, but the dots do not shows up, not sure why.
CaptainBrett
Wish there was a good way to do the forecasts without causing 5 Name and Last Value labels to show up per MA but so far it seems everyone does it this way. It causes a lot of label clutter! Would be great if it were possible to instead do a Plot "extends right" setting and just label each MA and see the values of the forecast as you hover over them.
cmcabral
Awesome stuff David. Big thanks to you.

Since you are a real clued up in the subject, do you think you could develop a tool or way to execute orders during the replay mode? You'd make a fortune on that tool. People are screaming for it but TradingView team do not seem to bother. If tradingview offered a simulation mode/tool this platform would reach near perfection.
blackcat1402
thanks for sharing so many moving average types. it is easy to compare them in a single script
Thêm nữa