多时间框架指标 - 页 898 1...891892893894895896897898899900901902903904905...1223 新评论 Mladen Rakic 2015.03.03 18:00 #8971 rplust: 你好,有没有人知道如何调整书签的URL,使其总是打开论坛的最后一页。 当你进入TSD时,它不是已经自动显示最新的主题(有最新帖子的主题)吗? Jozy K 2015.03.03 20:33 #8972 Mladen先生,或者Mrtools,我们能在这个指标上有一些提示吗?在零交叉和颜色变化方面? 谢谢 乔兹 Yousef Yazdani Balan 2015.03.03 22:29 #8973 嗨,工具先生和mladen 你能不能把这个做成MTF,并提醒过零点的情况? 谢谢你 附加的文件: i-g-cci2.mq4 4 kb William Snyder 2015.03.03 23:12 #8974 Jozy: Mladen先生,或者Mrtools,我们能在这个指标上有一些提示吗?在零交叉和颜色变化方面?谢谢 Jozy 嗨,Jozy,我想你忘了发布这个指标。 rplust 2015.03.04 02:52 #8975 mladen: 当你进入TSD时,它不是已经自动显示最新的主题(有最新帖子的主题)了吗? 对不起。我想我没有表达清楚。我不去forex-tsd.com页面,因为我保存了一些我感兴趣的主题的书签,比如这个 "多重时间框架指标",我想问,是否有人知道如何调整这个书签的URL,以便当我点击它时,它自动打开这个主题的最后一页,而不是我保存书签时的页面。 有一次我无意中这样做了,但后来我换了一台新电脑,现在我不记得了。我只是在想,也许有人会知道解决办法。如果没有,也没有问题,因为我不想进一步干扰这个话题。我只是不知道还有什么地方可以发表我的问题。 nevik 2015.03.04 07:07 #8976 尊敬的资深会员 是否可以将布林带指标调整为2和3个偏差? 它目前设置为1个偏差,我曾试图改变设置,但随后就不再显示任何箭头提示了。 谢谢你 //+------------------------------------------------------------------+ //| Bands.mq4 | //| | //| | //+------------------------------------------------------------------+ #属性 indicator_chart_window #属性 indicator_buffers 5 #属性 indicator_color1 LightSeaGreen #属性 indicator_color2 LightSeaGreen #属性 indicator_color3 LightSeaGreen #属性 indicator_color4 LightSeaGreen #属性指示器_color4 青柠绿 #属性指示器_color5 橙色 // // // // // 外部字符串 TimeFrame = "当前时间框架"。 外置 int BandsLength = 4; extern double BandsDeviation = 1.0; extern int AppliedPrice = 0; extern int BandsMaMode = 0; extern string note = "turn on Alert = true; turn off = false"; extern bool alertsOn = true; extern bool alertsOnCurrent = true; extern bool alertsMessage = true; 外部bool alertsSound = true; 外置的 bool alertsNotify = false; 外置 bool alertsEmail = false; 外部字符串 soundFile = "alert2.wav"; extern int arrowthickness = 1; // // // // // 双重Ma[]。 双倍UpMa[]。 双倍DnMa[]。 双倍CrossUp[]。 双倍CrossDn[]。 双重趋势[]。 // // // // // string indicatorFileName; bool calculateValue; bool returnBars; int timeFrame; //+------------------------------------------------------------------+ //| | //+------------------------------------------------------------------+ // // // // // int init() { IndicatorBuffers(6); IndicatorDigits(Digits); SetIndexBuffer(0,Ma); SetIndexBuffer(1,UpMa); SetIndexBuffer(2,DnMa); SetIndexBuffer(3,CrossUp); SetIndexStyle(3,DRAW_ARROW,0, arrowthickness); SetIndexArrow(3,233); SetIndexBuffer(4,CrossDn ); SetIndexStyle(4,DRAW_ARROW,0,arrowthickness); SetIndexArrow(4,234)。 SetIndexBuffer(5,trend); // // // // // indicatorFileName = WindowExpertName(); returnBars = TimeFrame=="returnBars"; if (returnBars) return(0); calculateValue = TimeFrame=="calculateValue"; if (calculateValue) return(0); timeFrame = stringToTimeFrame(TimeFrame); IndicatorShortName(timeFrameToString(timeFrame)+" Bollinger Bands Alerts Arrows")。 return(0); } // // // // // int deinit() { return(0); } //+------------------------------------------------------------------+ //| | //+------------------------------------------------------------------+ // // // // // int start() { int counted_bars=IndicatorCounted()。 int i,limit; if(counted_bars<0) return(-1); 如果(counted_bars>0) counted_bars--。 limit=MathMin(Bars-1,Bars-counted_bars-1)。 如果(returnBars) { Ma[0] = limit+1; return(0); } // // // // // 如果(calculateValue || timeFrame==Period()) { for (i = limit; i >= 0; i--) { double StdDev = iStdDev(NULL,0,BandsLength,0,BandsMaMode,AppliedPrice,i)。 Ma = iMA(NULL,0,BandsLength,0,BandsMaMode,AppliedPrice,i); UpMa = Ma + (StdDev*BandsDeviation); DnMa = Ma - (StdDev*BandsDeviation); 趋势=0。 如果(Close>UpMa)趋势=1。 如果(Close<DnMa)趋势=-1。 // // // // // CrossUp = EMPTY_VALUE; CrossDn = EMPTY_VALUE。 if (trend!= trend) if (trend == 1 && trend != 3) CrossDn = High + iATR(NULL,0,20,i)/2; 如果(trend == -1 && trend !=-3) CrossUp = Low - iATR(NULL,0,20,i)/2; } manageAlerts()。 return(0); } // // // // // limit = MathMax(limit,MathMin(Bars-1,iCustom(NULL,timeFrame,indicatorFileName, "returnBars",0,0)*timeFrame/Period())。 for(i=limit; i>=0; i--) { int y = iBarShift(NULL,timeFrame,Time); Ma = iCustom(NULL,timeFrame,indicatorFileName, "calculateValue",BandsLength,BandsDeviation,AppliedPrice,BandsMaMode,0,y); UpMa = iCustom(NULL,timeFrame,indicatorFileName, "calculateValue",BandsLength,BandsDeviation,AppliedPrice,BandsMaMode,1,y); DnMa = iCustom(NULL,timeFrame,indicatorFileName, "calculateValue",BandsLength,BandsDeviation,AppliedPrice,BandsMaMode,2,y); trend = iCustom(NULL,timeFrame, indicatorFileName, "calculateValue",BandsLength,BandsDeviation,AppliedPrice,BandsMaMode,5,y); CrossUp = EMPTY_VALUE; CrossDn = EMPTY_VALUE。 如果(trend!= trend) if (trend == 1 && trend != 1) CrossDn = High + iATR(NULL,0,20,i)/2; 如果(trend == -1 && trend !=-1) CrossUp = Low - iATR(NULL,0,20,i)/2; } manageAlerts()。 return(0); } // // // // // 空白管理提示()。 { 如果(!calculateValue && alertsOn) { 如果 (alertsOnCurrent) int whichBar = 0; 否则 whichBar = 1; whichBar = iBarShift(NULL,0,iTime(NULL,timeFrame,whichBar))。 如果(趋势[whichBar] !=趋势[whichBar+1]) { 如果(trend[whichBar+1] == 1 && trend[whichBar] != 1) doAlert(whichBar, "sell"); 如果(trendy[whichBar+1] == -1 && trend[whichBar] !=-1) doAlert(whichBar, "buy"); } } } // // // // // void doAlert(int forBar, string doWhat) { 静态字符串previousAlert="无"。 static datetime previousTime; 字符串信息。 如果(previousAlert != doWhat || previousTime != Time[forBar]) { previousAlert = doWhat; previousTime = Time[forBar]; // // // // // message = StringConcatenate(Symbol()," at ",TimeToStr(TimeLocal(),TIME_SECONDS)," - ",timeFrameToString(Period())+" Bollinger Bands ",doWhat)。 如果(alertsMessage)警报(消息)。 如果(alertsNotify)SendNotification(message); 如果(alertsEmail) SendMail(StringConcatenate(Symbol()," Bollinger Bands "),message); 如果(alertsSound) PlaySound(soundFile); } } //+------------------------------------------------------------------- //| //+------------------------------------------------------------------- // // // // // string sTfTable[] = {"M1", "M5", "M15", "M30", "H1", "H4", "D1", "W1", "MN" }; int iTfTable[] = {1,5,15,30,60,240,1440,10080,43200}; // // // // // int stringToTimeFrame(string tfs) { tfs = StringUpperCase(tfs); for (int i=ArraySize(iTfTable)-1; i>=0; i--) if (tfs==sTfTable || tfs==""+iTfTable) return(MathMax(iTfTable,Period() ))。 return(Period())。 } // // // // // string timeFrameToString(int tf) { for (int i=ArraySize(iTfTable)-1; i>=0; i--) if (tf==iTfTable) return(sTfTable); return("")。 } // // // // // string StringUpperCase(string str) { string s = str; for (int length=StringLen(str)-1; length>=0; length--) { int tchar = StringGetChar(s, length); if((tsar > 96 && tchar 223 && tchar < 256)) s = StringSetChar(s, length, tchar - 32); 否则如果(tchar > -33 && tchar < 0) s = StringSetChar(s, length, tchar + 224); } return(s); } //------------------------------------------------------------------ // //------------------------------------------------------------------ // // // // // 编码帮助 Multi Timeframe Indicators 编程问题,求高手指点,谢谢! Jozy K 2015.03.04 08:02 #8977 mrtools: 嗨,Jozy,我想你忘了发布指标。 我非常抱歉!这是该指标。 附加的文件: ftlm_kg_hist_mtf_nmc.mq4 9 kb bvgb 2015.03.04 12:44 #8978 mr tools或mladen。 你能不能把这个指标变成MTF? 问候。 Marko 附加的文件: smc4scalper_candles_v3.1.mq4 10 kb [删除] 2015.03.04 13:15 #8979 嗨。 我有这个指标Fantail,如果你能把它变成MTF,那就太好了。 谢谢你的帮助 附加的文件: fantailvma3.mq4 6 kb William Snyder 2015.03.05 00:58 #8980 Jozy: Mladen先生,或者Mrtools,我们能在这个指标上有一些提示吗?在零交叉和颜色变化时?谢谢 Jozy Jozy,增加了颜色/斜率变化和或零点交叉的警报选项。 附加的文件: ftlm_kg_hist_mtf_nmc_alerts.mq4 11 kb 1...891892893894895896897898899900901902903904905...1223 新评论 原因: 取消 您错过了交易机会: 免费交易应用程序 8,000+信号可供复制 探索金融市场的经济新闻 注册 登录 拉丁字符(不带空格) 密码将被发送至该邮箱 发生错误 使用 Google 登录 您同意网站政策和使用条款 如果您没有帐号,请注册 可以使用cookies登录MQL5.com网站。 请在您的浏览器中启用必要的设置,否则您将无法登录。 忘记您的登录名/密码? 使用 Google 登录
你好,有没有人知道如何调整书签的URL,使其总是打开论坛的最后一页。
当你进入TSD时,它不是已经自动显示最新的主题(有最新帖子的主题)吗?
Mladen先生,或者Mrtools,我们能在这个指标上有一些提示吗?在零交叉和颜色变化方面?
谢谢
乔兹
嗨,工具先生和mladen
你能不能把这个做成MTF,并提醒过零点的情况?
谢谢你
Mladen先生,或者Mrtools,我们能在这个指标上有一些提示吗?在零交叉和颜色变化方面?
谢谢
Jozy嗨,Jozy,我想你忘了发布这个指标。
当你进入TSD时,它不是已经自动显示最新的主题(有最新帖子的主题)了吗?
对不起。我想我没有表达清楚。我不去forex-tsd.com页面,因为我保存了一些我感兴趣的主题的书签,比如这个 "多重时间框架指标",我想问,是否有人知道如何调整这个书签的URL,以便当我点击它时,它自动打开这个主题的最后一页,而不是我保存书签时的页面。
有一次我无意中这样做了,但后来我换了一台新电脑,现在我不记得了。我只是在想,也许有人会知道解决办法。如果没有,也没有问题,因为我不想进一步干扰这个话题。我只是不知道还有什么地方可以发表我的问题。
尊敬的资深会员
是否可以将布林带指标调整为2和3个偏差? 它目前设置为1个偏差,我曾试图改变设置,但随后就不再显示任何箭头提示了。
谢谢你
//+------------------------------------------------------------------+
//| Bands.mq4 |
//| |
//| |
//+------------------------------------------------------------------+
#属性 indicator_chart_window
#属性 indicator_buffers 5
#属性 indicator_color1 LightSeaGreen
#属性 indicator_color2 LightSeaGreen
#属性 indicator_color3 LightSeaGreen #属性 indicator_color4 LightSeaGreen
#属性指示器_color4 青柠绿
#属性指示器_color5 橙色
//
//
//
//
//
外部字符串 TimeFrame = "当前时间框架"。
外置 int BandsLength = 4;
extern double BandsDeviation = 1.0;
extern int AppliedPrice = 0;
extern int BandsMaMode = 0;
extern string note = "turn on Alert = true; turn off = false";
extern bool alertsOn = true;
extern bool alertsOnCurrent = true;
extern bool alertsMessage = true;
外部bool alertsSound = true;
外置的 bool alertsNotify = false;
外置 bool alertsEmail = false;
外部字符串 soundFile = "alert2.wav";
extern int arrowthickness = 1;
//
//
//
//
//
双重Ma[]。
双倍UpMa[]。
双倍DnMa[]。
双倍CrossUp[]。
双倍CrossDn[]。
双重趋势[]。
//
//
//
//
//
string indicatorFileName;
bool calculateValue;
bool returnBars;
int timeFrame;
//+------------------------------------------------------------------+
//| |
//+------------------------------------------------------------------+
//
//
//
//
//
int init()
{
IndicatorBuffers(6);
IndicatorDigits(Digits);
SetIndexBuffer(0,Ma);
SetIndexBuffer(1,UpMa);
SetIndexBuffer(2,DnMa);
SetIndexBuffer(3,CrossUp); SetIndexStyle(3,DRAW_ARROW,0, arrowthickness); SetIndexArrow(3,233);
SetIndexBuffer(4,CrossDn ); SetIndexStyle(4,DRAW_ARROW,0,arrowthickness); SetIndexArrow(4,234)。
SetIndexBuffer(5,trend);
//
//
//
//
//
indicatorFileName = WindowExpertName();
returnBars = TimeFrame=="returnBars"; if (returnBars) return(0);
calculateValue = TimeFrame=="calculateValue"; if (calculateValue) return(0);
timeFrame = stringToTimeFrame(TimeFrame);
IndicatorShortName(timeFrameToString(timeFrame)+" Bollinger Bands Alerts Arrows")。
return(0);
}
//
//
//
//
//
int deinit() { return(0); }
//+------------------------------------------------------------------+
//| |
//+------------------------------------------------------------------+
//
//
//
//
//
int start()
{
int counted_bars=IndicatorCounted()。
int i,limit;
if(counted_bars<0) return(-1);
如果(counted_bars>0) counted_bars--。
limit=MathMin(Bars-1,Bars-counted_bars-1)。
如果(returnBars) { Ma[0] = limit+1; return(0); }
//
//
//
//
//
如果(calculateValue || timeFrame==Period())
{
for (i = limit; i >= 0; i--)
{
double StdDev = iStdDev(NULL,0,BandsLength,0,BandsMaMode,AppliedPrice,i)。
Ma = iMA(NULL,0,BandsLength,0,BandsMaMode,AppliedPrice,i);
UpMa = Ma + (StdDev*BandsDeviation);
DnMa = Ma - (StdDev*BandsDeviation);
趋势=0。
如果(Close>UpMa)趋势=1。
如果(Close<DnMa)趋势=-1。
//
//
//
//
//
CrossUp = EMPTY_VALUE;
CrossDn = EMPTY_VALUE。
if (trend!= trend)
if (trend == 1 && trend != 3) CrossDn = High + iATR(NULL,0,20,i)/2;
如果(trend == -1 && trend !=-3) CrossUp = Low - iATR(NULL,0,20,i)/2;
}
manageAlerts()。
return(0);
}
//
//
//
//
//
limit = MathMax(limit,MathMin(Bars-1,iCustom(NULL,timeFrame,indicatorFileName, "returnBars",0,0)*timeFrame/Period())。
for(i=limit; i>=0; i--)
{
int y = iBarShift(NULL,timeFrame,Time);
Ma = iCustom(NULL,timeFrame,indicatorFileName, "calculateValue",BandsLength,BandsDeviation,AppliedPrice,BandsMaMode,0,y);
UpMa = iCustom(NULL,timeFrame,indicatorFileName, "calculateValue",BandsLength,BandsDeviation,AppliedPrice,BandsMaMode,1,y);
DnMa = iCustom(NULL,timeFrame,indicatorFileName, "calculateValue",BandsLength,BandsDeviation,AppliedPrice,BandsMaMode,2,y);
trend = iCustom(NULL,timeFrame, indicatorFileName, "calculateValue",BandsLength,BandsDeviation,AppliedPrice,BandsMaMode,5,y);
CrossUp = EMPTY_VALUE;
CrossDn = EMPTY_VALUE。
如果(trend!= trend)
if (trend == 1 && trend != 1) CrossDn = High + iATR(NULL,0,20,i)/2;
如果(trend == -1 && trend !=-1) CrossUp = Low - iATR(NULL,0,20,i)/2;
}
manageAlerts()。
return(0);
}
//
//
//
//
//
空白管理提示()。
{
如果(!calculateValue && alertsOn)
{
如果 (alertsOnCurrent)
int whichBar = 0;
否则 whichBar = 1; whichBar = iBarShift(NULL,0,iTime(NULL,timeFrame,whichBar))。
如果(趋势[whichBar] !=趋势[whichBar+1])
{
如果(trend[whichBar+1] == 1 && trend[whichBar] != 1) doAlert(whichBar, "sell");
如果(trendy[whichBar+1] == -1 && trend[whichBar] !=-1) doAlert(whichBar, "buy");
}
}
}
//
//
//
//
//
void doAlert(int forBar, string doWhat)
{
静态字符串previousAlert="无"。
static datetime previousTime;
字符串信息。
如果(previousAlert != doWhat || previousTime != Time[forBar]) {
previousAlert = doWhat;
previousTime = Time[forBar];
//
//
//
//
//
message = StringConcatenate(Symbol()," at ",TimeToStr(TimeLocal(),TIME_SECONDS)," - ",timeFrameToString(Period())+" Bollinger Bands ",doWhat)。
如果(alertsMessage)警报(消息)。
如果(alertsNotify)SendNotification(message);
如果(alertsEmail) SendMail(StringConcatenate(Symbol()," Bollinger Bands "),message);
如果(alertsSound) PlaySound(soundFile);
}
}
//+-------------------------------------------------------------------
//|
//+-------------------------------------------------------------------
//
//
//
//
//
string sTfTable[] = {"M1", "M5", "M15", "M30", "H1", "H4", "D1", "W1", "MN" };
int iTfTable[] = {1,5,15,30,60,240,1440,10080,43200};
//
//
//
//
//
int stringToTimeFrame(string tfs)
{
tfs = StringUpperCase(tfs);
for (int i=ArraySize(iTfTable)-1; i>=0; i--)
if (tfs==sTfTable || tfs==""+iTfTable) return(MathMax(iTfTable,Period() ))。
return(Period())。
}
//
//
//
//
//
string timeFrameToString(int tf)
{
for (int i=ArraySize(iTfTable)-1; i>=0; i--)
if (tf==iTfTable) return(sTfTable);
return("")。
}
//
//
//
//
//
string StringUpperCase(string str)
{
string s = str;
for (int length=StringLen(str)-1; length>=0; length--)
{
int tchar = StringGetChar(s, length);
if((tsar > 96 && tchar 223 && tchar < 256))
s = StringSetChar(s, length, tchar - 32);
否则如果(tchar > -33 && tchar < 0)
s = StringSetChar(s, length, tchar + 224);
}
return(s);
}
//------------------------------------------------------------------
//
//------------------------------------------------------------------
//
//
//
//
//
嗨,Jozy,我想你忘了发布指标。
我非常抱歉!这是该指标。
mr tools或mladen。
你能不能把这个指标变成MTF?
问候。
Marko
嗨。
我有这个指标Fantail,如果你能把它变成MTF,那就太好了。
谢谢你的帮助
Mladen先生,或者Mrtools,我们能在这个指标上有一些提示吗?在零交叉和颜色变化时?
谢谢
JozyJozy,增加了颜色/斜率变化和或零点交叉的警报选项。