币须会技术|多空比战法

CN
2 小時前

币须会技术系列会逐步更新,每期帮大家梳理最实用的战法,找准最优标的和进场点。 先回到今天的盘面,老规矩,先用咱们之前讲过的 MACD 零轴法过一遍当前行情,看看信号状态。

币须会技术|多空比战法_aicoin_图1

先看 4小时周期的大饼,目前刚刚开始上穿零轴,位置算比较漂亮。

对多头来说,信号支撑是到位的。 再叠加上斐波那契当支撑线看,这轮回调踩到 50% 位置就站稳了,算是比较健康的调整。目前这波上穿多头信号,是在 0.382 稍稍上方发出来的,算中等偏上的优质信号。所以单从指标来看,中期大饼还是偏多的概率更大。

币须会技术|多空比战法_aicoin_图2

再看 ETH,目前还没能完成上穿。

币须会技术|多空比战法_aicoin_图3

所以单从 MACD 零轴法的效果来看,现阶段 BTC 比 ETH 的交易性价比更高。这套指标用来识别趋势拐点,效果一直都很能打,历史回测收益很高。其他的就不展开了,咱们直奔今天的主题 ——多空比战法。

币须会技术|多空比战法_aicoin_图4

老玩家应该都有印象,前几年多空比可以说是必掌握的核心指标,真想在市场赚大钱的,基本都得吃透它。放到现在,它依然有效,是非常重要的情绪参考指标。 先给大家看我写好的整套策略,直接加载到 K 线上的效果,先看 ETH 上的表现。

币须会技术|多空比战法_aicoin_图5

三个信号都吃到了大行情,效果还是非常顶的。 顺便预告下,我们研究院下一个系列会做美股投资,从基本面、财报、资金面、技术分析角度每期拆解,全方位透视美股。想真正搭建投资体系的朋友,可以持续关注。

回到多空比策略,先看在 BTC 上的表现,同样优秀。

币须会技术|多空比战法_aicoin_图6

这套指标的底层逻辑是什么?咱们一步步说。

币须会技术|多空比战法_aicoin_图7

多空持仓人数比,本质是衡量市场参与者情绪分布的指标。 很多人不知道,合约市场的机制决定了:多头和空头的总仓位价值永远是对等的。所以真实的多空优势,从来不体现在仓位规模上,而是体现在参与者的数量对比上。

不用记太复杂,记住核心结论就行:主力永远是和散户做对手盘的,所以主力就藏在持仓人数少的那边。 比值怎么看也很简单:多头持仓人数 ÷ 空头持仓人数

  • 比值大于 1,说明做多的散户多,主力藏在空头那边
  • 比值小于 1,说明做空的散户多,主力藏在多头那边

多空比和行情通常是反向关联的:行情下跌的时候,多空比还在持续涨;行情往上走的时候,多空比反而往下掉。出现这种背离的时候,往往说明当前的行情方向还会延续。 根据我们的回测,重点盯两个关键数值就够了。 第一个门槛:1.6。当多空比升破 1.6,说明市场情绪一边倒看空,整体大概率承压下行,风险加大。 第二个门槛:1.08。当多空比跌破 1.08,说明主力做多资金在逐步回流,情绪转暖,整体上涨的概率增加。

当然数值不是钉死的,会随着时间和行情小幅波动。毕竟市场就是这样,不断有新人进来,不断有人离场,互相都觉得对方是反指😂。 给大家看最近一次,多空比超过 1.6 就是 10 月 8 日零点那次,后面的走势大家也都有印象。

币须会技术|多空比战法_aicoin_图8

下面就是完整的策略代码,想自己导入的可以直接用。

// @version=2
// 在这里创建您的自定义脚本
lspr = security('i:lsprbtc:okex', '5m', close)
var long_count = 0
var long_avg = 0
var long_max_profit = 0
var active_long_profit_monitor = false
var active_long_drawdown_order = false
var short_count = 0
var short_avg = 0
var short_max_profit = 0
var active_short_profit_monitor = false
var active_short_drawdown_order = false
var frozen_interval = 60 * 60
var finish_time = 0

// max_lspr = highest(lspr, 500);
// min_lspr = lowest(lspr, 500);
// lspr_ratio = (lspr - min_lspr)/(max_lspr - min_lspr)
lspr_ratio = lspr
lc = 1.6
sc = 1.08
take_profit = 0.05
stop_loss = 0.05

long = crossdown(lspr, lc) and long_count == 0 and time - finish_time > frozen_interval
short = crossup(lspr, sc) and short_count == 0 and time - finish_time > frozen_interval

long_take_profit_order = close/long_avg - 1 > take_profit and long_count == 1
long_stop_loss_order = close/long_avg - 1 < -1 * stop_loss and long_count == 1
short_take_profit_order = short_avg/close - 1 > take_profit and short_count == 1
short_stop_loss_order = short_avg/close - 1 < -1 * stop_loss and short_count == 1

exitLong(short, price='market', amount=1000)
exitShort(long, price='market', amount=1000)
enterLong(long, price='market', amount=1000)
enterShort(short, price='market', amount=1000)

alertcondition(long, title='做多', direction='buy');
alertcondition(short, title='做空', direction='sell');

plotText(long, title='long', text = '开多', refSeries = low, bgColor='green', color='white', fontSize=14, placement='bottom' ,display=true);
plotText(short, title='short', text = '开空', refSeries = high, bgColor='red', color='white', fontSize=14, placement='top' ,display=true);

exitLongPercent(long_take_profit_order or long_stop_loss_order, id = 'cond4',price='market', percent=100)
exitShortPercent(short_take_profit_order or short_stop_loss_order, id = 'cond8',price='market', percent=100)

plotText(long_take_profit_order, title='long_take_profit_order', text = '多止盈', refSeries = high, bgColor='red', color='white', fontSize=14, placement='top' ,display=true);
plotText(long_stop_loss_order, title='long_stop_loss_order', text = '多止损', refSeries = high, bgColor='red', color='white', fontSize=14, placement='top' ,display=true);
plotText(short_take_profit_order, title='short_take_profit_order', text = '空止盈', refSeries = low, bgColor='green', color='white', fontSize=14, placement='bottom' ,display=true);
plotText(short_stop_loss_order, title='short_stop_loss_order', text = '空止损', refSeries = low, bgColor='green', color='white', fontSize=14, placement='bottom' ,display=true);

long_signal = long // true or false 做多信号
short_signal = short // true or false 做空信号

active_trail = 0.03 // 上涨3%开启移动止盈
drawdown = 0.5 // 最高点回撤50%平仓

if (long_signal and long_count == 0) {
long_count := 1
long_avg := close
active_long_profit_monitor := false
}

if (short_signal and short_count == 0) {
short_count := 1
short_avg := close
active_short_profit_monitor := false
}

if (short_signal or long_stop_loss_order or long_take_profit_order or active_long_drawdown_order) {
long_count := 0
finish_time := time
}

if (long_signal or short_stop_loss_order or short_take_profit_order or active_short_drawdown_order) {
short_count := 0
finish_time := time
}

if (long_count > 0) {
profit = (close - long_avg) / long_avg
if (profit > long_max_profit) {
long_max_profit := profit
}
if (profit > active_trail and long_max_profit > active_trail) {
active_long_profit_monitor := true
}
if (active_long_profit_monitor) {
back = profit/long_max_profit
if (back < drawdown) {
active_long_drawdown_order := true
}
}
} else {
active_long_drawdown_order := false
active_long_profit_monitor := false
long_max_profit := -99999999
long_avg := 0
}

if (short_count > 0) {
profit = (short_avg/close) - 1
if (profit > short_max_profit) {
short_max_profit := profit
}
if (profit > active_trail and short_max_profit > active_trail) {
active_short_profit_monitor := true
}
if (active_short_profit_monitor) {
back = profit/short_max_profit
if (back < drawdown) {
active_short_drawdown_order := true
}
}
} else {
active_short_drawdown_order := false
active_short_profit_monitor := false
short_max_profit := -99999999
short_avg := 0
}

exitLongPercent(active_long_drawdown_order, id = '多止盈',price='market', percent=100)
exitShortPercent(active_short_drawdown_order, id = '空止盈',price='market', percent=100)

plotText(active_long_drawdown_order, title='移动止盈多单', text = '移动止盈多单', refSeries = high, bgColor='red', color='white', fontSize=14, placement='top' ,display=true);
plotText(active_short_drawdown_order, title='移动止盈空单', text = '移动止盈空单', refSeries = low, bgColor='green', color='white', fontSize=14, placement='bottom' ,display=true);

不想折腾自定义指标的朋友,就记住我给的两个门槛值就行,加到自选指标里盯着看: 

👉 多空比超过 1.6,逐步看空; 

👉 多空比跌破 1.08,逐步看多。 

就这两个数,就能帮你把大方向看明白,避免追在最高点、卖在最低点。 很多人做投资总拍大腿,就是因为明明方向看对了,没忍住乱操作,最后功亏一篑。

币须会技术|多空比战法_aicoin_图9

币须会技术|多空比战法_aicoin_图10

目前每天都有直播,欢迎持续追踪AiCoin小伙伴们!抢先预约👇

https://www.aicoin.com/zh-Hans/live/list?tab=upcoming

加入我们的社区,一起来讨论,一起变得更强吧!

官方电报(Telegram)社群:https://t.me/aicoin_support

AiCoin中文推特:https://x.com/AiCoinzh

Aster返佣:https://www.asterdex.com/zh-CN/referral/9C50e2

Hype返佣:https://app.hyperliquid.xyz/join/AICOIN88

Binance返佣:https://jump.do/zh-Hans/xlink-proxy?id=3 邀请码:aicoin668 

Coinbase返佣:https://jump.do/xlink?checkProxy=true&proxyId=25  邀请码:Y8L23JL 

免责声明:本文章仅代表作者个人观点,不代表本平台的立场和观点。本文章仅供信息分享,不构成对任何人的任何投资建议。用户与作者之间的任何争议,与本平台无关。如网页中刊载的文章或图片涉及侵权,请提供相关的权利证明和身份证明发送邮件到support@aicoin.com,本平台相关工作人员将会进行核查。

分享至:
APP下載

X

Telegram

Facebook

Reddit

複製鏈接