OPEN-SOURCE SCRIPT

Diversified Investment EMA Cross Strategy Simulator

已更新
This simulating indicator proves that even if you use a simple strategy, you can reduce your risk by diversifying your investments.

The strategy itself is simple.(only long)
Buy when 50 days EMA crosses over 200 days EMA.
Sell ​​when 50 days EMA crosses under 200 days EMA.
Or, stop loss when the asset falls by 2% (eg).

Using this simple strategy on an asset is just a test of your luck.


However, this capital change graph shows that risk can be reduced by diversifying investment into eight assets rather than one asset.



Options

Total Assets Capital Change represents the sum of capital changes for 8 assets. The gray line is the initial capital.

Each Asset Capital Change represents all eight asset capital changes. In this case, the gray line is displayed as the initial capital divided by 8.

The rest of the options show a graph of capital change for each asset, showing when buys and sells occurred.

And set the start date, initial capital, stop loss %, and commission.

And select the 8 assets you want to invest in and you are ready to go. To effectively reduce risk, uncoupled assets would be better if possible.


The table in the lower right shows the selected asset and color.


Please enjoy the simulation.
版本注释
first buy plotshape is added
diversificationdiversifiededucationalemacrossoverinvestmentMoving AveragesportfolioPortfolio management

开源脚本

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

想在图表上使用此脚本?

免责声明