[아카이브!] 포럼을 어지럽히 지 않도록 초보자 질문. 프로, 놓치지 마세요. 너 없이는 아무데도 - 2. - 페이지 290

 
artmedia70 :

나는 주문에 대한 어느 정도 공식화된 자체 회계 없이는 할 수 없다고 생각합니다.

자신만의 주문 배열을 만들고 필요한 모든 데이터를 가상 정류장에 저장하십시오.

이것에 대해 자세히 설명해 주시겠습니까?

이것은 어디에서나 구현되었습니까? 내 검색은 아무것도 나타나지 않았습니다 :(

 
Centuriy :

이에 대해 자세히 설명해 주시겠습니까?

이것은 어디에서나 구현되었습니까? 내 검색은 아무것도 나타나지 않았습니다 :(

이것은 고문을 위한 별도의 기능으로 또는 독립적인 고문으로 구현될 수 있습니다.

기능으로 나는 맞춤형 Expert Advisor를 위해 비슷한 것을 구현했지만 이 세상의 모든 것은 다시 할 수 있고 인센티브가 있을 것입니다...

 
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[])의 표시를 제거하는 방법은 무엇입니까?


빠르게

세트인덱스스타일(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);
}

다음과 같이 시도하십시오.
__________________________________________

#속성 표시기_버퍼 1

버퍼 교환 및 제거

SetIndexBuffer(1,Buffer2);
SetIndexStyle(1,DRAW_LINE);
__________________________________________
솔직히 테스트하지는 않았지만 작동해야합니다.
또는 아무 것도 바꿀 필요가 없습니다. 불필요한 버퍼 설정을 제거하고 2를 1 로 바꾸십시오.

 
artmedia70 :

다음과 같이 시도하십시오.
_____________________________________________________

#속성 표시기_버퍼 1

버퍼 교환 및 제거

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 );
}

또한 버퍼를 사용해야 합니다.
사유: