论坛全局菜单下方 - TICKMILL 285X70论坛全局菜单下方 - ThinkMarkets285X70论坛全局菜单下方 - 荔枝返现285X70论坛全局菜单下方 -  icmarkets285X70
查看:1966回复:3
草龙
注册时间2004-12-17
[MT4指标]JJN-Bee趋势箭头指标
楼主发表于:2014-05-30 02:31只看该作者倒序浏览
1楼 电梯直达
电梯直达
主图指标 mt4指标类型:趋势指标 是否能用在mt4手机版上:否 是否含有未来函数:无 //+------------------------------------------------------------------+ //| JJN-Bee.mq4 | //| Copyright ? 2012, JJ Newark | //| http:/jjnewark.atw.hu | //| [email protected] | //+------------------------------------------------------------------+ #property copyright "Copyright ? 2012, JJ Newark" #property link "http:/jjnewark.atw.hu" //---- indicator settings #property indicator_chart_window #property indicator_buffers 4 #property indicator_color1 YellowGreen #property indicator_color2 OrangeRed #property indicator_color3 YellowGreen #property indicator_color4 OrangeRed #property indicator_width1 1 #property indicator_width2 1 #property indicator_width3 1 #property indicator_width4 1 //---- indicator parameters extern string __Copyright__ = "http://jjnewark.atw.hu"; extern int AtrPeriod = 8; extern bool Show_TP_SL = true; extern bool Show_Levels = true; extern color BuyColor = YellowGreen; extern color SellColor = OrangeRed; extern color FontColor = Black; extern int DisplayDecimals = 4; extern int PosX = 25; extern int PosY = 25; extern bool SoundAlert = false; //---- indicator buffers double ExtMapBuffer1; double ExtMapBuffer2; double ExtMapBuffer3; double ExtMapBuffer4; double Atr; //+------------------------------------------------------------------+ //| Custom indicator initialization function | //+------------------------------------------------------------------+ int init() { //---- drawing settings IndicatorBuffers(4); SetIndexStyle(0,DRAW_ARROW); SetIndexArrow(0,233); SetIndexBuffer(0,ExtMapBuffer1); SetIndexStyle(1,DRAW_ARROW); SetIndexArrow(1,234); SetIndexBuffer(1,ExtMapBuffer2); SetIndexStyle(2,DRAW_ARROW); SetIndexArrow(2,167);//119 SetIndexBuffer(2,ExtMapBuffer3); SetIndexStyle(3,DRAW_ARROW); SetIndexArrow(3,167);//119 SetIndexBuffer(3,ExtMapBuffer4); SetIndexLabel(0,"BUY"); SetIndexLabel(1,"SELL"); SetIndexLabel(2,"TakeProfit"); SetIndexLabel(3,"StopLoss"); //---- IndicatorShortName("JJN-Bee"); ObjectCreate("JJNBeeIndName",OBJ_LABEL,0,0,0,0,0); ObjectSet("JJNBeeIndName",OBJPROP_CORNER,0); ObjectSet("JJNBeeIndName",OBJPROP_XDISTANCE,PosX+20); ObjectSet("JJNBeeIndName",OBJPROP_YDISTANCE,PosY); ObjectSetText("JJNBeeIndName","JJN-Bee",8,"Lucida Sans Unicode",FontColor); ObjectCreate("JJNBeeLine0",OBJ_LABEL,0,0,0,0,0); ObjectSet("JJNBeeLine0",OBJPROP_CORNER,0); ObjectSet("JJNBeeLine0",OBJPROP_XDISTANCE,PosX+5); ObjectSet("JJNBeeLine0",OBJPROP_YDISTANCE,PosY+8); ObjectSetText("JJNBeeLine0","------------------",8,"Tahoma",FontColor); ObjectCreate("JJNBeeLine1",OBJ_LABEL,0,0,0,0,0); ObjectSet("JJNBeeLine1",OBJPROP_CORNER,0); ObjectSet("JJNBeeLine1",OBJPROP_XDISTANCE,PosX+5); ObjectSet("JJNBeeLine1",OBJPROP_YDISTANCE,PosY+10); ObjectSetText("JJNBeeLine1","------------------",8,"Tahoma",FontColor); ObjectCreate("JJNBeeDirection",OBJ_LABEL,0,0,0,0,0); ObjectSet("JJNBeeDirection",OBJPROP_CORNER,0); ObjectSet("JJNBeeDirection",OBJPROP_XDISTANCE,PosX); ObjectSet("JJNBeeDirection",OBJPROP_YDISTANCE,PosY+12); ObjectSetText("JJNBeeDirection","Wait",20,"Lucida Sans Unicode",FontColor); ObjectCreate("JJNBeeLevel",OBJ_LABEL,0,0,0,0,0); ObjectSet("JJNBeeLevel",OBJPROP_CORNER,0); ObjectSet("JJNBeeLevel",OBJPROP_XDISTANCE,PosX); ObjectSet("JJNBeeLevel",OBJPROP_YDISTANCE,PosY+50); ObjectSetText("JJNBeeLevel","",9,"Lucida Sans Unicode",FontColor); //---- initialization done return(0); } int deinit() { //---- ObjectDelete("JJNBeeLine0"); ObjectDelete("JJNBeeLine1"); ObjectDelete("JJNBeeIndName"); ObjectDelete("JJNBeeDirection"); ObjectDelete("JJNBeeLevel"); ObjectDelete("JJNBeeEntryLevel"); ObjectDelete("JJNBeeTPLevel"); ObjectDelete("JJNBeeSLLevel"); //---- return(0); } int start() { int limit; int counted_bars=IndicatorCounted(); //---- last counted bar will be recounted if(counted_bars>0) counted_bars--; limit=Bars-counted_bars; //---- for(int i=0; iOpen[i+1] && Close[i+1]Open[i+1]) { ExtMapBuffer1=EMPTY_VALUE; ExtMapBuffer2=High; if(Show_TP_SL) ExtMapBuffer3=Open[i+1]-Atr; if(Show_TP_SL) ExtMapBuffer4=Open[i+1]+Atr; } else { ExtMapBuffer1=EMPTY_VALUE; ExtMapBuffer2=EMPTY_VALUE; ExtMapBuffer3=EMPTY_VALUE; ExtMapBuffer4=EMPTY_VALUE; } } if(Close[0]>Open[1] && Close[1]Open[1]) // SELL { ObjectSet("JJNBeeDirection",OBJPROP_XDISTANCE,PosX+2); ObjectSetText("JJNBeeDirection","SELL",28,"Lucida Sans Unicode",SellColor); ObjectSetText("JJNBeeLevel","under "+DoubleToStr(Open[1],DisplayDecimals),9,"Lucida Sans Unicode",SellColor); if(Show_Levels) { ObjectCreate("JJNBeeEntryLevel",OBJ_TREND,0,Time[1],Open[1],Time[0],Open[1]); ObjectSet("JJNBeeEntryLevel",OBJPROP_RAY,True); ObjectSet("JJNBeeEntryLevel",OBJPROP_BACK,True); // obj in the background ObjectSet("JJNBeeEntryLevel",OBJPROP_STYLE,STYLE_SOLID); ObjectSet("JJNBeeEntryLevel",OBJPROP_WIDTH,1); ObjectSet("JJNBeeEntryLevel",OBJPROP_COLOR,FontColor); ObjectCreate("JJNBeeTPLevel",OBJ_TREND,0,Time[1],Open[1]-Atr,Time[0],Open[1]-Atr); ObjectSet("JJNBeeTPLevel",OBJPROP_RAY,True); ObjectSet("JJNBeeTPLevel",OBJPROP_BACK,True); // obj in the background ObjectSet("JJNBeeTPLevel",OBJPROP_STYLE,STYLE_SOLID); ObjectSet("JJNBeeTPLevel",OBJPROP_WIDTH,1); ObjectSet("JJNBeeTPLevel",OBJPROP_COLOR,BuyColor); ObjectCreate("JJNBeeSLLevel",OBJ_TREND,0,Time[1],Open[1]+Atr,Time[0],Open[1]+Atr); ObjectSet("JJNBeeSLLevel",OBJPROP_RAY,True); ObjectSet("JJNBeeSLLevel",OBJPROP_BACK,True); // obj in the background ObjectSet("JJNBeeSLLevel",OBJPROP_STYLE,STYLE_SOLID); ObjectSet("JJNBeeSLLevel",OBJPROP_WIDTH,1); ObjectSet("JJNBeeSLLevel",OBJPROP_COLOR,SellColor); } if(SoundAlert) PlaySound("alert.wav"); } else { ObjectSet("JJNBeeDirection",OBJPROP_XDISTANCE,PosX+8); ObjectSetText("JJNBeeDirection","WAIT",20,"Lucida Sans Unicode",FontColor); ObjectSetText("JJNBeeLevel","",9,"Lucida Sans Unicode",FontColor); ObjectDelete("JJNBeeEntryLevel"); ObjectDelete("JJNBeeTPLevel"); ObjectDelete("JJNBeeSLLevel"); } //Comment(""); //---- done return(0); } //+------------------------------------------------------------------+JJN-Bee.jpgJJN-Bee.jpg
TK29帖子1楼右侧xm竖版广告90-240
个性签名

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

广告
TK30+TK31帖子一樓廣告
TK30+TK31帖子一樓廣告
Pzxzx
注册时间2017-08-06
牛可
注册时间2018-04-04
发表于:2018-04-04 05:57只看该作者
3楼
e有点看不懂
个性签名

韬客社区www.talkfx.co

广告
论坛谏言--外汇交易不应是你投资的全部,交易外汇也不应是你生活的全部
PANLV
注册时间2018-02-19
发表于:2018-06-01 04:31只看该作者
5楼
4小时再次上演前日的连续的区间来回,昨日第三次冲击1306承压回落,有句话叫,一鼓作气再而衰三而竭,多次上攻不突破,再攻破更难了。今日亚欧盘看1298-1295下方破位情况,破位则会走弱。不破继续区间内震荡。
个性签名

韬客社区www.talkfx.co

本站免责声明:

1、本站所有广告及宣传信息均与韬客无关,如需投资请依法自行决定是否投资、斟酌资金安全及交易亏损风险;

2、韬客是独立的、仅为投资者提供交流的平台,网友发布信息不代表韬客的观点与意思表示,所有因网友发布的信息而造成的任何法律后果、风险与责任,均与韬客无关;

3、金融交易存在极高法律风险,未必适合所有投资者,请不要轻信任何高额投资收益的诱导而贸然投资;投资保证金交易导致的损失可能超过您投入的资金和预期。请您考虑自身的投资经验及风险承担能力,进行合法、理性投资;

4、所有投资者的交易帐户应仅限本人使用,不应交由第三方操作,对于任何接受第三方喊单、操盘、理财等操作的投资和交易,由此导致的任何风险、亏损及责任由投资者个人自行承担;

5、韬客不隶属于任何券商平台,亦不受任何第三方控制,韬客不邀约客户投资任何保证金交易,不接触亦不涉及投资者的任何资金及账户信息,不代理任何交易操盘行为,不向客户推荐任何券商平台,亦不存在其他任何推荐行为。投资者应自行选择券商平台,券商平台的任何行为均与韬客无关。投资者注册及使用韬客即表示其接受和认可上述声明,并自行承担法律风险。

版权所有:韬客外汇论坛 www.talkfx.com 联络我们:[email protected]