龙听期货论坛's Archiver

C
+
+


 微信: QQ:

龙听 发表于 2024-5-3 16:59

检验 VWAP 方法:MIDAS Touch(The MIDAS Touch)【原文+程式码】

**** Hidden Message *****

龙听 发表于 2024-5-3 17:00

tradestation:迈达斯指标

在本期的文章中("检验VWAP方法:Midas Touch,第一部分"),Andrew Coles借鉴了Paul Levine和George Reyna之前的市场分析工作。他提出了建立一套价格支撑和阻力曲线的某些计算方法。我们已经开发了EasyLanguage代码,允许将Coles描述的计算值绘制在价格图表上(图1)。
[img]http://p.algo2.net/2023/0510/7fedbc327c47d.gif[/img]
图1:Tradeestation,midas指标。在这个TradeStation图表样本中,MIDAS指标被应用于SPY的小时图。该指标已被应用于该图表六次,使用不同的起始日期作为输入。这里显示的指标起始日期是10/11/2007、10/31/2007、12/11/2007、1/23/2008、3/17/2008和4/15/2008。

要下载本研究的EasyLanguage代码,请到TradeStation和EasyLanguage支持论坛([url=https://www.tradestation.com/Discussions/forum.aspx?]https://www.tradestation.com/Discussions/forum.aspx?[/url] Forum_ID=213)。搜索文件 "ColesMidas.ELD"。

这篇文章是为了提供信息。TradeStation证券或其附属机构没有提出、给予或以任何方式提供任何类型的交易或投资建议、意见或策略。

Indicator:  Midas[code]
inputs:
    StartTime( 930 ),
    StartMonth( 1 ),
    StartDay( 1 ),
    StartYear( 2008 ) ;
variables:
    StartCalcDate( 0 ),
    VolumeValue( 0 ),
    MedPrice( 0 ),
    PV( 0 ),
    CumulativeVolume( 0 ),
    CumulativePV( 0 ),
    Started( false ),
    Denom( 0 ),
    KeyCumVol( 0 ),
    KeyCumPV( 0 ),
    MidasValue( 0 ) ;
if CurrentBar = 1 then
    StartCalcDate = ELDate( StartMonth, StartDay,
     StartYear ) ;
{ Midas Calculation }
if Date >= StartCalcDate and Time >= StartTime then
    begin
    VolumeValue = iff( BarType <= 1, Ticks, Volume ) ;
    MedPrice = MedianPrice ;
    PV = MedPrice * VolumeValue ;
    CumulativeVolume = VolumeValue + CumulativeVolume ;
    CumulativePV = PV + CumulativePV ;
    end ;
if Started = false and ( ( Date >= StartCalcDate and
Time >= StartTime ) and ( ( Time[1] < StartTime or
Date[1] < StartCalcDate ) or Date[1] >
StartCalcDate ) ) then
    begin
    Started = true ;
    Denom = 1 ;
    KeyCumVol = CumulativeVolume ;
    KeyCumPV = CumulativePV ;
    end
else if Denom >= 1 then
    Denom = CumulativeVolume - KeyCumVol ;
if Started then
    begin
    if Denom > 1 then
        MidasValue = ( CumulativePV - KeyCumPV ) /
         Denom
    else if Denom = 1 then
        MidasValue = MedPrice ;
    Plot1( MidasValue, "Midas" ) ;
    end ;
[/code][p=30, 2, right]--Mark Mills
TradeStation Securities, Inc.
[url=http://www.TradeStation.com]www.TradeStation.com[/url][/p]

龙听 发表于 2024-5-3 18:01

**** Hidden Message *****

页: [1]
渠道·推广(20年运营值得信赖!)▼:温馨提示:期货论坛稳定、流畅的访问体验有赖于赞助商的广告支持,赞助商业务内容非本站官方业务,期货、证券及外汇投资均有亏损的风险,访问赞助商广告即代表您已了解其中的风险。欢迎意向赞助商联系客服或管理员咨询相关事宜。
                     
❤️2025年通过期货论坛开户享受如下优惠政策:政策一:手续费最低交易所+1分起,政策二:日内炒单及大资金享更高比率返还,政策三:保证金可申请交易所标准+0,政策四:开户即享有论坛Prime会员资格(价值199元/年),开户咨询管理员或右侧客服! 😋欧美期货杂志购买、下载与中文翻译:/thread-10603-1-1.html |TB/MC开户优惠政策:/thread-5986-1-1.html2025年最新交易所手续费表:/thread-7537-1-1.htmlSC2.png2025年最新中文翻译:/thread-160355-1-1.html;
欧美期货程序化期刊中文翻译目录: 【1982/83.01-12期】 【1984.01-12期】 【1985.01-12期】 【1986.01-12期】 【1987.01-12期】 【1988.01-12期】 【1989.01-12期】 【1990.01-12期】 【1991.01-12期】 【1992.01-12期】 【1993.01-12期】 【1994.01-12期】 【1995.01-12期】 【1996.01-12期】 【1997.01-12期】 【1998.01-12期】 【1999.01-12期】 【2000.01-12期】 【2001.01-12期】 【2002.01-12期】 【2003.01-12期】 【2004.01-12期】 【2005.01-12期】 【2006.01-12期】 【2007.01-12期】 【2008.01-12期】 【2009.01-12期】 【2010.01-12期】 【2011.01-12期】 【2012.01-12期】 【2013.01-12期】 【2014.01-12期】正在更新中...... 【2015.01-12期】待补 【2016.01-12期】待补 【2017.01-12期】正在更新中...... 【2018.01-12期】 【2019.01-12期】 【2020.01-12期】 【2021.01-12期】 【2022.01-12期】 【2023.01-12期】 【2024.01-12期】 【2025.01-12期】正在更新中......