哪位老铁知道如何去掉这个数值,谢谢
哪位老铁知道如何编写语句,去掉这个数值,数值太多,看着乱。谢谢!本来想帮你改一下了,下载要3金币,唉,算了,你去源码里找name,直接删除双引号内的数据就行了 御风0618 发表于 2022-7-28 22:48
本来想帮你改一下了,下载要3金币,唉,算了,你去源码里找name,直接删除双引号内的数据就行了
兄弟3币,还算事? 御风0618 发表于 2022-7-28 22:48
本来想帮你改一下了,下载要3金币,唉,算了,你去源码里找name,直接删除双引号内的数据就行了
白嫖就算了 还要收你金币,他还感觉这不算事......真是世界之大无奇不有 这回看看吧 山海之巅 发表于 2022-7-29 08:41
白嫖就算了 还要收你金币,他还感觉这不算事......真是世界之大无奇不有
报道就给金币啊 本帖最后由 qwe11 于 2022-7-29 08:58 编辑
御风0618 发表于 2022-7-28 22:48
本来想帮你改一下了,下载要3金币,唉,算了,你去源码里找name,直接删除双引号内的数据就行了
兄弟,这回直接看,帮看看,谢谢。改好送你金币,缺多少,说话。 山海之巅 发表于 2022-7-29 08:41
白嫖就算了 还要收你金币,他还感觉这不算事......真是世界之大无奇不有
金币多,所有认为3金币,不算事 御风0618 发表于 2022-7-28 22:48
本来想帮你改一下了,下载要3金币,唉,算了,你去源码里找name,直接删除双引号内的数据就行了
兄弟,来这里好多年,怎么才混个小学生!{:1_171:},我都没干活,都混成高中生了{:1_177:} 本帖最后由 qwe11 于 2022-7-29 12:35 编辑
给源码,大家不要购买{:1_174:}
//+------------------------------------------------------------------+
//| macd vs macd |
//+------------------------------------------------------------------+
#property indicator_buffers 6
#property indicator_separate_window
#property indicator_level1 0
#property indicator_color1 White
#property indicator_color2 Red
#property indicator_color3 Red
#property indicator_color4 Lime
#property indicator_color5 Yellow
#property indicator_color6 Blue
//---- buffers
double Buffer1[];
double Buffer2[];
double Buffer3[];
double Buffer4[];
double UP[];
double DO[];
extern int Fast = 12;
extern int Slow = 26;
extern int Signal = 9;
extern bool Alert_Switch=true;
static double SX;
//+------------------------------------------------------------------+
//| Custom indicator initialization function |
//+------------------------------------------------------------------+
int init()
{
//---- indicators
//IndicatorBuffers(3);
SetIndexStyle(0,DRAW_LINE,0,1);
SetIndexStyle(1,DRAW_LINE,0,1);
SetIndexStyle(2,DRAW_HISTOGRAM,0,2);
SetIndexStyle(3,DRAW_HISTOGRAM,0,2);
SetIndexStyle(4,DRAW_ARROW);
SetIndexStyle(5,DRAW_ARROW);
SetIndexArrow(4,233);
SetIndexArrow(5,234);
SetIndexBuffer(0,Buffer1);
SetIndexBuffer(1,Buffer2);
SetIndexBuffer(2,Buffer3);
SetIndexBuffer(3,Buffer4);
SetIndexBuffer(4,UP);
SetIndexBuffer(5,DO);
IndicatorShortName("MACD("+Fast+","+Slow+","+Signal+")");
SetIndexLabel(0,"MACD_MAIN");
SetIndexLabel(1,"MACD_SIGNAL");
SetIndexLabel(2,"MAIN-SIGNAL");
SetIndexLabel(3,"MAIN-SIGNAL");
SetIndexLabel(4,"BUY_SIGNAL");
SetIndexLabel(5,"SELL-SIGNAL");
IndicatorDigits(Digits+2);
//----
return(0);
}
//+------------------------------------------------------------------+
//| Custor indicator deinitialization function |
//+------------------------------------------------------------------+
int deinit()
{
return(0);
}
//+------------------------------------------------------------------+
//| Custom indicator iteration function |
//+------------------------------------------------------------------+
int start()
{
int limit,counted_bars=IndicatorCounted();
//---- check for possible errors
if(counted_bars<0) return(-1);
//---- last counted bar will be recounted
if(counted_bars>0) counted_bars--;
limit=Bars-counted_bars;
double B_Temp;
//---- main loop
for(int i=0; i<limit; i++)
{
Buffer1=iMACD(NULL,0,Fast,Slow,Signal,PRICE_CLOSE,MODE_MAIN,i);
Buffer2=iMACD(NULL,0,Fast,Slow,Signal,PRICE_CLOSE,MODE_SIGNAL,i);
B_Temp=Buffer1 - Buffer2;
if (B_Temp>=0)
{
Buffer3=B_Temp;
Buffer4=EMPTY_VALUE;
}
else
{
Buffer4=B_Temp;
Buffer3=EMPTY_VALUE;
}
}
for(i=0; i<limit; i++)
{
UP=EMPTY_VALUE;
DO=EMPTY_VALUE;
if (Buffer1>Buffer2&&Buffer1<Buffer2)
UP=Buffer2;
if (Buffer1<Buffer2&&Buffer1>Buffer2)
DO=Buffer2;
if (Buffer1>Buffer2&&Buffer1==Buffer2&&Buffer1<Buffer2)
UP=Buffer2;
if (Buffer1<Buffer2&&Buffer1==Buffer2&&Buffer1>Buffer2)
DO=Buffer2;
}
if (Alert_Switch==true && Buffer1>Buffer2&&Buffr1<Buffer2 && SX!=Time)
{
Alert(Symbol(),"",Period(),":","MACD金叉");
SX=Time;
}
if (Alert_Switch==true && Buffer1<Buffer2&&Buffer1>Buffer2 && SX!=Time)
{
SX=Time;
Alert(Symbol(),"",Period(),":","MACD死叉");
}
if (Alert_Switch==true && Buffer1>Buffer2&&Buffer1==Buffer2&&Buffer1<Buffer2 && SX!=Time)
{
SX=Time;
Alert(Symbol(),"",Period(),":","MACD金叉");
}
if (Alert_Switch==true && Buffer1<Buffer2&&Buffer1==Buffer2&&Buffer1>Buffer2 && SX!=Time)
{
SX=Time;
Alert(Symbol(),"",Period(),":","MACD死叉");
}
//----
return(0);
}
//+------------------------------------------------------------------+