OPEN-SOURCE SCRIPT

Diversified Investment EMA Cross Strategy Simulator

Aggiornato
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.
Note di rilascio
first buy plotshape is added
diversificationdiversifiededucationalemacrossoverinvestmentMoving AveragesportfolioPortfolio management

Script open-source

In pieno spirito TradingView, l'autore di questo script lo ha pubblicato open-source, in modo che i trader possano comprenderlo e verificarlo. Un saluto all'autore! È possibile utilizzarlo gratuitamente, ma il riutilizzo di questo codice in una pubblicazione è regolato dal nostro Regolamento. Per aggiungerlo al grafico, mettilo tra i preferiti.

Vuoi usare questo script sui tuoi grafici?

Declinazione di responsabilità