顺水外汇EA交易网MT4
标题:
请牛版看看,指标加载后平台就很卡,帮忙优化一下
[打印本页]
作者:
Tomi.wang
时间:
2018-1-11 13:22
标题:
请牛版看看,指标加载后平台就很卡,帮忙优化一下
请牛版看看,指标加载后平台就很卡,帮忙优化一下
/*
Generated by EX4-TO-MQ4 decompiler FREEWARE V4.0.451.1 [-]
Website: http://www.metaquotes.net
E-mail : support@metaquotes.net
*/
#property copyright "rewritten by CrazyChart, modify by prasxz www.freefxsystem.com"
#property link ""
#property indicator_chart_window
#property indicator_buffers 1
#property indicator_color1 Gainsboro
extern int barn = 130000;
extern int Length = 50;
double gda_84[];
// E37F0136AA3FFAF149B351F6A4C948E9
int init() {
SetIndexEmptyValue(0, 0.0);
SetIndexStyle(0, DRAW_SECTION);
SetIndexBuffer(0, gda_84);
return (0);
}
// 52D46093050F38C27267BCE42543EF60
int deinit() {
return (0);
}
// EA2B2676C28C0DB26D39331A336C6B92
int start() {
int li_40;
double ld_44;
double ld_52;
double lda_92[10000][3];
string ls_96;
int li_8 = IndicatorCounted();
int li_20 = 0;
int li_16 = 0;
int li_24 = 0;
double ld_60 = High[barn];
double ld_68 = Low[barn];
int li_32 = barn;
int li_36 = barn;
for (int li_12 = barn; li_12 >= 0; li_12--) {
ld_44 = 10000000;
ld_52 = -100000000;
for (int li_28 = li_12 + Length; li_28 >= li_12 + 1; li_28--) {
if (Low[li_28] ld_52) ld_52 = High[li_28];
}
if (Low[li_12] ld_52) {
li_16 = 2;
if (li_20 == 1) li_32 = li_12 + 1;
if (li_20 == -1) li_36 = li_12 + 1;
} else {
if (Low[li_12] ld_52) li_16 = 1;
}
if (li_16 != li_20 && li_20 != 0) {
if (li_16 == 2) {
li_16 = -li_20;
ld_60 = High[li_12];
ld_68 = Low[li_12];
}
li_24++;
if (li_16 == 1) {
lda_92[li_24][1] = li_36;
lda_92[li_24][2] = ld_68;
}
if (li_16 == -1) {
lda_92[li_24][1] = li_32;
lda_92[li_24][2] = ld_60;
}
ld_60 = High[li_12];
ld_68 = Low[li_12];
}
if (li_16 == 1) {
if (High[li_12] >= ld_60) {
ld_60 = High[li_12];
li_32 = li_12;
}
}
if (li_16 == -1) {
if (Low[li_12] <= ld_68) {
ld_68 = Low[li_12];
li_36 = li_12;
}
}
li_20 = li_16;
}
for (li_28 = 1; li_28 <= li_24; li_28++) {
li_40 = StrToInteger(DoubleToStr(lda_92[li_28][1], 0));
gda_84[li_40] = lda_92[li_28][2];
}
return (0);
}
作者:
天利豹
时间:
2018-1-11 13:46
extern int barn = 130000;
改成
extern int barn = 500;
作者:
一秒永恒
时间:
2018-1-11 15:24
这个什么指标啊
作者:
双吉
时间:
2018-1-11 16:13
看不懂啊!什么指标?
作者:
一秒永恒
时间:
2018-1-11 16:30
优化好了吗
作者:
加大
时间:
2018-1-11 17:51
飒飒飒飒飒大苏打的
作者:
tangqq777
时间:
2018-1-11 18:43
看不懂啊!什么指标
作者:
追锋
时间:
2018-1-11 20:06
学习学习,谢谢分享!
作者:
clm1129
时间:
2018-1-11 20:48
学习学习,谢谢分享!
作者:
灵猴献瑞
时间:
2018-1-11 22:15
路过进来看看,赚点金币
欢迎光临 顺水外汇EA交易网MT4 (http://waterforex.com/)
Powered by Discuz! X3.2