まっている指標を与えてくれていったとき警告を表示させたり確率が80以上または20歳でアラートを秒でヒットのパラメータを、今の時点でのみ知った場合80以下20時現在の期間バーが閉じます。 誰でもできるので教えてくれるので助かります。 ここには何を使用していく…(fxfisherman). 誰もが助けをどう受け取ったのでしょうか?感謝.
// ——————————————————————
//|確率(アラート)|
//|Copyright?2006年Scorpion@fxfisherman.com |
//|サウンド-アラートmodによるFXSamurai|
// ——————————————————————
#財産著作権”FxFisherman.com”
#性のリンク”http://www.fxfisherman.com”
#性indicator_separate_window
#性indicator_buffers2
#性indicator_color1Teal
#性indicator_color2赤
#性indicator_minimum0
#性indicator_maximum100
extern string________一般_______;
extern int K=8;
extern int D=3;
extern int減速=3;
extern int MA_Mode=0;//0=SMA、1=絵馬,
extern int Shift_Bars=0;
extern int Bars_Count=0;
extern string_________Alert________;
externダブルOverbuy_Level=76.4;
externダブルOversell_Level=23.6;
extern bool Enable_Alert_1=true;
externダブルCrossover_Gap=0;
extern bool Enable_Alert_2=true;
//—-バッファ
ダブルv1[];
ダブルv2[];
int init()
{
IndicatorBuffers(2);
SetIndexStyle(0,DRAW_LINE,STYLE_SOLID);
SetIndexDrawBegin(0,K 減速);
SetIndexBuffer(0,v1);
SetIndexLabel(0、”K”);
SetIndexStyle(1,DRAW_LINE,STYLE_SOLID);
SetIndexDrawBegin(1、K D 減速);
SetIndexBuffer(1,v2);
SetIndexLabel(1″D”);
透かし();
return(0);
}
int start()
{
int i;
intフ;
int counted_bars=IndicatorCounted();
if(counted_bars>0)counted_bars–;
if(Bars_Count>0&&Bars_Count<=バー)
{
i=Bars_Count-counted_bars;
}else{
i=バー-counted_bars;
}
while(i>=0)
{
シフト=i Shift_Bars;
v1[i]=iStochastic(記()、()K,D,鈍MA_Mode,0,0,shift);
v2[i]=iStochastic(記()、()K,D,鈍MA_Mode,0,1,shift);
Print(v1[i]);
i–;
}
//トOverbuyとの悪さは、値段
static int OBOS;
if(Enable_Alert_1&&v2[0]>=Overbuy_Level&&OBOS!= 1)
{
OBOS=1;
PlaySound(“の警戒態勢にあるからです。wav”);
}else if(Enable_Alert_1&&v2[0]<=Oversell_Level&&OBOS!= -1){
OBOS=-1;
PlaySound(“の警戒態勢にあるからです。wav”);
}
//アラートクロスオーバー
static intクロスオーバー;
if(Enable_Alert_2&&v1[1]<v2[0] Crossover_Gap&&v1[0]>=v2[0] Crossover_Gap&&クロスオーバー!= 1){
クロスオーバー=1;
PlaySound(“の警戒態勢にあるからです。wav”);
}else if(Enable_Alert_2&&v1[1]>v2[0]-Crossover_Gap&&v1[0]<=v2[0]-Crossover_Gap&&クロスオーバー!= -1){
クロスオーバー=-1;
PlaySound(“の警戒態勢にあるからです。wav”);
}
return(0);
}
// ——————————————————————
void透かし()
{
ObjectCreate(“fxfisherman”,OBJ_LABEL,0,0,0);
ObjectSetText(“fxfisherman”,”fxfisherman.com -確率論的アラート-クロスD”,11,”Lucida手書き文字”,RoyalBlue);
ObjectSet(“fxfisherman”,OBJPROP_CORNER,2);
ObjectSet(“fxfisherman”,OBJPROP_XDISTANCE,5);
ObjectSet(“fxfisherman”,OBJPROP_YDISTANCE,10);
return(0);
}
わからないかチェックv1[ 0 ]またはv2[ 0 ]にチェックv1[ 1 ]&v2[ 1 ]
8164: https://www.mql5.com/en/forum/131380
Originally posted 2019-08-06 13:36:00.