sbd-npm 1.2.55 → 1.2.56
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/stock_basics.js +3 -0
- package/util.js +7 -4
package/package.json
CHANGED
package/stock_basics.js
CHANGED
@@ -201,6 +201,9 @@ let Stock = {
|
|
201
201
|
if (item["is_down_macd"] === 1) {
|
202
202
|
remark_html.push("<b class='text-success'>MACD 下行</b>");
|
203
203
|
}
|
204
|
+
if (item["is_bull_trend"] === 1) {
|
205
|
+
remark_html.push("<b class='text-success'>多头趋势</b>");
|
206
|
+
}
|
204
207
|
if (item["xsg_date"] > 0) {
|
205
208
|
let xsg_date = Util.seconds_to_format(item["xsg_date"], "%Y-%m-%d");
|
206
209
|
remark_html.push("<b class='text-success'>最近解禁<a href='" + Util.get_url("holder_restricted") + "?tab=xsg_list&date=" + xsg_date + "'>" + xsg_date + "</a></b>");
|
package/util.js
CHANGED
@@ -2188,12 +2188,15 @@ const Util = {
|
|
2188
2188
|
}
|
2189
2189
|
if ($("#remark_" + code).length) {
|
2190
2190
|
let remark = "";
|
2191
|
-
if (
|
2192
|
-
remark += "<b>低于 " + item["ma_trend"] + " 日均线</b><br />";
|
2193
|
-
}
|
2194
|
-
if (parseInt(item["is_down_macd"]) > 0) {
|
2191
|
+
if (item["is_down_macd"] && item["is_down_macd"] > 0) {
|
2195
2192
|
remark += "<b>MACD 下行</b><br />";
|
2196
2193
|
}
|
2194
|
+
if (item["is_bull_trend"] && item["is_bull_trend"] > 0) {
|
2195
|
+
remark += "<b>多头趋势</b><br />";
|
2196
|
+
}
|
2197
|
+
if (item["kdj_trend"] && item["kdj_trend"] > 0) {
|
2198
|
+
remark += "<b>" + (item["kdj_trend"] === 2 ? "周" : "") + "KDJ金叉</b><br />";
|
2199
|
+
}
|
2197
2200
|
$("#remark_" + code).html(remark);
|
2198
2201
|
}
|
2199
2202
|
});
|