B.F.M. UNITY
antbot-doc
antbot-doc
  • 保护性存储与发掘指南
  • en
    • Link
    • ABOUT US
      • What is AntBot?
      • User Agreement
    • Beginner
      • How to Create Bitget API Key?
      • How to Create Gate.io API Key?
      • How to Create Kucoin API Key?
      • Insufficient API Key Trading Permissions: How to Modify API Key Trading Permissions?
      • How Do I Fill in an IP Address in Binance?
      • Can Automated Trading Bots Really Make Money?
      • How are AntBot’s Initial Positions Calculated?
      • Can API-Keys of Two Exchanges Be Imported Under One Account?
      • Binance Trading Fees
      • Binance Fee Calculator: How To Calculate Binance Fee
      • Can One Crypto Run Multiple Bots at the Same Time?
      • Which Robot Should a Novice Choose to Start and Which Crypto to Choose?
      • Why Is the Profit of AI Grid Different From the Profit of the Exchange?
      • Why AntBot Doesn’t Get My Assets on the Exchange?
      • Will AntBot Sell the Funds I Bought Manually on the Exchange?
      • What Should I Do About the Position Limit of the Exchange Account?
      • Why Is the Position not Added After the Price Has Reached the Position Increase Price?
      • Can Energy Be Exchanged for USDT?
      • How Many Funds Do I Need to Start a Bot?
      • How Many Funds Do I Need to Start a Bot?
      • How to Reduce Fee on Exchange?
      • Frequently Asked Questions and Answers
      • How to Change the Margin Mode of Binance to Cross Margin Mode?
      • How to Change Okx’s Margin Mode to Cross Margin Mode?
      • Why is My Position Liquidated Even Though My Margin is Sufficient?
      • How to Change Binance’s Position Mode to Hedge Mode?
      • How to Change the Okx’s Position Type to Long/Short Mode?
      • How to Change Bybit’s Position Mode to Hedge Mode?
      • The Bots are Still Stopped When You Have Purchased Energy?
      • What Should I Do If the API Key is Deleted in Binance?& What Should I Do If the API Key Expires?
      • How to Change the Okx Account Mode to the Single-currency Margin Mode?
      • Crypto Fear & Greed Index
      • How to Get Started
      • Frequently Asked Questions
      • What is AntBot Referral Program?
      • How to Start a Bot on the AntBot for Beginners?
    • Function
      • How to Create Kucoin API Key?
      • Crypto Fear & Greed Index
      • Binance: How to Transfer Funds to a Futures Wallet?
      • How to Create Binance API Key?
      • How to Create OKX API Key?
      • How to Create Bybit API Key?
      • How to Create Huobi API Key?
      • How to Buy the Energy on the AntBot?
      • How to Start a Bot on the AntBot for Beginners?
      • How to Deposit the USDT on the AntBot
      • AntBot Bonus Distribution Pattern Table
      • YouTube Video Creators Wanted (Influencer Program)
    • Indicators
      • What is a Golden Cross and a Death Cross?
      • What is the Golden Cross?
      • Instantly Improve Your Trading Strategy with Support and Resistance
      • The Ultimate Moving Average Trading Guide
      • Detailed Explanation of Support and Resistance
      • What is SMA(Simple Moving Average) Indicator?
      • What is BBW(Bollinger Bands Width) Indicator?
      • What is RSI(Relative Strength Index) Indicator?
      • What is KDJ Indicator?
      • What is MACD(Moving Average Convergence/Divergence) Indicator?
    • Learning
      • What is a Golden Cross and a Death Cross?
      • What is the Golden Cross?
      • Instantly Improve Your Trading Strategy with Support and Resistance
      • The Ultimate Moving Average Trading Guide
      • 10 Price Action Candlestick Patterns You Must Know
      • Detailed Explanation of Support and Resistance
      • Can Automated Trading Bots Really Make Money?
      • How are AntBot’s Initial Positions Calculated?
      • Can API-Keys of Two Exchanges Be Imported Under One Account?
      • Binance Trading Fees
      • Binance Fee Calculator: How To Calculate Binance Fees?
      • Can One Crypto Run Multiple Bots at the Same Time?
      • Which Robot Should a Novice Choose to Start and Which Crypto to Choose?
      • Why Is the Profit of AI Grid Different From the Profit of the Exchange?
      • Why AntBot Doesn’t Get My Assets on the Exchange?
      • Will AntBot Sell the Funds I Bought Manually on the Exchange?
      • What Should I Do About the Position Limit of the Exchange Account?
      • Why Is the Position not Added After the Price Has Reached the Position Increase Price?
      • Can Energy Be Exchanged for USDT?
      • How Many Funds Do I Need to Start a Bot?
      • How to Reduce Fee on Exchange?
      • Frequently Asked Questions and Answers
      • How to Change the Margin Mode of Binance to Cross Margin Mode?
      • How to Change Okx’s Margin Mode to Cross Margin Mode?
      • Why is My Position Liquidated Even Though My Margin is Sufficient?
      • How to Change Binance’s Position Mode to Hedge Mode?
      • How to Change the Okx’s Position Type to Long/Short Mode?
      • How to Change Bybit’s Position Mode to Hedge Mode?
      • The Bots are Still Stopped When You Have Purchased Energy?
      • What Should I Do If the API Key is Deleted in Binance?& What Should I Do If the API Key Expires?
      • How to Change the Okx Account Mode to the Single-currency Margin Mode?
      • Why Measure Fear and Greed?
      • Frequently Asked Questions
      • What is AntBot Referral Program
      • What is the Trailing Take-Profit
      • What is the Trailing Covering?
      • Explain the Parameters of DCA Bot in Detail
    • Patterns
      • What is a Golden Cross and a Death Cross?
      • What is the Golden Cross?
      • 10 Price Action Candlestick Patterns You Must Know
      • What is Bearish Engulfing Patterns?
      • What is Bullish Engulfing Patterns?
      • What is Three Black Crows Patterns?
      • What is Three White Soldiers Patterns?
      • What is Long Lower Shadow Patterns?
      • What is Long Upper Shadow Patterns?
    • Questions
      • Can Automated Trading Bots Really Make Money?
      • How are AntBot’s Initial Positions Calculated?
      • Can API-Keys of Two Exchanges Be Imported Under One Account?
      • Binance Trading Fees
      • Binance Fee Calculator: How To Calculate Binance Fees?
      • Can One Crypto Run Multiple Bots at the Same Time?
      • Which Robot Should a Novice Choose to Start and Which Crypto to Choose?
      • Why Is the Profit of AI Grid Different From the Profit of the Exchange?
      • Why AntBot Doesn’t Get My Assets on the Exchange?
      • Will AntBot Sell the Funds I Bought Manually on the Exchange
      • What Should I Do About the Position Limit of the Exchange Account?
      • Why Is the Position not Added After the Price Has Reached the Position Increase Price?
      • Can Energy Be Exchanged for USDT?
      • How Many Funds Do I Need to Start a Bot?
      • How to Reduce Fee on Exchange?
      • Frequently Asked Questions and Answers
      • How to Change the Margin Mode of Binance to Cross Margin Mode?
      • How to Change Okx’s Margin Mode to Cross Margin Mode?
      • Why is My Position Liquidated Even Though My Margin is Sufficient?
      • How to Change Binance’s Position Mode to Hedge Mode?
      • How to Change the Okx’s Position Type to Long/Short Mode?
      • How to Change Bybit’s Position Mode to Hedge Mode?
      • The Bots are Still Stopped When You Have Purchased Energy?
      • What Should I Do If the API Key is Deleted in Binance?& What Should I Do If the API Key Expires?
      • How to Change the Okx Account Mode to the Single-currency Margin Mode?
      • Frequently Asked Questions
      • Why did the Robot Stop?
      • Why the Robot Paused?
      • Running Status Info for the Bots
      • How is this app charge?
      • What is the Difference Between an AI and a Non-AI?
      • What is AntBot Referral Program?
    • Strategy
      • What Is the Infinity Grid Trading Strategy?
      • What is the Formation Trading Strategy?
      • What is the Regular Investment Strategy?
      • What Is the Momentum Trading Strategy?
      • What Is the D-KAMA Trading Strategy?
      • What Is the R-Breaker Trading Strategy?
      • What Is the SuperTrend Trading Strategy?
      • What Is the Relative-value Trading Strategy?
      • What Is the Classic Grid Trading Strategy?
      • What Is the DCA Trading Strategy?
      • What Is the AI Grid Trading Strategy?
      • What Is the AI Beta Trading Strategy?
      • What Is the Rebalancing Trading Strategy?
      • What Is the AI Dual Grid Trading Strategy?
  • zh-cn
    • 引用链接
    • 关于我们
      • 关于我们
      • 联系我们
      • 用户协议
    • 功能说明
      • 恐惧与贪婪指数 Fear & Greed Index
      • 诚挚招募YouTube视频创作者
      • AntBot红利分配模式表
      • 如何充值USDT?
      • 新手如何启动AntBot机器人?
      • 如何购买能量?
    • 常见问题
      • 如何绑定Bitget API?
      • 如何绑定MEXC API?
      • 如何绑定Gate.io API?
      • 如何重新进行快速授权?
      • 同个币种可以同时运行多个机器人吗?
      • 在一个账户下可以导入两个交易所的API Key吗?
      • 智能网格的盈利和交易所的盈利怎么不一样?
      • 因能量不足机器人暂停了,但充值能量后机器人为何还是处于暂停状态?
      • 系统会不会卖掉我在交易所手动购买的币?
      • 什么是双向持仓模式?
      • 交易所账户持仓限额,怎么办?
      • 为什么价格已经到达加仓价格而系统没有进行加仓?
      • 能量可以兑换成USDT吗?
      • API密钥交易权限不足:如何修改API密钥交易权限?
      • 如何在币安中填写IP地址?
      • 如何绑定Kucoin API?
      • 量化交易机器人真能赚到钱吗?
      • 小蚁的首单资金是如何计算的?
      • 新手应该选择启动哪个机器人,选择哪些币种?
      • 如何减少手币安交易手续费?
    • 快速学习
      • 启动机器人需要多少资金?
      • 如何减少手币安交易手续费?
      • 常见问题和解答
      • 如何绑定欧易API?
      • 如何绑定币安API?
      • 如何绑定Bybit API?
      • 如何绑定火币 API?
      • 軟件內彈窗提示說明
      • 使用合約機器人需要注意哪些事項?
      • 多少資金可以啟動多少個機器人?
      • 如何做資金規劃和倉位管理?
      • 机器人暂停原因
      • AntBot的常见问题
      • 歷史機器人停止原因
      • 進行中的機器人狀態歸類
      • 新手如何绑定API并启动机器人
    • 技术形态
      • 什么叫阴包阳形态?
      • 什么叫阳包阴形态?
      • 什么叫三只乌鸦形态?
      • 什么叫红三兵形态?
      • 什么叫锤子线形态?
      • 什么叫倒锤子线形态?
    • 技术指标
      • 支撑和阻力原理详解
      • 什么叫阴包阳形态?
      • 什么叫阳包阴形态?
      • 什么叫三只乌鸦形态?
      • 什么叫红三兵形态?
      • 什么叫锤子线形态?
      • 什么叫倒锤子线形态?
      • 什么是BBW(Bollinger Bands Width)指标?
      • 什么是RSI(Relative Strength Index)指标?
      • 什么是SMA(Simple Moving Average)指标?
      • 什么是KDJ指标?
      • 什么是MACD指标?
    • 策略学习
      • 什么是无限网格交易策略?
      • 什么是定投策略?
      • 什么是阵型交易策略?
      • 什么是动量交易策略?
      • 什么是双均线交易策略?
      • 什么是R-Breaker交易策略?
      • 什么是超级趋势交易策略?
      • 什么是相对价值交易策略?
      • 什么是双向网格交易策略?
      • 什么是智能调仓策略?
      • 什么是经典网格交易策略?
      • 什么是智能网格交易策略?
      • 什么是智能马丁交易策略?
      • 什么是贝塔策略?
    • 进阶学习
      • 支撑和阻力原理详解
      • 如何减少手币安交易手续费?
      • 常见问题和解答
      • 什么叫阳包阴形态?
      • 什么叫三只乌鸦形态?
      • 什么叫红三兵形态?
      • 什么叫锤子线形态?
      • 什么叫倒锤子线形态?
      • 什么是BBW(Bollinger Bands Width)指标?
      • 什么是RSI(Relative Strength Index)指标?
      • 什么是SMA(Simple Moving Average)指标?
      • 什么是KDJ指标?
      • 什么是MACD指标?
      • 马丁格尔策略参数详解
      • 小蟻會不會賣掉我在交易所手動購買的幣?
      • 為什麼價格已經到達補倉價格後系統沒有進行補倉?
      • 機器人的浮盈比例和回報率如何理解?
      • 最安全且高利潤率的投資組合是什麼?
      • 如何對幣安賬戶進行持倉限制調整?
      • 如何理解機器人的暫停功能?
  • GNU GPL Version 3
    • GNU GPL Version 3
Powered by GitBook
On this page
  1. zh-cn
  2. 策略学习

什么是双均线交易策略?

Previous什么是动量交易策略?Next什么是R-Breaker交易策略?

Last updated 1 year ago

Search for:

策略学习

什么是双均线交易策略?

目录:

双均线策略原理

双均线是深度改进后的双均线交易策略。

均线最早由美国投资专家Joseph E.Granville(格兰威尔)于20世纪中期提出,现在仍然广泛为人们使用,成为判断买卖信号的一大重要指标。从统计角度来说,均线就是历史价格的平均值,可以代表过去N日价格的平均走势。

1962年7月,Joseph E.Granville在他的书中提出了著名的Granville八大买卖法则。只利用价格和均线即可进行择时,方法简单有效,一经提出,迅速受到市场追捧。尤其是其中的金叉和死叉信号,更是沿用至今。

Granville 八大法则其中有四条是用于判断买进时机,另外四条是用于判断卖出时机。买进和卖出法则一一对应,分布在高点的左右两侧(除买4和卖4以外)。法则内容如下所示:

买1:均线整体上行,价格由下至上上穿均线,此为黄金交叉,形成第一个买点。 买2:价格出现下跌迹象,但尚未跌破均线,此时均线变成支撑线,形成第二个买点。 买3:价格仍处于均线上方,但呈现急剧下跌趋势。当跌破均线时,出现第三个买点。 买4:(右侧)价格和均线都处于下降通道,且价格处于均线下方,严重远离均线,出现第四个买点。

卖1:均线由上升状态变为缓慢下降的状态,价格也开始下降。当价格跌破均线时,此为死亡交叉,形成第一个卖点。 卖2:价格仍处于均线之下,但价格开始呈现上涨趋势,当价格无限接近均线但尚未突破时,此时均线变成阻力线,形成第二个卖点。 卖3:价格终于突破均线,处于均线上方。但持续时间不长,价格开始下跌,直至再一次跌破均线,此为第三个卖点。 卖4:(左侧)价格和均线都在上涨,价格上涨的速度远快于均线上涨的速度。当价格严重偏离均线时,出现第四个卖点。

均线策略为什么有效?

Shiller(1981)在研究中发现,资产的长期价格呈现均值回复的特征,即从长期来看,资产的价格会回归均值。这也是均线理论被广泛应用的前提。

均线策略的缺陷

均线归根到底是一种平均值,平均值在应用过程中存在最大的问题就是其滞后性。当出现买入卖出信号时,最佳时机早已过去。举例来说,如果A股票最新价格出现了较大的涨幅,股价和均线都上涨,但均线的速度慢于股价上涨速度。此时,从形态上来看,金叉出现,为买入信号。次日,股价回调,股价下降的速度快于均线下降的速度,形成死叉,为卖点。这样一买一卖不仅没有盈利,反而出现亏损。

另外,价格变化的速度本身就在变化,传统简单均线受困于固定周期参数,这使得不论市场的走势如何,短期均线灵敏度高,更贴近价格走势,但在市场震荡时期反复转向时,会造成频繁发出错误开平仓信号;长期均线在趋势判断上更加可靠,但在市场加速上涨或下跌时反应迟钝,会造成错过最佳的买卖点。

KAMA-卡夫曼自适应移动均线对双均线策略的改进

在《精明交易者》中,作者卡夫曼(Kaufman)提出了“自适应移动平均线”,简称AMA。该均线考虑到了市场价格变化速率,在普通均线的基础上增加了平滑系数,并自适应动态调整均线的灵敏度,可以在慢速趋势和快速趋势之间自我调整。

当市场出现盘整、趋势不明显时期,AMA倾向于慢速移动平均线。

当市场波动较大,趋势明显,价格沿一个方向快速移动时,AMA倾向于快速移动平均线。

双均线趋势策略逻辑

  • 计算30分钟周期KAMA(120,250)卡夫曼自适算法均线

  • 120均线上穿250均线开多(平空),120均线下穿250均线开空(平多)

  • 动态的止损策略,监控入场价格突破3倍平滑ATR支撑实时止损

如何启动双均线策略机器人?

1. 登录AntBot账号,在【交易】界面的【机器人】里找到【双均线】。

2. 点击右侧按钮,进入参数设置页面。

3. 根据个人标准和偏好选择币种。

4. 设置【首张单数】【杠杆率 】【最大单数】【运行方式】【开单方向】【止盈比例】与 【止损比例】。

  • 【首张单数】机器人从未持仓状态下首次开仓时的持仓量。建议初学者保持默认值。

  • 【杠杆率】:加杠杆可以当做向交易所借入资金去持仓,这份持仓资金相对于本金的倍数即为杠杆率,加杠杆会放大盈亏。建议初学者保持5倍杠杆率的默认值。

  • 【最大单数】:机器人从没有持仓开始允许连续加仓的最大次数。

  • 【运行方式】:分为循环运行和单次运行。循环运行是指每次止盈平仓后机器人会重复下一轮开仓,机器人只会在达到止盈比例或止损比例后才会停止。单次运行是指机器人在完成一次全仓止盈后将自动终止运行。

  • 【自动】:机器人会根据策略信号自动变更多空头寸开单。

  • 【只多】:机器人只接收多头信号开单。

  • 【只空】:机器人只接收空头信号开单。

  • 【止盈比例】

1、默认【系统追踪】值,机器人每间隔30分钟计算策略信号。当信号反转时将会平仓止盈,机器人进入下一循环。 2、如有预设比例值,机器人持仓收益率达到此预设值将会平仓止盈,机器人进入下一循环。

  • 【止损比例】

1、默认【系统追踪】值,机器人在建仓时会根据30分钟周期的价格真实波动预埋止损比例,当持仓亏损率达到此预设值将会平仓止损,机器人进入下一循环。 2、如有预设比例值,机器人持仓亏损率达到此预设值将会平仓止损,机器人进入下一循环。

5. 点击【启动】即可成功创建双均线机器人。

TradingView展示的可视化的双均线策略

双均线策略回测结果与稳健性分析

周期 – 30分钟线 入场金额$1000,每次进场交易金额为100%cash 交易时间:2022/1/1~2022/10/31 标的:ETHUSDTPER 手续费:0.04%

参考文档:

4月 ago1 minute

\

\

\

\

\

\

@AntBot free trading bot\

Skip to content
AntBot | Crypto Trading Bot
首页
免费使用AntBot
Home
策略学习
什么是双均线交易策略?
什么是无限网格交易策略?
什么是定投策略?
什么是阵型交易策略?
什么是动量交易策略?
什么是双均线交易策略?
什么是R-Breaker交易策略?
什么是超级趋势交易策略?
什么是相对价值交易策略?
什么是双向网格交易策略?
什么是智能调仓策略?
什么是经典网格交易策略?
什么是智能网格交易策略?
什么是智能马丁交易策略?
什么是贝塔策略?
AntBot
双均线策略原理
均线策略为什么有效?
均线策略的缺陷
卡夫曼自适应移动均线对双均线策略的改进
双均线趋势策略逻辑
如何启动双均线策略机器人?
TradingView展示的可视化的双均线策略
双均线策略回测结果与稳健性分析
https://www.mianshigee.com/note/detail/5040rdw/
https://www.freesion.com/article/72541078443/
http://www.360doc.com/content/19/1105/21/32762466_871317844.shtml
#AntBot
#bot
#D-KAMA
#strategy
#trading
#trend-following