[アーカイブ!】どんなルーキーの質問でも、フォーラムを散らかさないように。プロフェッショナルの皆さん、通り過ぎないでください。あなたなしではどこにも行けない - 2. - ページ 290

 
artmedia70:

ここは、自分の注文の帳尻合わせのようなものがないと、やっていけないと思います。

注文の配列を独自に作成し、必要なバーチャルストップデータを全てそこに格納します。

この点について、もう少し詳しく教えてください。

どこかに実装されているのでしょうか? 検索しても何も出てきません((

 
Centuriy:

詳しく教えてください。

どこかに実装されているのでしょうか? 検索しても何も出てきません(;一_一)。

Expert Advisorの独立した機能として、または独立したExpert Advisorとして実装することができます。

カスタムEAの機能として実装していますが、世の中、やる気さえあれば何でも変えられるんです...。

 
Centuriy:

この点について、もう少し詳しく教えてください。

この機能はどこかで実装されているのでしょうか?


これを見てください、そこにはいくつかの選択肢があります。

http://www.fx4u.ru/rinki-forex-commodities-cfd-futures-f14/yazik-programmirovaniya-mql4-opisanie-mts-skrip-f16/virtualniy-treyling-stop-ot-1-punkta-t12781.html

サードパーティーのリンクで申し訳ありません

 

みなさん、こんにちは!バッファ番号1(Buffer1[])の表示を消すにはどうしたらいいでしょうか?

#property indicator_separate_window
#property indicator_buffers 2
#property indicator_color1 Red
#property indicator_width1 2
#property indicator_style1 0
#property indicator_color2 Red
#property indicator_width2 2
#property indicator_style2 0

double Buffer1[];
double Buffer2[];

int init(){
SetIndexBuffer(0,Buffer1);
SetIndexStyle(0,DRAW_LINE);
SetIndexBuffer(1,Buffer2);
SetIndexStyle(1,DRAW_LINE);
return(0);
}
int start(){
for(int i=0;i<Bars;i++){
Buffer1[i]=iClose("EURUSD",0,i)-1;
Buffer2[i]=(Buffer1[i]+Buffer1[i+1]+Buffer1[i+2])/3;
}
return(0);
}

 
Figar0:


これを見てください、そこにはいくつかの選択肢があります。

一人の人間として、本当にありがとうございました

 

tmt0086:

皆さんこんにちは、バッファ番号1(Buffer1[])を表示から消すにはどうしたらいいでしょうか?


一足早い

SetIndexStyle(0, DRAW_NONE)を設定します。

 
sergeev:


早く

SetIndexStyle(0, DRAW_NONE)を設定します。


しかし、高速でない場合は、干渉するため(( それからの境界が高く、通常の作業に干渉するとします。チャートからのバッファが消えても、このバッファからの境界が残っていることが唯一の救いでした。
 
tmt0086:

みなさん、こんにちは!バッファ番号1(Buffer1[])の表示を消すにはどうしたらいいでしょうか?

#property indicator_separate_window
#property indicator_buffers 2
#property indicator_color1 Red
#property indicator_width1 2
#property indicator_style1 0
#property indicator_color2 Red
#property indicator_width2 2
#property indicator_style2 0

double Buffer1[];
double Buffer2[];

int init(){
SetIndexBuffer(0,Buffer1);
SetIndexStyle(0,DRAW_LINE);
SetIndexBuffer(1,Buffer2);
SetIndexStyle(1,DRAW_LINE);
return(0);
}
int start(){
for(int i=0;i<Bars;i++){
Buffer1[i]=iClose("EURUSD",0,i)-1;
Buffer2[i]=(Buffer1[i]+Buffer1[i+1]+Buffer1[i+2])/3;
}
return(0);
}

こんな風に試してみてください。
______________________________________

#property indicator_buffers1

バッファを入れ替え、削除

SetIndexBuffer(1,Buffer2)を設定。
SetIndexStyle(1,DRAW_LINE)を設定します。
______________________________________
正直なところ、テストはしていませんが、うまくいくはずです。
あるいは、何も入れ替えなくても、不要なバッファの設定パラメータを削除して、2個を1個に 置き換えるだけでいいかもしれません

 
artmedia70:

こんな風に試してみてください。
______________________________________

#property indicator_buffers1

バッファを入れ替え、削除

SetIndexBuffer(1,Buffer2)を設定。
SetIndexStyle(1,DRAW_LINE)を設定します。
______________________________________
正直なところ、私はテストしていませんが、うまくいくはずです


#property indicator_separate_window
#property indicator_buffers 1
#property indicator_color1 Red
#property indicator_width1 2
#property indicator_style1 0

double Buffer1[];
double Buffer2[];

int init(){
SetIndexBuffer(0,Buffer2);
SetIndexStyle(0,DRAW_LINE);
return(0);
}
int start(){
for(int i=0;i<Bars;i++){
Buffer1[i]=iClose("EURUSD",0,i)-1;
Buffer2[i]=(Buffer1[i]+Buffer1[i+1]+Buffer1[i+2])/3;
}
return(0);
}
だろう?
 
このように
#property indicator_separate_window
#property indicator_buffers 1
#property indicator_color1 Red
#property indicator_width1 2
#property indicator_style1 0

double Buffer1[], Buffer2[];

int init()
{
  IndicatorBuffers(2);
  SetIndexBuffer(0,Buffer2); SetIndexStyle(0,DRAW_LINE);
  SetIndexBuffer(1,Buffer1);
  return(0);
}

int start()
{
  for(int i=0;i<Bars;i++)
  {
    Buffer1[i]=iClose("EURUSD",0,i)-1;
    Buffer2[i]=(Buffer1[i]+Buffer1[i+1]+Buffer1[i+2])/3;
  }
  return(0);
}

バッファーは使う必要がありますね。