// TradingViewWidget.jsx import React, { useEffect, useRef } from 'react'; let tvScriptLoadingPromise; export default function TradingViewWidget() { const onLoadScriptRef = useRef(); useEffect( () => { onLoadScriptRef.current = createWidget; if (!tvScriptLoadingPromise) { tvScriptLoadingPromise = new Promise((resolve) => { const script = document.createElement('script'); script.id = 'tradingview-widget-loading-script'; script.src = 'https://s3.tradingview.com/tv.js'; script.type = 'text/javascript'; script.onload = resolve; document.head.appendChild(script); }); } tvScriptLoadingPromise.then(() => onLoadScriptRef.current && onLoadScriptRef.current()); return () => onLoadScriptRef.current = null; function createWidget() { if (document.getElementById('tradingview_35e3c') && 'TradingView' in window) { new window.TradingView.widget({ autosize: true, symbol: "NASDAQ:AAPL", interval: "D", timezone: "Etc/UTC", theme: "dark", style: "1", locale: "en", enable_publishing: false, allow_symbol_change: true, container_id: "tradingview_35e3c" }); } } }, [] ); return (
Track all markets on TradingView
); } // TradingViewWidget.jsx import React, { useEffect, useRef } from 'react'; let tvScriptLoadingPromise; export default function TradingViewWidget() { const onLoadScriptRef = useRef(); useEffect( () => { onLoadScriptRef.current = createWidget; if (!tvScriptLoadingPromise) { tvScriptLoadingPromise = new Promise((resolve) => { const script = document.createElement('script'); script.id = 'tradingview-widget-loading-script'; script.src = 'https://s3.tradingview.com/tv.js'; script.type = 'text/javascript'; script.onload = resolve; document.head.appendChild(script); }); } tvScriptLoadingPromise.then(() => onLoadScriptRef.current && onLoadScriptRef.current()); return () => onLoadScriptRef.current = null; function createWidget() { if (document.getElementById('tradingview_35e3c') && 'TradingView' in window) { new window.TradingView.widget({ autosize: true, symbol: "NASDAQ:AAPL", interval: "D", timezone: "Etc/UTC", theme: "dark", style: "1", locale: "en", enable_publishing: false, allow_symbol_change: true, container_id: "tradingview_35e3c" }); } } }, [] ); return (
); }
top of page

Registrate con Nostoros

Santiago Silvermann y su equipo te dan la Bienvenida a SIMCAS

Consulte
Planes de 
Membresías

 Santiago Silvermann Co.
MBA  Fundador y CEO de SIMCAS
 

Bienvenidos

Consulte
Planes de 
Membresías

 
a SIMCAS

Una Empresa de servicios dedicada 100% a la Capacitación, Asesoramiento y Gestión del Capital desarrollado a la medida del Inversor según sus necesidades.

 - Cursos y Acompañamiento en FOREX

- TRADING ROOMS EN VIVO todos los días. Eventos de  FOREX.

- Seminarios Temáticos semanales.

 Santiago Silvermann Co.
MBA  Fundador y CEO de SIMCAS

 

bottom of page
// TradingViewWidget.jsx import React, { useEffect, useRef } from 'react'; let tvScriptLoadingPromise; export default function TradingViewWidget() { const onLoadScriptRef = useRef(); useEffect( () => { onLoadScriptRef.current = createWidget; if (!tvScriptLoadingPromise) { tvScriptLoadingPromise = new Promise((resolve) => { const script = document.createElement('script'); script.id = 'tradingview-widget-loading-script'; script.src = 'https://s3.tradingview.com/tv.js'; script.type = 'text/javascript'; script.onload = resolve; document.head.appendChild(script); }); } tvScriptLoadingPromise.then(() => onLoadScriptRef.current && onLoadScriptRef.current()); return () => onLoadScriptRef.current = null; function createWidget() { if (document.getElementById('tradingview_35e3c') && 'TradingView' in window) { new window.TradingView.widget({ autosize: true, symbol: "NASDAQ:AAPL", interval: "D", timezone: "Etc/UTC", theme: "dark", style: "1", locale: "en", enable_publishing: false, allow_symbol_change: true, container_id: "tradingview_35e3c" }); } } }, [] ); return (
); }