论坛全局菜单下方 - exness285X70 - 韬客社区论坛全局菜单下方 - 荔枝返现285X70 - 韬客社区论坛全局菜单下方 - ThinkMarkets285X70 - 韬客社区论坛全局菜单下方 - TICKMILL 285X70 - 韬客社区
查看:1579回复:6
草龙韬客社区韬客社区
注册时间2004-12-17
[MT4指标]变色MA指标
韬客社区
楼主发表于:2014-02-28 02:11只看该作者倒序浏览
1楼 电梯直达
电梯直达
主图指标 mt4指标类型:趋势指标 是否能用在mt4手机版上:否 是否含有未来函数:无 //+------------------------------------------------------------------+ //| Color_MA.mq4 | //| 腻龛? 勿腩? | //| http://denis-or-love.narod.ru | //+------------------------------------------------------------------+ #property copyright "腻龛? 勿腩?" #property link "http://denis-or-love.narod.ru" #property indicator_chart_window #property indicator_buffers 3 #property indicator_color1 Green #property indicator_color2 Red #property indicator_color3 Silver extern int PeriodAv=12; extern int Flat=1; extern color ColorUp=Green; extern color ColorDown=Red; extern color ColorFlat=Silver; extern int Width=2; double Line1, Line2, Line3; //+------------------------------------------------------------------+ //| Custom indicator initialization function | //+------------------------------------------------------------------+ int init() { //---- indicators SetIndexStyle(0,DRAW_LINE,STYLE_SOLID,Width,ColorUp);//DRAW_LINE SetIndexBuffer(0,Line1); SetIndexStyle(1,DRAW_LINE,STYLE_SOLID,Width,ColorDown); SetIndexBuffer(1,Line2); SetIndexStyle(2,DRAW_LINE,STYLE_SOLID,Width,ColorFlat);//DRAW_LINE SetIndexBuffer(2,Line3); //---- return(0); } //+------------------------------------------------------------------+ //| Custom indicator deinitialization function | //+------------------------------------------------------------------+ int deinit() { //---- //---- return(0); } //+------------------------------------------------------------------+ //| Custom indicator iteration function | //+------------------------------------------------------------------+ int start() { //---- int i, Counted_bars=IndicatorCounted(); i=Bars-Counted_bars-1; // 软溴犟 镥疴钽? 礤镱聍栩囗眍泐 while(i>=0) // 骤觌 镱 礤镱聍栩囗睇? 徉疣? { double MA_0=iMA(NULL,0,PeriodAv,0,MODE_EMA,PRICE_CLOSE,i), MA_2=iMA(NULL,0,PeriodAv,0,MODE_EMA,PRICE_CLOSE,i+1); if(MA_0>MA_2) Line1=MA_0; else if(MA_0Color_MA.jpg
TK29帖子1楼右侧xm竖版广告90-240
个性签名

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

广告
TK30+TK31帖子一樓廣告
TK30+TK31帖子一樓廣告
HONGCHUN韬客社区韬客社区
注册时间2014-06-19
韬客社区
发表于:2015-06-22 00:40只看该作者
2楼
非常感谢楼主!
个性签名

韬客社区www.talkfx.co

liujiqi韬客社区韬客社区
注册时间2006-09-20
韬客社区
发表于:2015-06-22 07:02只看该作者
3楼
非常感谢楼主!
个性签名

韬客社区www.talkfx.co

三无男人韬客社区韬客社区
注册时间2015-05-18
tmdabc韬客社区韬客社区
注册时间2014-10-01
韬客社区
发表于:2015-10-17 14:28只看该作者
5楼
TS2有没有?
飞蝴蝶韬客社区韬客社区
注册时间2015-10-16
韬客社区
发表于:2015-10-20 07:48只看该作者
6楼
没有通宝 也不能下载 只能看看了
goodday韬客社区韬客社区
注册时间2016-12-06
版权所有:韬客外汇论坛 www.talkfx.com 联络我们:[email protected]