sellAlertMsg = getAlertMsg(action = 'EXIT_LONG', instrument = syminfo.ticker, signalToken = signalToken, orderType = exitOrderType, orderPriceOffset = exitOrderPriceOffset, investmentType = exitInvestmentType, amount = exitAmount) alert(sellAlertMsg, freq = alert.freq_once_per_bar) getAlert...
# 存储数据到CSV文件data={'股票代码':['AAPL'],'当前股价':[price]}df=pd.DataFrame(data)df.to_csv('stock_data.csv',index=False)# 使用Matplotlib可视化数据importmatplotlib.pyplotasplt plt.bar(data['股票代码'],data['当前股价'])plt.ylabel('价格')plt.title('股票价格')plt.show() 1. 2. ...
"Exchange":1,"Currency":"BTC_USDT","ContractType":"swap","Price":"10000","Action":"buy","...
我试图使用trend_lineAPI在TradingView屏幕上绘制一个形状(使用createMultipointShape()图表方法的TradingView),该形状有两个任意的日期点。但是,当在未来的中绘制带有时间戳的形状时,TradingView将在当前日期切断该形状。例如,有了点数:{time: 1567330140, price: 11500} (2019-09-01)和{time: 1569835740, price...
https://www.fmz.com/api/v1?access_key=xxx&secret_key=yyyy&method=CommandRobot&args=[130350,+""] 这样请求就可以通过FMZ平台,发送请求中Body的内容作为交互消息给ID为的实盘了。如果TradingView上的消息设置为:,那么ID为的实盘就会收到交互指令: ...
npmitradingview-api-adapter Examples Quote [Class]: Obtaining quoted data in real time Fields minmov,minmove2,circulating_supply,popularityaverage_volume,total_supply,total_shares_outstanding,ask,bid,lp,low_price,open_price,high_price,prev_close_price,open_time,chp,ch,volume,total_shares_diluted,to...
price: chart.periods[0].close, }); await check(Symbol.for('PRICE')); }); console.log('Loading indicators...'); for (const indic of testedIndicators) { const privateIndic = await indic.get(); console.log(`[${indic.name}] Loading indicator...`); const indicator = new chart.Study...
前言 最近在做交易所项目里的K线图,得些经验,与大家分享。 代码居多,流量预警!!! 点赞 收藏 不迷路。 技术选型 echrats 基于canvas绘制,种类齐全的...
Keep track of all your beloved stocks and currency pairs with our highly-customizable watchlists. Use them to see real-time price updates and be the first to know what’s moving in the markets – wherever you happen to be. Data. Data. Data, ...
[num].size * _OneSizeInCurrentCoin * price / _MarginLevel; } // Log("账户", num, "持仓资产:", position_asset); return position_asset; } function getAccountAsset(num, price) { // 计算不同情况下的账户初始资产 var account_asset = 0; // var position_profit = 0; if (UseQuarter)...