OPEN-SOURCE SCRIPT

Grospector DCA V.3

已更新
This is system for DCA with strategy.

This has 5 zone Extreme high , high , normal , low , Extreme low. You can dynamic set min - max percent every zone.
Extreme zone is derivative short and long which It change Extreme zone to Normal zone all position will be closed.
Every Zone is splitted 10 channel. and this strategy calculate contribution.
and now can predict price in future.

Idea : Everything has average in its life. For bitcoin use 4 years for halving. I think it will be interesting price.

Default : I set MA is 365*4 days and average it again with 365 days.

Input :
  • len: This input represents the length of the moving average.
  • strongLen: This input represents the length of the moving average used to calculate the strong buy and strong sell zone.

  • shortMulti: This input represents the multiplier * moveing average used to calculate the short zone.
  • strongSellMulti: This input represents the multiplier used to calculate the strong sell signal.
  • sellMulti: This input represents the multiplier * moveing average used to calculate the sell zone.
  • strongBuyMulti: This input represents the multiplier used to calculate the strong sell signal.
  • longMulti: This input represents the multiplier * moveing average used to calculate the long zone.
    *Diff sellMulti and strongBuyMulti which is normal zone.

  • useDerivative: This input is a boolean flag that determines whether to use the derivative display zone. If set to true, the derivative display zone will be used, otherwise it will be hidden.
  • zoneSwitch: This input determines where to display the channel signals. A value of 1 will display the signals in all zones, a value of 2 will display the signals in the chart pane, a value of 3 will display the signals in the data window, and a value of 4 will hide the signals.
  • price: Defines the price source used for the indicator calculations. The user can select from various options, with the default being the closing price.
  • labelSwitch: Defines whether to display assistive text on the chart. The user can select a boolean value (true/false), with the default being true.
  • zoneSwitch: Defines which areas of the chart to display assistive zones. The user can select from four options: 1 = all, 2 = chart only, 3 = data only, 4 = none. The default value is 2.
  • predictFuturePrice: Defines whether to display predicted future prices on the chart. The user can select a boolean value (true/false), with the default being true.
  • DCA: Defines the dollar amount to use for dollar-cost averaging (DCA) trades. The user can input an integer value, with a default value of 5.
  • WaitingDCA: Defines the amount of time to wait before executing a DCA trade. The user can input a float value, with a default value of 0.
  • Invested: Defines the amount of money invested in the asset. The user can input an integer value, with a default value of 0.
  • strategySwitch: Defines whether to turn on the trading strategy. The user can select a boolean value (true/false), with the default being true.
  • seperateDayOfMonth: Defines a specific day of the month on which to execute trades. The user can input an integer value from 1-31, with the default being 28.
  • useReserve: Defines whether to use a reserve amount for trading. The user can select a boolean value (true/false), with the default being true.
  • useDerivative: Defines whether to use derivative data for the indicator calculations. The user can select a boolean value (true/false), with the default being true.
  • useHalving: Defines whether to use halving data for the indicator calculations. The user can select a boolean value (true/false), with the default being true.
  • extendHalfOfHalving: Defines the amount of time to extend the halving date. The user can input an integer value, with the default being 200.

  • Every Zone: It calculate percent from top to bottom which every zone will be splited 10 step.


To effectively make the DCA plan, I recommend adopting a comprehensive strategy that takes into consideration your mindset as the best indicator of the optimal approach. By leveraging your mindset, the task can be made more manageable and adaptable to any market

Dollar-cost averaging (DCA) is a suitable investment strategy for sound money and growth assets which It is Bitcoin, as it allows for consistent and disciplined investment over time, minimizing the impact of market volatility and potential risks associated with market timing
版本注释
Update define correctly property and multiple any zone.
版本注释
Update chart
版本注释
Update chart
版本注释
Update chart
版本注释
- Update Group Input
- Add range for backtest
版本注释
- Update prevent error from predict future price
Moving Averages

开源脚本

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

想在图表上使用此脚本?

免责声明