编码帮助 - 页 234 1...227228229230231232233234235236237238239240241...786 新评论 Mastercash 2014.02.13 11:40 #2331 mladen: 我根本无法猜测升级是如何进行的,这就是经验法则。例如:我的真实账户仍然是509,没有被我的经纪人升级。但我不知道为什么是这样的 Mladen, 谢谢你,你能告诉我你的经纪人或PM我,我真的很感激。 Mastercash 2014.02.13 11:44 #2332 wolfsch:thv4_trix_v1.0.ex4嗨,Mladen 我有一个关于Trix指标的问题。它隐藏在图表的右边缘,我无法让它显示背景,我还添加了一张截图。 你能帮帮我吗? 谢谢Wolfsch 这可能是软件的代码问题,对象的坐标没有正确设置。 Mladen Rakic 2014.02.13 13:41 #2333 wolfsch:thv4_trix_v1.0.ex4嗨,Mladen 我有一个关于Trix指标的问题。它隐藏在图表的右边缘,我无法让它显示背景,我还添加了一张截图。 请你帮助我。 谢谢Wolfsch 沃尔夫施 我猜测右边的黑色面板是故意的,但没有来源就无法判断。另外,如果你使用的是新的metatrader 4,它仍然有对象的问题,这可能是造成这种问题的一个额外原因。 1Dave7 2014.02.13 14:05 #2334 箭头显示收盘价高于或低于马氏指数的马氏指数 大家早上好。 我很惊讶,我找不到一个当收盘价高于或低于ma时显示箭头的指标。 谁能为我编码? 非常感谢你。 这将使我的这一周变得更有意义! 戴夫 Mladen Rakic 2014.02.13 14:44 #2335 1Dave7: 大家早上好。我很惊讶,我找不到一个指标,当收盘价高于或低于一个ma时显示箭头。 谁能为我编码? 非常感谢你。 这将使我这周的工作更上一层楼!! 戴夫 使用这个指标价格交叉ma_arrows-alerts.mq4。它可以完全满足你的需要 arroganztrader 2014.02.13 18:28 #2336 问题解决了 pullback57 2014.02.16 11:56 #2337 大家好。 你能帮助我吗,我想把prorealtime的指标翻译成metatrader4的指标。 如果有人能做到这一点 CDUR : (var z默认值为8) z1=dema[9](close) z2 =dema[19](close) e= z1 - z2 z3=dema[6](e) f=z3 REM Détermine les variations journalières hausse = MAX(0, f - f[1]) baisse = MAX(0, f[1] - f) REM Calcule la moyenne des gains les jours de hausse REM et des pertes les jours de baisse mmHausse = WILDERAVERAGE[z](hausse) mmBaisse = WILDERAVERAGE[z](baisse) REM En déduit le RS RS = mmHausse / mmBaisse REM Et finalement le RSI de la Zero Lag CDUR = 100 - 100 / (1 + RS) a = 85 b = 100 c =0 d =15 REM X up CDUR if ((CDUR[1] = CDUR[1])) THEN i = 25 else i = 0 endif Rem X Down CDUR Signal if ((CDUR[1] > 85 ) AND (CDUR <= CDUR[1])) THEN K = 25 else K = 0 endif return CDUR,a,b,c,d, I as "signal up", K as"Signal down" [/code] scalper : [code] once rr=1 mb=average[20](typicalprice) k=48 n=(k*2)-4 p=(n/2)-1 h1=DPO[n](high) moyh=high-h1 hi=(moyh-moyh[1]+(high[p])/n)*n hi=(round(hi*100))/100 l1=dpo[n](low) moyl=low-l1 lo=(moyl-moyl[1]+(low[p])/n)*n lo=(round(lo*100))/100 clo1=dpo[n](close) moyc=close-clo1 clot=(moyc-moyc[1]+(close[p])/n)*n clot=(round(clot*100))/100 cond1=(high>high[1] and high>high[2]) cond2=(cond1 and high>hi[46]) and (barindex>bari or rr=-1) if cond1 and cond2 then flagg=1 targeth=high targetl=lo[46] else flagg=0 signa=mb endif for zz=0 to 45 if clot[45-zz]<targetl and hi[45-zz]<=targeth and flagg=1 then signa=high+(averagetruerange[20](close))*.5 rr=1 bari=barindex+zz+2 break elsif hi[45-zz]>targeth then signa=mb break endif next condi=(low<low[1] and low<low[2]) and lowbar or rr=1) if condi then fflag=1 target1=low target2=hi[46] else fflag=0 siigna=mb endif for kk=0 to 45 if clot[45-kk]>target2 and lo[45-kk]>=target1 and fflag=1 then siigna=low-(averagetruerange[20](close))*.5 rr=-1 bar=barindex+kk+2 break elsif lo[45-kk]<target1 then siigna=mb break endif next if barindex < 100 then signa=undefined siigna=undefined endif return signa,siigna,mb 谢谢 附加的文件: sans_titre.png 269 kb Coding help AI 2023. Meet ChatGPT. Need Help with Code debashis 2014.02.16 17:17 #2338 专家们好 这是 "耗尽的酒吧 "指标代码。谁能告诉我这个指标背后的逻辑是什么? #property indicator_chart_window#property indicator_buffers 2 #property indicator_width1 0 #property indicator_color1 Lime #property indicator_width2 0 #property indicator_color2 Red extern int qual=6; extern int len=30; extern int Distance = 1; extern int Countbars=1000; double Up[]; double Dn[]; double point; double bs=0; double index=0; double bindex=0; double sindex=0; double length=0; double ret=0; int init() { if(Digits==3 || Digits==5) { point=10*Point; } else{ point=Point; } IndicatorBuffers(2); SetIndexStyle(0, DRAW_ARROW); SetIndexBuffer(0, Up); SetIndexArrow(0,108); SetIndexStyle(1, DRAW_ARROW); SetIndexBuffer(1, Dn); SetIndexArrow(1,108); return (0); } int deinit() { return (0); } int start() { bool TurnedUp = false; bool TurnedDown = false; double highest,lowest; int i,limit,limit2; int counted_bars = IndicatorCounted(); if(counted_bars < 0) return(-1); limit=Countbars-counted_bars; if (i> limit2) limit2= i; if (limit2 <Countbars-1) limit =Countbars- 1; for( i=limit; i>=0; i--) { if (Close>Close){ bindex=bindex+1; } if(Close<Close){ sindex=sindex+1; } ret=0; index=0; if ((bindex>qual) && (Close=High)) { index=1; bindex=0; ret=-1; } if ((sindex>qual) && (Close>Open)&& (Low<= Low)) { index=-1; sindex=0; ret=1; } if (ret==1 && i!=0){ Up=Low-Distance*point; } if (ret==-1 && i!=0){ Dn=High+Distance*point; } } if (i> limit2) limit2= i; return (0); } Coding help 趋势指标 Trend indicators Mladen Rakic 2014.02.16 18:33 #2339 debashis: 专家们好这是'耗尽的酒吧'指标代码。谁能告诉我这个指标背后的逻辑是什么? #property indicator_chart_window#property indicator_buffers 2 #property indicator_width1 0 #property indicator_color1 Lime #property indicator_width2 0 #property indicator_color2 Red extern int qual=6; extern int len=30; extern int Distance = 1; extern int Countbars=1000; double Up[]; double Dn[]; double point; double bs=0; double index=0; double bindex=0; double sindex=0; double length=0; double ret=0; int init() { if(Digits==3 || Digits==5) { point=10*Point; } else{ point=Point; } IndicatorBuffers(2); SetIndexStyle(0, DRAW_ARROW); SetIndexBuffer(0, Up); SetIndexArrow(0,108); SetIndexStyle(1, DRAW_ARROW); SetIndexBuffer(1, Dn); SetIndexArrow(1,108); return (0); } int deinit() { return (0); } int start() { bool TurnedUp = false; bool TurnedDown = false; double highest,lowest; int i,limit,limit2; int counted_bars = IndicatorCounted(); if(counted_bars < 0) return(-1); limit=Countbars-counted_bars; if (i> limit2) limit2= i; if (limit2 <Countbars-1) limit =Countbars- 1; for( i=limit; i>=0; i--) { if (Close>Close){ bindex=bindex+1; } if(Close<Close){ sindex=sindex+1; } ret=0; index=0; if ((bindex>qual) && (Close=High)) { index=1; bindex=0; ret=-1; } if ((sindex>qual) && (Close>Open)&& (Low<= Low)) { index=-1; sindex=0; ret=1; } if (ret==1 && i!=0){ Up=Low-Distance*point; } if (ret==-1 && i!=0){ Dn=High+Distance*point; } } if (i> limit2) limit2= i; return (0); } 看起来像是TD序列的一些变体(第一部分完全相同,第二部分不同)。所以更多关于TD序列的信息:实用技术分析。汤姆-德马克序列 marley60 2014.02.18 16:58 #2340 大家好,你们有谁知道有一个indi/ea可以做。 创建一个离线图表,只显示一个指数(如DAX或S&P)的主要交易时间,而不是一个24小时的图表。如果它能将开始时间、结束时间和时间框架(1分钟、5分钟......60分钟)作为输入,那就更好了。 因为在24小时图上画趋势线,而16小时图没有实际成交量,我认为没有什么意义...... 也许你们中有人能改变renko/rangebar ea或指标的代码来做到这一点。我试过,但这远远超出了我的编码技能。 1...227228229230231232233234235236237238239240241...786 新评论 您错过了交易机会: 免费交易应用程序 8,000+信号可供复制 探索金融市场的经济新闻 注册 登录 拉丁字符(不带空格) 密码将被发送至该邮箱 发生错误 使用 Google 登录 您同意网站政策和使用条款 如果您没有帐号,请注册 可以使用cookies登录MQL5.com网站。 请在您的浏览器中启用必要的设置,否则您将无法登录。 忘记您的登录名/密码? 使用 Google 登录
我根本无法猜测升级是如何进行的,这就是经验法则。例如:我的真实账户仍然是509,没有被我的经纪人升级。但我不知道为什么是这样的
Mladen,
谢谢你,你能告诉我你的经纪人或PM我,我真的很感激。
thv4_trix_v1.0.ex4
嗨,Mladen
我有一个关于Trix指标的问题。它隐藏在图表的右边缘,我无法让它显示背景,我还添加了一张截图。
你能帮帮我吗?
谢谢Wolfsch这可能是软件的代码问题,对象的坐标没有正确设置。
thv4_trix_v1.0.ex4
嗨,Mladen
我有一个关于Trix指标的问题。它隐藏在图表的右边缘,我无法让它显示背景,我还添加了一张截图。
请你帮助我。
谢谢Wolfsch沃尔夫施
我猜测右边的黑色面板是故意的,但没有来源就无法判断。另外,如果你使用的是新的metatrader 4,它仍然有对象的问题,这可能是造成这种问题的一个额外原因。
箭头显示收盘价高于或低于马氏指数的马氏指数
大家早上好。
我很惊讶,我找不到一个当收盘价高于或低于ma时显示箭头的指标。 谁能为我编码? 非常感谢你。
这将使我的这一周变得更有意义!
戴夫
大家早上好。
我很惊讶,我找不到一个指标,当收盘价高于或低于一个ma时显示箭头。 谁能为我编码? 非常感谢你。
这将使我这周的工作更上一层楼!!
戴夫使用这个指标价格交叉ma_arrows-alerts.mq4。它可以完全满足你的需要
问题解决了
大家好。
你能帮助我吗,我想把prorealtime的指标翻译成metatrader4的指标。
如果有人能做到这一点
CDUR : (var z默认值为8)
z1=dema[9](close)
z2 =dema[19](close)
e= z1 - z2
z3=dema[6](e)
f=z3
REM Détermine les variations journalières
hausse = MAX(0, f - f[1])
baisse = MAX(0, f[1] - f)
REM Calcule la moyenne des gains les jours de hausse
REM et des pertes les jours de baisse
mmHausse = WILDERAVERAGE[z](hausse)
mmBaisse = WILDERAVERAGE[z](baisse)
REM En déduit le RS
RS = mmHausse / mmBaisse
REM Et finalement le RSI de la Zero Lag
CDUR = 100 - 100 / (1 + RS)
a = 85
b = 100
c =0
d =15
REM X up CDUR
if ((CDUR[1] = CDUR[1])) THEN
i = 25
else
i = 0
endif
Rem X Down CDUR Signal
if ((CDUR[1] > 85 ) AND (CDUR <= CDUR[1])) THEN
K = 25
else
K = 0
endif
return CDUR,a,b,c,d, I as "signal up", K as"Signal down"
[/code]
scalper :
[code]
once rr=1
mb=average[20](typicalprice)
k=48
n=(k*2)-4
p=(n/2)-1
h1=DPO[n](high)
moyh=high-h1
hi=(moyh-moyh[1]+(high[p])/n)*n
hi=(round(hi*100))/100
l1=dpo[n](low)
moyl=low-l1
lo=(moyl-moyl[1]+(low[p])/n)*n
lo=(round(lo*100))/100
clo1=dpo[n](close)
moyc=close-clo1
clot=(moyc-moyc[1]+(close[p])/n)*n
clot=(round(clot*100))/100
cond1=(high>high[1] and high>high[2])
cond2=(cond1 and high>hi[46]) and (barindex>bari or rr=-1)
if cond1 and cond2 then
flagg=1
targeth=high
targetl=lo[46]
else
flagg=0
signa=mb
endif
for zz=0 to 45
if clot[45-zz]<targetl and hi[45-zz]<=targeth and flagg=1 then
signa=high+(averagetruerange[20](close))*.5
rr=1
bari=barindex+zz+2
break
elsif hi[45-zz]>targeth then
signa=mb
break
endif
next
condi=(low<low[1] and low<low[2]) and lowbar or rr=1)
if condi then
fflag=1
target1=low
target2=hi[46]
else
fflag=0
siigna=mb
endif
for kk=0 to 45
if clot[45-kk]>target2 and lo[45-kk]>=target1 and fflag=1 then
siigna=low-(averagetruerange[20](close))*.5
rr=-1
bar=barindex+kk+2
break
elsif lo[45-kk]<target1 then
siigna=mb
break
endif
next
if barindex < 100 then
signa=undefined
siigna=undefined
endif
return signa,siigna,mb
谢谢
专家们好
这是 "耗尽的酒吧 "指标代码。谁能告诉我这个指标背后的逻辑是什么?
#property indicator_width1 0
#property indicator_color1 Lime
#property indicator_width2 0
#property indicator_color2 Red
extern int qual=6;
extern int len=30;
extern int Distance = 1;
extern int Countbars=1000;
double Up[];
double Dn[];
double point;
double bs=0;
double index=0;
double bindex=0;
double sindex=0;
double length=0;
double ret=0;
int init() {
if(Digits==3 || Digits==5) {
point=10*Point;
}
else{
point=Point;
}
IndicatorBuffers(2);
SetIndexStyle(0, DRAW_ARROW);
SetIndexBuffer(0, Up);
SetIndexArrow(0,108);
SetIndexStyle(1, DRAW_ARROW);
SetIndexBuffer(1, Dn);
SetIndexArrow(1,108);
return (0);
}
int deinit() {
return (0);
}
int start() {
bool TurnedUp = false;
bool TurnedDown = false;
double highest,lowest;
int i,limit,limit2;
int counted_bars = IndicatorCounted();
if(counted_bars < 0)
return(-1);
limit=Countbars-counted_bars;
if (i> limit2)
limit2= i;
if (limit2 <Countbars-1)
limit =Countbars- 1;
for( i=limit; i>=0; i--) {
if (Close>Close){
bindex=bindex+1;
}
if(Close<Close){
sindex=sindex+1;
}
ret=0;
index=0;
if ((bindex>qual) && (Close=High)) {
index=1;
bindex=0;
ret=-1;
}
if ((sindex>qual) && (Close>Open)&& (Low<= Low)) {
index=-1;
sindex=0;
ret=1;
}
if (ret==1 && i!=0){
Up=Low-Distance*point;
}
if (ret==-1 && i!=0){
Dn=High+Distance*point;
}
}
if (i> limit2)
limit2= i;
return (0);
}
专家们好
这是'耗尽的酒吧'指标代码。谁能告诉我这个指标背后的逻辑是什么?
#property indicator_width1 0
#property indicator_color1 Lime
#property indicator_width2 0
#property indicator_color2 Red
extern int qual=6;
extern int len=30;
extern int Distance = 1;
extern int Countbars=1000;
double Up[];
double Dn[];
double point;
double bs=0;
double index=0;
double bindex=0;
double sindex=0;
double length=0;
double ret=0;
int init() {
if(Digits==3 || Digits==5) {
point=10*Point;
}
else{
point=Point;
}
IndicatorBuffers(2);
SetIndexStyle(0, DRAW_ARROW);
SetIndexBuffer(0, Up);
SetIndexArrow(0,108);
SetIndexStyle(1, DRAW_ARROW);
SetIndexBuffer(1, Dn);
SetIndexArrow(1,108);
return (0);
}
int deinit() {
return (0);
}
int start() {
bool TurnedUp = false;
bool TurnedDown = false;
double highest,lowest;
int i,limit,limit2;
int counted_bars = IndicatorCounted();
if(counted_bars < 0)
return(-1);
limit=Countbars-counted_bars;
if (i> limit2)
limit2= i;
if (limit2 <Countbars-1)
limit =Countbars- 1;
for( i=limit; i>=0; i--) {
if (Close>Close){
bindex=bindex+1;
}
if(Close<Close){
sindex=sindex+1;
}
ret=0;
index=0;
if ((bindex>qual) && (Close=High)) {
index=1;
bindex=0;
ret=-1;
}
if ((sindex>qual) && (Close>Open)&& (Low<= Low)) {
index=-1;
sindex=0;
ret=1;
}
if (ret==1 && i!=0){
Up=Low-Distance*point;
}
if (ret==-1 && i!=0){
Dn=High+Distance*point;
}
}
if (i> limit2)
limit2= i;
return (0);
}
看起来像是TD序列的一些变体(第一部分完全相同,第二部分不同)。所以更多关于TD序列的信息:实用技术分析。汤姆-德马克序列
大家好,你们有谁知道有一个indi/ea可以做。
创建一个离线图表,只显示一个指数(如DAX或S&P)的主要交易时间,而不是一个24小时的图表。如果它能将开始时间、结束时间和时间框架(1分钟、5分钟......60分钟)作为输入,那就更好了。
因为在24小时图上画趋势线,而16小时图没有实际成交量,我认为没有什么意义......
也许你们中有人能改变renko/rangebar ea或指标的代码来做到这一点。我试过,但这远远超出了我的编码技能。