论坛全局菜单下方 - exness285X70 - 韬客社区论坛全局菜单下方 - 荔枝返现285X70 - 韬客社区论坛全局菜单下方 - ThinkMarkets285X70 - 韬客社区论坛全局菜单下方 - TICKMILL 285X70 - 韬客社区
查看:549回复:0
草龙韬客社区韬客社区
注册时间2004-12-17
[MT4指标]CosMod指标
韬客社区
楼主发表于:2014-03-04 08:37只看该作者倒序浏览
1楼 电梯直达
电梯直达
附图指标, mt4指标类型:震荡指标 是否能用在mt4手机版上:否 是否含有未来函数:无 //+------------------------------------------------------------------+ //| CosMod.mq4 | //| Infinite Eith | //| http://www.metaquotes.net | //+------------------------------------------------------------------+ #property copyright "Infinite Eith" #property link "http://www.metaquotes.net" #property indicator_separate_window #property indicator_buffers 1 #property indicator_color1 DodgerBlue extern int KPeriod=14; double MA; double KBuffer; int init() { string short_name; SetIndexStyle(0,DRAW_LINE); SetIndexBuffer(0,KBuffer); short_name="CosMod("+KPeriod+")"; IndicatorShortName(short_name); SetIndexLabel(0,short_name); SetIndexDrawBegin(0,KPeriod); return(0); } int start() { int i,counted_bars=IndicatorCounted(); MA=iMA(NULL,0,14,0,MODE_SMA,PRICE_CLOSE,0); if(Bars<=KPeriod) return(0); if(counted_bars<1) for(i=1;i<=KPeriod;i++) KBuffer[Bars-i]=0.0; i=Bars-KPeriod-1; if(counted_bars>=KPeriod) i=Bars-counted_bars-1; while(i>=0) { KBuffer=MathCos(MathMod(Close,MA)); i--; } return(0); } CosMod.jpgCosMod.jpg
TK29帖子1楼右侧xm竖版广告90-240
个性签名

阅尽天下指标
搬砖开始,始于2014

广告
TK30+TK31帖子一樓廣告
TK30+TK31帖子一樓廣告
版权所有:韬客外汇论坛 www.talkfx.com 联络我们:[email protected]