顺水外汇EA交易网MT4
标题:
求编程老师修复下这个指标
[打印本页]
作者:
金城谈金
时间:
2018-1-11 14:59
标题:
求编程老师修复下这个指标
此指标是一个信号指标,但每次报警的窗口显示出一排乱码 看不懂。而且声音提示非常杂乱,像收音机一样。求老师修复下。
[C++] 纯文本查看 复制代码//+------------------------------------------------------------------+
//| Sig_Soch.mq4 |
//| Copyright ?2009, MetaQuotes Software Corp. |
//| http://www.metaquotes.net |
//+------------------------------------------------------------------+
#property copyright "Copyright ?2009, MetaQuotes Software Corp."
#property link "http://www.metaquotes.net"
#property indicator_chart_window
#property indicator_buffers 2
#property indicator_color1 Blue
#property indicator_color2 Red
extern int PerCCI=24;
extern bool Al=true;
double CCI;
double CCIold;
double ArrShift;
double BufUp[];
double BufDn[];
int s,b;
//+------------------------------------------------------------------+
//| Custom indicator initialization function |
//+------------------------------------------------------------------+
int init()
{
//---- indicators
SetIndexBuffer(0, BufUp);
SetIndexStyle(0, DRAW_ARROW);
SetIndexArrow(0, 233);
SetIndexBuffer(1, BufDn);
SetIndexStyle(1, DRAW_ARROW);
SetIndexArrow(1, 234);
switch (Period()) {
case PERIOD_M1: ArrShift = Point * 5; break;
case PERIOD_M5: ArrShift = Point * 10; break;
case PERIOD_M15: ArrShift = Point * 20; break;
case PERIOD_M30: ArrShift = Point * 20; break;
case PERIOD_H1: ArrShift = Point * 40; break;
case PERIOD_H4: ArrShift = Point * 80; break;
case PERIOD_D1: ArrShift = Point * 100; break;
}
//----
return(0);
}
//+------------------------------------------------------------------+
//| Custom indicator deinitialization function |
//+------------------------------------------------------------------+
int deinit()
{
//----
//----
return(0);
}
//+------------------------------------------------------------------+
//| Custom indicator iteration function |
//+------------------------------------------------------------------+
int start()
{
int i,
Counted_bars=IndicatorCounted();
i=Bars-Counted_bars-1;
//----
while(i>=1) // 骤觌 镱 礤镱聍栩囗睇?徉疣?
{
CCI=iCCI(NULL,0,PerCCI,PRICE_TYPICAL,i);
CCIold=iCCI(NULL,0,PerCCI,PRICE_TYPICAL,i+1);
if (CCI>-100 && CCIold100) {BufDn[i]=High[i] + ArrShift;/*if (s
作者:
金城谈金
时间:
2018-1-11 15:18
谁可以帮帮我
作者:
abear
时间:
2018-1-11 15:48
源碼就是亂碼了
跟編程沒甚麼關係
作者:
EUR168
时间:
2018-1-11 16:23
顶,赚点金币,顺便看看
作者:
elvis9697
时间:
2018-1-11 17:16
求编程老师修复下这个指标
欢迎光临 顺水外汇EA交易网MT4 (http://waterforex.com/)
Powered by Discuz! X3.2