OPEN-SOURCE SCRIPT

Diversified Investment EMA Cross Strategy Simulator

Aktualisiert
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.
Versionshinweise
first buy plotshape is added
diversificationdiversifiededucationalemacrossoverinvestmentMoving AveragesportfolioPortfolio management

Open-source Skript

Ganz im Sinne von TradingView hat dieser Autor sein/ihr Script als Open-Source veröffentlicht. Auf diese Weise können nun das Script auch andere Trader verstehen und prüfen. Vielen Dank an den Autor! Sie können das Script kostenlos verwenden. Die Nutzung dieses Codes in einer Veröffentlichung wird in unseren Hausregeln reguliert. Sie können es als Favoriten auswählen, um es in einem Chart zu verwenden.

Möchten Sie dieses Skript auf einem Chart verwenden?

Haftungsausschluss