求高手翻译一段原码,改成国内博易大师通达信类指标都可
指标一般,但本人用习惯了,想多投一些做国内的期货,但苦于不会翻译,望网友帮忙,本人定居徐州,有路过的朋友可以一聚交流。QQ545237314原码不保留,有要的直接粘走。
#property indicator_separate_window
#property indicator_buffers 4
#property indicator_color1 Blue
#property indicator_color2 Pink
#property indicator_color3 Green
#property indicator_color4 Red
extern bool Email_alerts = FALSE;
extern bool Sound_alerts = FALSE;
extern int Number_of_Bars = 300;
double G_ibuf_88[];
double G_ibuf_92[];
double G_ibuf_96[];
double G_ibuf_100[];
int Gi_104 = 0;
datetime G_time_108 = 0;
// E37F0136AA3FFAF149B351F6A4C948E9
int init() {
SetIndexBuffer(0, G_ibuf_88);
SetIndexStyle(0, DRAW_NONE, STYLE_SOLID, 2);
SetIndexBuffer(1, G_ibuf_92);
SetIndexStyle(1, DRAW_NONE, STYLE_DOT, 1);
SetIndexBuffer(2, G_ibuf_96);
SetIndexStyle(2, DRAW_HISTOGRAM, STYLE_SOLID, 2);
SetIndexBuffer(3, G_ibuf_100);
SetIndexStyle(3, DRAW_HISTOGRAM, STYLE_SOLID, 2);
return (0);
}
// 52D46093050F38C27267BCE42543EF60
int deinit() {
return (0);
}
// EA2B2676C28C0DB26D39331A336C6B92
int start() {
for (int Li_0 = Number_of_Bars; Li_0 >= 0; Li_0--) {
G_ibuf_88 = iMA(NULL, 0, 12, 0, MODE_EMA, PRICE_CLOSE, Li_0) - iMA(NULL, 0, 26, 0, MODE_EMA, PRICE_CLOSE, Li_0);
if (G_ibuf_88 > G_ibuf_88) G_ibuf_96 = 100.0 * (G_ibuf_88 - (G_ibuf_88));
if (G_ibuf_88 < G_ibuf_88) G_ibuf_100 = 100.0 * (G_ibuf_88 - (G_ibuf_88));
}
if (Time <= G_time_108 && 1) return (0);
G_time_108 = Time;
if (Gi_104 <= 0) {
if (G_ibuf_88 > G_ibuf_88 && G_ibuf_88 < G_ibuf_88) {
Gi_104 = 1;
}
}
if (Gi_104 >= 0) {
if (G_ibuf_88 < G_ibuf_88 && G_ibuf_88 > G_ibuf_88) {
Gi_104 = -1;
}
}
return;
没有翻译的价值,太一般了,有好的指标,我可以帮你,金魔方,金字塔,都可以 天利豹 发表于 2015-10-19 21:48
没有翻译的价值,太一般了,有好的指标,我可以帮你,金魔方,金字塔,都可以 ...
这个能给简单翻译一下吗 好东西,收下了,谢谢分享哦哦! 代码量不大,应该不难
页:
[1]