找回密码
 注册
搜索
楼主: Brainteaser

[原创] 深夜研究泉MM以前对我的指点记录

[复制链接]
发表于 2008-11-6 11:57 PM | 显示全部楼层


原帖由 Quantum 于 2008-11-6 23:19 发表 _SECTION_BEGIN("RMO"); SwingTrd1 = 100 * (Close - ((MA(C,2)+ MA(MA(C,2),2)+ MA(MA(MA(C,2),2),2) + MA(MA(MA(MA(C,2),2),2),2) + MA(MA(MA(MA(MA(C,2),2),2),2),2) + MA(MA(MA(MA(MA(MA(C, ...

 

Can you tell us how you actually use those codes or incorporate them into ameritrade? Thanks.

回复 鲜花 鸡蛋

使用道具 举报

发表于 2008-11-7 12:02 AM | 显示全部楼层

原帖由 Brainteaser 于 2008-11-6 01:29 发表 仿佛有阅读九阳真经的感觉. 每次都有新的体会.

 

Can you share it with everyone?

回复 鲜花 鸡蛋

使用道具 举报

发表于 2008-11-7 01:35 AM | 显示全部楼层
原帖由 Quantum 于 2008-11-6 23:56 发表 这个RMO好生奇怪,看看这个SwingTrd1,在算Stoc之前,分析z-传函的话let A=(1+1/z)/2SwingTrd1=A+A^2+A^3+ ... + A^10= A (1-A^10)/(1-A)频响: 绿线是sma(10)12378

老大的东西太深奥了,我看了一下SwingTrd1, 感觉就是用当日收盘减去过去十天的收盘的加权平均,然后除以过去10日收盘的最高最低差。不过它的权比较有意思,不知道如果用WMA或者VWMA代替会是什么样子。
FYI,以下为加权
0.099902 0.198828 0.193457 0.177344 0.145117 0.1 0.054883 0.022656 0.006543 0.001172 9.77E-05



回复 鲜花 鸡蛋

使用道具 举报

发表于 2008-11-7 01:46 AM | 显示全部楼层

是的

SwingTrd1的算法和Stoc是一样的,不同的地方只是Stoc减去最低价,RMO减去这个加权平均。

俺就是不大明白这个加权平均的好处在哪里。好像看上去它对于短期和长期价格变化的滞后差不太多,不像SMA完全就是一个低通滤波,高频信号完全滤掉。

原帖由 benshou 于 2008-11-7 01:35 发表 老大的东西太深奥了,我看了一下SwingTrd1, 感觉就是用当日收盘减去过去十天的收盘的加权平均,然后除以过去10日收盘的最高最低差。不过它的权比较有意思,不知道如果用WMA或者VWMA代替会是什么样子。FYI,以下为加权 ...
回复 鲜花 鸡蛋

使用道具 举报

发表于 2008-11-7 01:55 AM | 显示全部楼层

 

 

原帖由 Brainteaser 于 2008-11-6 01:29 发表 仿佛有阅读九阳真经的感觉. 每次都有新的体会.

回复 鲜花 鸡蛋

使用道具 举报

发表于 2008-11-7 02:05 AM | 显示全部楼层
原帖由 Quantum 于 2008-11-7 01:46 发表 SwingTrd1的算法和Stoc是一样的,不同的地方只是Stoc减去最低价,RMO减去这个加权平均。俺就是不大明白这个加权平均的好处在哪里。好像看上去它对于短期和长期价格变化的滞后差不太多,不像SMA完全就是一个低通滤波, ...

从权重上看,RMO给前4天收盘的权比较大,也许这是它反应速度快的原因?
回复 鲜花 鸡蛋

使用道具 举报

发表于 2008-11-7 02:25 AM | 显示全部楼层

我觉得应该不是反应快慢的问题

反应比这个快的加权平均有很多的,我还是觉得它的优点是有一个比较平均的滞后。

原帖由 benshou 于 2008-11-7 02:05 发表 从权重上看,RMO给前4天收盘的权比较大,也许这是它反应速度快的原因?
回复 鲜花 鸡蛋

使用道具 举报

发表于 2008-11-7 02:38 AM | 显示全部楼层

回复 47# Quantum 的帖子

老大你说把hourly曲线拿卡儿曼滤波倒腾一下是什么效果?会不会比EMA/SMA这些更好?你应该有这样的程序吧?
回复 鲜花 鸡蛋

使用道具 举报

发表于 2008-11-7 03:19 AM | 显示全部楼层
回复 鲜花 鸡蛋

使用道具 举报

发表于 2008-11-7 03:23 AM | 显示全部楼层
Quantum老大来啦,万分感谢。
回复 鲜花 鸡蛋

使用道具 举报

发表于 2008-11-7 09:03 AM | 显示全部楼层
原帖由 Quantum 于 2008-11-6 23:56 发表 这个RMO好生奇怪,看看这个SwingTrd1,在算Stoc之前,分析z-传函的话let A=(1+1/z)/2SwingTrd1=A+A^2+A^3+ ... + A^10= A (1-A^10)/(1-A)频响: 绿线是sma(10)12378


RMO seems to be a non-linear trading indicator, I haven't tried it yet.

Anybody here is using it at regular bases? How's its reliability?


学无止境。。。
回复 鲜花 鸡蛋

使用道具 举报

发表于 2008-11-8 10:42 PM | 显示全部楼层
re
回复 鲜花 鸡蛋

使用道具 举报

发表于 2008-11-15 12:49 AM | 显示全部楼层
原帖由 多吉 于 2008-11-7 09:03 发表 RMO seems to be a non-linear trading indicator, I haven't tried it yet. Anybody here is using it at regular bases? How's its reliability?



How does the RMO (Rahul Mohindar Oscillator) work?

Price being constant for a 9 period after 8th day the SMA of price & price is the same & in EMA adding on infinitely 90% of 90% can never be 100.

thanks for the explanation and reply.  you know a lot more about MS coding than i do, so kudos!  i think i get what you're saying and the multiple moving averages makes sense; it also appears that the rainbow oscillator and RMO are similar, though i would not say identical (hayseed's chart looks close, but the one i created actually doesn't).  now back to my original question.  based on what you say it seems that the RMO value can in fact be used to measure strength or weakness.  in other words, the RMO is the divergence between moving averages (to make it simple).  how much faith you can put into this i'm not sure yet...

ultimately, however, i don't care if RM based his own oscillator on the rainbow.  all that matters to me is if i can make money with the RMO.  afterall, the RMO is more than just that one oscillator.  if you follow his rules and apply the other indicators he provides, the RMO provides legitimate value, in my opinion.  other have sold far less elegant and useful ideas for far more.  and in the limited time i've been using the RMO it helps avoid the whipsaws i encounter with strictly mechanical systems. 


the jury is still out in how the RMO handled last weeks big downdraft.  the RMO is still bullish on the dow though it appears close to a reversal.  the dow chart with the RMO template is interesting to look at.  there is a red arrow before the drop and now three red bars following.  yet if you follow RM's rules there is still no outright sell signal.  the RMO is still positive and the low bar has not been violated on the close yet (tho it has been intraday).  also, take a look at GES and COH.  retail has been ridiculously strong for six months and conventional wisdom, along with most systems, would have advised in exiting positions.  but the RMO was correct in staying long and not exiting at recent lows.  all i'm saying is that the RMO, even if it's just a moving average variation, still does a pretty good job.  unless you guys have better indicators/systems or think the RMO is a zig-zag cheater, i wouldn't be too harsh.  okay, so let me ask what systems/indicators you actually use with your money?





RMO Intraday code (From another forum)

http://forum.equis.com/forums/post/27103.aspx


Hi All,


       Since RMO does not work less then 15 minutes here is the code I find from another forum

More code from the same author:


And here is Intraday Automatic Exploration (set time to 5 Min.) i've coded with audio alerts.
Gives live signals if you have Real Time Streaming Data -eSignal or Quote.com.


Pl do not use with PIB/Odin convertors or ***** data (datafetchers et. all) - will waste a good system.

Following is RMO training link. Please go through the video at least 3 times before using RMO.
http://www.equis.com/customer/training/rmo/

Enjoy!


//RMO EXPLORATIONS - INTRADAY
_SECTION_BEGIN("RMO");
SwingTrd1=100 *
(Close - ((MA(C,2) +
MA(MA(C,2),2) +
MA(MA(MA(C,2),2),2) +
MA(MA(MA(MA(C,2),2),2),2) +
MA(MA(MA(MA(MA(C,2),2),2),2),2) +
MA(MA(MA(MA(MA(MA(C,2),2),2),2),2),2) +
MA(MA(MA(MA(MA(MA(MA(C,2),2),2),2),2),2),2) +
MA(MA(MA(MA(MA(MA(MA(MA(C,2),2),2),2),2),2),2),2) +
MA(MA(MA(MA(MA(MA(MA(MA(MA(C,2),2),2),2),2),2),2), 2),2) +
MA(MA(MA(MA(MA(MA(MA(MA(MA(MA(C,2),2),2),2),2),2), 2),2),2),2)) / 10)) /
(HHV(C,10) - LLV(C,10));
SwingTrd2=EMA(SwingTrd1,30);
SwingTrd3=EMA(SwingTrd2,30);
RMO = EMA(SwingTrd1,81);
New_Bullish = IIf(RMO > 0 AND Ref(RMO, -1) <= 0,1,0);
New_Bearish = IIf(RMO < 0 AND Ref(RMO, -1) >= 0,1,0);
New_Buy_Arrow = IIf(Cross(SwingTrd2,SwingTrd3),1,0) AND RMO >0;
New_Sell_Arrow = IIf(Cross(SwingTrd3,SwingTrd2),1,0) AND RMO <0;
New_Blue_Bar = IIf(Cross(SwingTrd2,0),1,0) AND RMO >0;
New_Red_Bar = IIf(Cross(0,SwingTrd2),1,0) AND RMO <0;
Old_Bullish = IIf(RMO > 0 AND Ref(RMO, -1) > 0,1,0);
Old_Bearish = IIf(RMO < 0 AND Ref(RMO, -1) < 0,1,0);
New_Buy_Bar = IIf(Ref(New_Buy_Arrow,-1) AND C > Ref(H,-1), 1, 0);
New_Sell_Bar = IIf(Ref(New_Sell_Arrow,-1) AND C < Ref(L,-1), 1, 0);
P_Buy = (Ref(RMO,-1) > 0) AND (Ref(New_Blue_Bar,-1) > 0);
P_Sell= (Ref(RMO,-1) < 0) AND (Ref(New_Red_Bar,-1) > 0);
CBR = RMO;
CBS2= SwingTrd2;
CBS3= SwingTrd3;
PBR = Ref(RMO,-1);
PBS2= Ref(SwingTrd2,-1);
PBS3= Ref(SwingTrd3,-1);
New3CBuy = ((CBR > 0) AND (CBS2 >0) AND (CBS2 > CBS3) AND ((PBR <= 0) AND (PBS2 <=0) AND (PBS2 <= PBS3)));
New3CSell= ((CBR < 0) AND (CBS2 <0) AND (CBS2 < CBS3) AND ((PBR >= 0) AND (PBS2 >=0) AND (PBS2 >= PBS3)));
New_Arrow_New_Bar_Buy = ((CBR > 0) AND (CBS2 >0) AND (CBS2 > CBS3) AND ((PBS2 <=0) AND (PBS2 <= PBS3)));
New_Arrow_New_Bar_Sell= ((CBR < 0) AND (CBS2 <0) AND (CBS2 < CBS3) AND ((PBS2 >=0) AND (PBS2 >= PBS3)));
B1=New_Buy_Bar;
S1=New_Sell_Bar;
B2=New3CBuy;
S2=New3CSell;
B3=New_Buy_Arrow;
S3=New_Sell_Arrow;
B4=New_Buy_Arrow;
S4=New_Sell_Arrow;
B5=New_Blue_Bar;
S5=New_Red_Bar;
B6=New_Bullish;
S6=New_Bearish;
Buy= (B1 OR B2 OR B3 OR B4 OR B5 OR B6) ;
Sell= (S1 OR S2 OR S3 OR S4 OR S5 OR S6);
Filter=Buy OR Sell;
SetOption("NoDefaultColumns", True );
AddTextColumn(Name(),"Security",1.2, colorDefault, colorDefault, 90);
AddColumn( DateTime(), "Date", formatDateTime, colorDefault,colorDefault,100);
AddColumn(IIf(B1,66,IIf(S1,83,32)),"New Trade Bar", formatChar, colorWhite, bkcolor =IIf(B1, colorGreen,IIf(S1,colorRed,colorDefault)));
AddColumn(IIf(B2,66,IIf(S2,83,32)),"New3C", formatChar, colorWhite, bkcolor =IIf(B2, colorGreen,IIf(S2,colorRed,colorDefault)));
AddColumn(IIf(B3,66,IIf(S3,83,32)),"New Arrow+Bar", formatChar, colorWhite, bkcolor =IIf(B3, colorGreen,IIf(S3,colorRed,colorDefault)));
AddColumn(IIf(B4,66,IIf(S4,83,32)),"New Arrow", formatChar, colorWhite, bkcolor =IIf(B4, colorGreen,IIf(S4,colorRed,colorDefault)));
AddColumn(IIf(B5,66,IIf(S5,83,32)),"New Bar", formatChar, colorWhite, bkcolor =IIf(B5, colorGreen,IIf(S5,colorRed,colorDefault)));
AddColumn(IIf(B6,66,IIf(S6,83,32)),"New RMO", formatChar, colorWhite, bkcolor =IIf(B6, colorGreen,IIf(S6,colorRed,colorDefault)));
AlertIf( Buy, "SOUND C:\\Windows\\Media\\chimes.wav", "Audio alert", 1, 1+8 );
AlertIf( Sell, "SOUND C:\\Windows\\Media\\ding.wav", "Audio alert", 2, 1+8 );
_SECTION_END();




回复 鲜花 鸡蛋

使用道具 举报

发表于 2008-11-15 12:50 AM | 显示全部楼层
原帖由 多吉 于 2008-11-15 00:49 发表 How does the RMO (Rahul Mohindar Oscillator) work? Price being constant for a 9 period after 8th day the SMA of price & price is the same & in EMA adding on infinitely 90% of 90% can never ...


http://www.phillip.com.cn/newEbiz1/EbizPortalFG/portal/html/xt.html?GeneralContentShow_DocID=c373e9129941ef1a8feb5df166c6fa48


1,关于Metastock
  • MetaStock为您提供交易系统。如果没有系统,再好的领导也不能带领团队在正确的时间做出正确的决定。投资组合应该是系统的客观的。MetaStock帮您做到。
  • MetaStock让您在交易中变的更理智。突发奇想的决定不会比经过严格考证分析后的决定更可靠。MetaStock提供一个可靠的系统以便能客观的在市场中交易。
  • MetaStock操作简单。目前很多软件理解起来都很复杂,不得不花几个月来适应。然而MetaStock以它的直观的界面,便捷的工具栏,强大的内置帮助系统而闻名。
  • MetaStock为您提供更多自信,让您更有优越感。成功=获利,84%拥有Metastock的用户在调查中认为通过使用MetaStock获得了更大的成功。
  • MetaStock值得信赖。Equis, MetaStock的开发商,从1980年开始就一直致力于开发金融图表技术分析软件,现在有超过150,000的个人客户。由于在个人投资者市场的重要地位,Equis由Reuters----世界第一的信息提供商收购。
  • MetaStock是Reuters产品中一个重要的组成部分,它主要是提供给全球的资产管理者和机构投资者使用。通过MetaStock, 您也同样可以使用被专业金融人士所信赖的工具软件来帮助交易。
  • MetaStock可以根据个人需要进行自定义。要在交易中灵活自如,您必须拥有一套系统来满足您的个人策略,您的风险承受能力,您的交易品种和您的投资目的。那为什么不用更灵活的软件呢?
MetaStock是全球最畅销的投资分析软件。它连续13届被股票和商品期货技术分析杂志的读者评为最佳分析软件。
2,MetaStock EOD & Pro
  • 新的RMO交易系统:由著名的Rahul Mohindar开发,在亚洲掀起了一阵风暴
  • 自定义时间段:设置任意您要的时间段(专为实时交易者开发)
  • 斐波那契预测:用这个令人惊讶的新在线工具来帮您完成交易
  • 可调整大小的窗口:特别适合浏览器的特点
  • 综合性的动态趋势图:在METASTOCK中打开动态趋势图并且自动设置在线学习
  • 综合性的路透搜索栏:用革命性的搜索工具来寻找您要的东西
  • 更多:增加了更多的可打开浏览器窗口,新的外汇版面,标记您的最后一笔交易,以保证交易安全
MetaStock QuoteCenter
QuoteCenter把您需要的信息,工具和分析综合成为可自定义界面的窗口。使用缺省的窗口,比如“股票买卖”,或者简便的自定义桌面来查看最常用的内容。所有的强大功能都集中在桌面上,为您快速准确地提供一个当前市场概况,使您能自信地决定和执行
丰富的导航工具和自定义意味着时间的节约和效率的提高
  • 快速的资讯通道:当市场快速变化,您也需要快速取得市场资讯。QuoteCenter的桌面直观方便。强大的新闻搜索可以更快取得证券,期货,期权和外汇的资讯
  • 导航工具:用路透导航工具来取得新闻,包括技术上的,交易所的以及公司的数据。您也能自己建立个人导航工具,用来观察您最常用的信息
  • 简便的链接显示:包括图表,综合新闻,图片,报价,分析等。您可以马上看到影响当前报价的所有区域。这是可反复使用来取得快速深入的资料的工具
  • 建立您的个性快捷键:设置您最常用的操作到热键或者双击上来节约您的时间
让您更了解关键事件对金融市场产生的影响
  • 对市场趋势的判断:使用路透重大新闻摘要,浏览海外市场的发展情况
  • 深度广度的信息渠道:覆盖整个股票市场的资讯报道帮助您自信决断。寻找深度的资讯,配合革新的工具,让您参与市场
  • 运行强大的搜索引擎:在路透的新闻资料库里,从数百条资源中寻找可用的信息,只需利用直观的新闻描述而不需要记住模糊的新闻代码
我们在MetaStock里首次运用到一个交易策略:RMO 交易策略。我们同样运用了更多的反盗版手段。RMO交易策略有3个简单明了的买入信号和3个卖出信号。简单说来,
3个买入条件是
1. RMO大于0
2. 出现蓝色箭头
3. 蓝色的OHLC条
建议止损价会有低于之前的OHLC条低点的几个记号提醒。一旦你进行交易并且有利润空间,您可以保障您的收益,提高您的止损价到每个买入记号(蓝色箭头),您就可以继续持有直到卖出信号出现。
3个卖出信号是:
1. RMO小于0
2. 红色箭头出现
3. 红色OHLC条
以这个City Development Ltd为例,您的收益为9个点。

这里是关于3个买入卖出条件的更详细的解释:RMO 能预示主要的发展趋势。它消除了多种市场波动,预示了一个长期的主要走向。Swing Trader 能捕捉到走向中的每一个小波动并且自动在价格图表中的这些点上标上蓝色(买入)或者红色(卖出)箭头。Sentiment Indicator 把OHLC条标记为蓝色(看涨)和红色(看跌),预示着主要的观点。Exit Swing Indicator 是当一笔有利润的交易达到止损价后使用的,这也是个很好的退出信号。

3,MetaStock Pro FX
  • 新的RMO交易系统:由著名的Rahul Mohindar开发,在亚洲掀起了一阵风暴
  • 自定义时间段:设置任意您要的时间段(专为实时交易者开发)
  • 斐波那契预测:用这个令人惊讶的新在线工具来帮您完成交易
  • 可调整大小的窗口:特别适合浏览器的特点
  • 综合性的动态趋势图:在METASTOCK中打开动态趋势图并且自动设置在线学习
  • 综合性的路透搜索栏:用革命性的搜索工具来寻找您要的东西
  • 更多:增加了更多窗口,新的外汇版面,标记最后一笔交易,以保证交易安全

专为外汇交易设计的特点

  • 外汇货币配对的符号数据库
  • 17对最常见的配对,为您精心设计了界面
  • 使用MetaStock,在银行间或者在COESfx下单。
  • 专为外汇交易者设计的系统,图表和界面

外汇交易模拟系统

结合了布尔带(Bollinger Bands), 标准误差带(Standard Error Bands)以及随机摆动指标(Stochastic Oscillator),揭示了外汇交易精确的买卖信号。很多外汇交易者把这个方法当作他们的分析策略中的一部分。

外汇肯特纳系统

肯特纳通道被很多外汇交易者公认为可靠的分析工具。我们的新系统提供您两种不同的方法来使用肯特纳通道进行分析。
4,系统要求
最小配置
  • 800 MHz或更快速的处理器
  • 512 MB 内存
  • 200 MB 可使用硬盘空间
  • CD-ROM 驱动器
  • 显卡和显示器至少支持256色和1024x768分辨率
  • 鼠标
  • Microsoft Windows XP或者 Microsoft Windows 2000 操作系统
  • Internet Explorer 浏览器,版本 6.0 或更高版本
  • 适应MAPI的电子邮件程序
推荐配置
  • 1 GHz 或更快速的处理器
  • 1 GB 内存
  • 800 MB 或者更多可使用硬盘空间(用于实时数据收集与系统测试报告)
  • 显卡和显示器支持32位色和1024x768分辨率或更高


[ 本帖最后由 多吉 于 2008-11-15 00:55 编辑 ]
回复 鲜花 鸡蛋

使用道具 举报

 楼主| 发表于 2008-11-15 01:11 AM | 显示全部楼层
老大强啊, 哪里弄来的中文version....
回复 鲜花 鸡蛋

使用道具 举报

 楼主| 发表于 2008-11-15 01:18 AM | 显示全部楼层
RMO
的好处就是6月来,从来没有让观众在日线上buy qqqq

RMO 一直小于,
OHLC 要不就是红色
要不没有入场信号.


但是很多波会被错过, 比如Jun 的 down trend

对做上线的人来说,只要耐得住寂寞还是很不错的.




[ 本帖最后由 Brainteaser 于 2008-11-15 01:21 编辑 ]
Untitled.jpg
回复 鲜花 鸡蛋

使用道具 举报

发表于 2008-11-15 02:39 AM | 显示全部楼层

原帖由 多吉 于 2008-11-15 12:49 AM 发表 How does the RMO (Rahul Mohindar Oscillator) work? Price being constant for a 9 period after 8th day the SMA of price & price is the same & in EMA adding on infinitely 90% of 90% can never ...

 

有没有人试过这个Formula,在我的系统不工作。

回复 鲜花 鸡蛋

使用道具 举报

发表于 2008-11-15 02:57 AM | 显示全部楼层

回复 36# Quantum 的帖子

老大,你这是两个Formula,还是一个?

下面这个单独用,有错。

回复 鲜花 鸡蛋

使用道具 举报

发表于 2008-11-15 03:00 AM | 显示全部楼层
i think, u think too much =)
回复 鲜花 鸡蛋

使用道具 举报

发表于 2008-11-15 03:43 AM | 显示全部楼层

修改了一下,Quantum和Brainteaser两位老大看看对不对?画Bar和Ribbon的地方没有变,只是买卖信号的地方在下半部分加了新的箭头。

 

_SECTION_BEGIN("RMO");

SwingTrd1 = 100 * (Close - ((MA(C,2)+

MA(MA(C,2),2)+

MA(MA(MA(C,2),2),2) +

MA(MA(MA(MA(C,2),2),2),2) +

MA(MA(MA(MA(MA(C,2),2),2),2),2) +

MA(MA(MA(MA(MA(MA(C,2),2),2),2),2),2) +

MA(MA(MA(MA(MA(MA(MA(C,2),2),2),2),2),2),2)+

MA(MA(MA(MA(MA(MA(MA(MA(C,2),2),2),2),2),2),2),2)+

MA(MA(MA(MA(MA(MA(MA(MA(MA(C,2),2),2),2),2),2),2), 2),2)+

MA(MA(MA(MA(MA(MA(MA(MA(MA(MA(C,2),2),2),2),2),2), 2),2),2),2))

/10))/(HHV(C,10)-LLV(C,10));

SwingTrd2= EMA(SwingTrd1,30);

SwingTrd3= EMA(SwingTrd2,30);

RMO= EMA(SwingTrd1,81);

Buy=Cross(SwingTrd2,SwingTrd3);

Sell=Cross(SwingTrd3,SwingTrd2);

Bull_Trend=EMA(SwingTrd1,81)>0;

Bear_Trend=EMA(SwingTrd1,81)<0;

Ribbon_kol=IIf(Bull_Trend,colorGreen, IIf(Bear_Trend,colorRed, colorBlack));

Plot(4, "Ribbon IntraDay", Ribbon_kol, styleOwnScale|styleArea|styleNoLabel, -0.5,100);

Impulse_UP= EMA(SwingTrd1,30) > 0;

Impulse_Down= EMA(SwingTrd1,81) < 0;

bar_kol=IIf(impulse_UP, colorBlue, IIf(impulse_Down, colorRed,IIf(Bull_Trend, colorRed, colorBlue)));

Plot(Close,"Close",bar_kol,styleBar | styleThick );

 

//Old Arrow

//shape = Buy * shapeUpArrow + Sell * shapeDownArrow;

//PlotShapes( shape, IIf( Buy, colorBlue, colorRed ),0, IIf( Buy, Low, High ) );

 

_SECTION_END();

 

//RMO EXPLORATIONS - INTRADAY

_SECTION_BEGIN("RMO");

New_Bullish = IIf(RMO > 0 AND Ref(RMO, -1) <= 0,1,0);

New_Bearish = IIf(RMO < 0 AND Ref(RMO, -1) >= 0,1,0);

New_Buy_Arrow = IIf(Cross(SwingTrd2,SwingTrd3),1,0) AND RMO >0;

New_Sell_Arrow = IIf(Cross(SwingTrd3,SwingTrd2),1,0) AND RMO <0;

New_Blue_Bar = IIf(Cross(SwingTrd2,0),1,0) AND RMO >0;

New_Red_Bar = IIf(Cross(0,SwingTrd2),1,0) AND RMO <0;

Old_Bullish = IIf(RMO > 0 AND Ref(RMO, -1) > 0,1,0);

Old_Bearish = IIf(RMO < 0 AND Ref(RMO, -1) < 0,1,0);

New_Buy_Bar = IIf(Ref(New_Buy_Arrow,-1) AND C > Ref(H,-1), 1, 0);

New_Sell_Bar = IIf(Ref(New_Sell_Arrow,-1) AND C < Ref(L,-1), 1, 0);

P_Buy = (Ref(RMO,-1) > 0) AND (Ref(New_Blue_Bar,-1) > 0);

P_Sell= (Ref(RMO,-1) < 0) AND (Ref(New_Red_Bar,-1) > 0);

CBR = RMO;

CBS2= SwingTrd2;

CBS3= SwingTrd3;

PBR = Ref(RMO,-1);

PBS2= Ref(SwingTrd2,-1);

PBS3= Ref(SwingTrd3,-1);

New3CBuy = ((CBR > 0) AND (CBS2 >0) AND (CBS2 > CBS3) AND ((PBR <= 0) AND (PBS2 <=0) AND (PBS2 <= PBS3)));

New3CSell= ((CBR < 0) AND (CBS2 <0) AND (CBS2 < CBS3) AND ((PBR >= 0) AND (PBS2 >=0) AND (PBS2 >= PBS3)));

New_Arrow_New_Bar_Buy = ((CBR > 0) AND (CBS2 >0) AND (CBS2 > CBS3) AND ((PBS2 <=0) AND (PBS2 <= PBS3)));

New_Arrow_New_Bar_Sell= ((CBR < 0) AND (CBS2 <0) AND (CBS2 < CBS3) AND ((PBS2 >=0) AND (PBS2 >= PBS3)));

B1=New_Buy_Bar;

S1=New_Sell_Bar;

B2=New3CBuy;

S2=New3CSell;

B3=New_Buy_Arrow;

S3=New_Sell_Arrow;

B4=New_Buy_Arrow;

S4=New_Sell_Arrow;

B5=New_Blue_Bar;

S5=New_Red_Bar;

B6=New_Bullish;

S6=New_Bearish;

Buy= (B1 OR B2 OR B3 OR B4 OR B5 OR B6) ;

Sell= (S1 OR S2 OR S3 OR S4 OR S5 OR S6);

Filter=Buy OR Sell;

SetOption("NoDefaultColumns", True );

AddTextColumn(Name(),"Security",1.2, colorDefault, colorDefault, 90);

AddColumn( DateTime(), "Date", formatDateTime, colorDefault,colorDefault,100);

AddColumn(IIf(B1,66,IIf(S1,83,32)),"New Trade Bar", formatChar, colorWhite, bkcolor =IIf(B1, colorGreen,IIf(S1,colorRed,colorDefault)));

AddColumn(IIf(B2,66,IIf(S2,83,32)),"New3C", formatChar, colorWhite, bkcolor =IIf(B2, colorGreen,IIf(S2,colorRed,colorDefault)));

AddColumn(IIf(B3,66,IIf(S3,83,32)),"New Arrow+Bar", formatChar, colorWhite, bkcolor =IIf(B3, colorGreen,IIf(S3,colorRed,colorDefault)));

AddColumn(IIf(B4,66,IIf(S4,83,32)),"New Arrow", formatChar, colorWhite, bkcolor =IIf(B4, colorGreen,IIf(S4,colorRed,colorDefault)));

AddColumn(IIf(B5,66,IIf(S5,83,32)),"New Bar", formatChar, colorWhite, bkcolor =IIf(B5, colorGreen,IIf(S5,colorRed,colorDefault)));

AddColumn(IIf(B6,66,IIf(S6,83,32)),"New RMO", formatChar, colorWhite, bkcolor =IIf(B6, colorGreen,IIf(S6,colorRed,colorDefault)));

AlertIf( Buy, "SOUND C:\\Windows\\Media\\chimes.wav", "Audio alert", 1, 1+8 );

AlertIf( Sell, "SOUND C:\\Windows\\Media\\ding.wav", "Audio alert", 2, 1+8 );

 

// New Buy and Sell Signal

shape = Buy * shapeUpArrow + Sell * shapeDownArrow;

PlotShapes( shape, IIf( Buy, colorBlue, colorRed ),0, IIf( Buy, Low, High ) );

 

_SECTION_END();

[ 本帖最后由 CoolMax 于 2008-11-15 03:49 编辑 ]
回复 鲜花 鸡蛋

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

手机版|小黑屋|www.hutong9.net

GMT-5, 2024-6-17 09:11 AM , Processed in 0.150725 second(s), 15 queries .

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表