添加tradingview advanced chart lib和实现chan_tv网页

This commit is contained in:
jackyu66git
2026-05-14 14:16:06 +08:00
parent ca2cf86138
commit 050ebeb849
1942 changed files with 43262 additions and 3 deletions
+12 -2
View File
@@ -1,4 +1,4 @@
from flask import Flask, render_template, jsonify, request
from flask import Flask, render_template, jsonify, request, send_from_directory
from collections import OrderedDict
import json
import logging
@@ -35,7 +35,7 @@ class TRADE_POINT_TYPE:
SELL3 = -3 # 三类卖点
app = Flask(__name__)
macd_factor = 2
macd_factor = 1
smooth_factor = 1
macd_fast_period = 12 * macd_factor
macd_slow_period = 26 * macd_factor
@@ -1211,6 +1211,16 @@ def trend_detail():
}
})
@app.route('/chan_tv')
def chan_tv():
"""缠论 TradingView 高级图表页面"""
return render_template('chan_tv.html')
@app.route('/charting_library/<path:filename>')
def serve_charting_library(filename):
"""提供 TradingView Charting Library 静态文件"""
return send_from_directory('charting_library', filename)
@app.route('/')
def index():
"""主页"""