OPEN-SOURCE SCRIPT

Fifty Percent Rule Final


body {
margin: 0;
background-color: #1D256BF7; /* Navy blue background */
}
.tradingview-widget-container {
width: 100%;
height: 100vh; /* Full height of the viewport */
}
#tradingview_chart {
width: 100%;
height: 100%; /* Fill the container */
}
</style>
</head>
<body>
<div class="tradingview-widget-container">
<div id="tradingview_chart"></div>
<script type="text/javascript" src="s3.tradingview.com/tv.js"></script>
<script type="text/javascript">
new TradingView.widget({
"width": "100%",
"height": "100%",
"symbol": "AMEX:SPY", /* Set ticker to SPY */
"interval": "D", /* Daily interval */
"timezone": "Etc/UTC",
"theme": "dark",
"style": "1",
"locale": "en",
"toolbar_bg": "#1D256BF7
educational

Open-source script

In true TradingView spirit, the author of this script has published it open-source, so traders can understand and verify it. Cheers to the author! You may use it for free, but reuse of this code in publication is governed by House rules. You can favorite it to use it on a chart.

Want to use this script on a chart?

Disclaimer