커뮤니티

지표 변환 문의 드립니다

프로필 이미지
굿잡맨
2018-04-03 09:34:25
321
글번호 117883
답변완료
아래는 Meta Trader 4라는 프로그램의 지표인데요 예스스탁 사용자 지표로의 변환이 가능할런지요? #property indicator_separate_window #property indicator_buffers 4 #property indicator_color1 Aqua #property indicator_color2 Red #property indicator_color3 Red #property indicator_color4 Yellow #property indicator_levelcolor SlateGray #property indicator_level1 0 #property indicator_level2 0 //---- extern int period=9; extern int shift=0; extern int method=0; extern int price=0; extern double deviation=1.5; //---- buffers double ExtMapBuffer1[]; double ExtMapBuffer2[]; double ExtMapBuffer3[]; double ExtMapBuffer4[]; //+------------------------------------------------------------------+ //| Custom indicator initialization function | //+------------------------------------------------------------------+ int init() { //---- indicators SetIndexStyle(0,DRAW_LINE); SetIndexBuffer(0,ExtMapBuffer1); SetIndexStyle(1,DRAW_LINE); SetIndexBuffer(1,ExtMapBuffer2); SetIndexStyle(2,DRAW_LINE); SetIndexBuffer(2,ExtMapBuffer3); SetIndexStyle(3,DRAW_LINE); SetIndexBuffer(3,ExtMapBuffer4); //---- return(0); } //+------------------------------------------------------------------+ //| Custom indicator iteration function | //+------------------------------------------------------------------+ int start() { int limit, counted_bars=IndicatorCounted(); double ima, std; if(counted_bars<0) return(-1); if(counted_bars>0) counted_bars--; limit=Bars-counted_bars; for(int i=0; i<limit; i++) { ima=iMA(NULL,0,period,shift,method,price,i); std=deviation*iStdDev(NULL,0,period,shift,method,price,i); ExtMapBuffer1[i]=0; ExtMapBuffer2[i]=std; ExtMapBuffer3[i]=-std; ExtMapBuffer4[i]=Close[i]-ima; } //---- return(0); } //+------------------------------------------------------------------+
지표
답변 1
프로필 이미지

예스스탁 예스스탁 답변

2018-04-03 10:20:22

안녕하세요 예스스탁입니다. 해당 언어는 사용해본적이 없는 언어라 변환해 드릴수가 없습니다. 도움을 드리지 못해 죄송합니다. 즐거운 하루되세요 > 굿잡맨 님이 쓴 글입니다. > 제목 : 지표 변환 문의 드립니다 > 아래는 Meta Trader 4라는 프로그램의 지표인데요 예스스탁 사용자 지표로의 변환이 가능할런지요? #property indicator_separate_window #property indicator_buffers 4 #property indicator_color1 Aqua #property indicator_color2 Red #property indicator_color3 Red #property indicator_color4 Yellow #property indicator_levelcolor SlateGray #property indicator_level1 0 #property indicator_level2 0 //---- extern int period=9; extern int shift=0; extern int method=0; extern int price=0; extern double deviation=1.5; //---- buffers double ExtMapBuffer1[]; double ExtMapBuffer2[]; double ExtMapBuffer3[]; double ExtMapBuffer4[]; //+------------------------------------------------------------------+ //| Custom indicator initialization function | //+------------------------------------------------------------------+ int init() { //---- indicators SetIndexStyle(0,DRAW_LINE); SetIndexBuffer(0,ExtMapBuffer1); SetIndexStyle(1,DRAW_LINE); SetIndexBuffer(1,ExtMapBuffer2); SetIndexStyle(2,DRAW_LINE); SetIndexBuffer(2,ExtMapBuffer3); SetIndexStyle(3,DRAW_LINE); SetIndexBuffer(3,ExtMapBuffer4); //---- return(0); } //+------------------------------------------------------------------+ //| Custom indicator iteration function | //+------------------------------------------------------------------+ int start() { int limit, counted_bars=IndicatorCounted(); double ima, std; if(counted_bars<0) return(-1); if(counted_bars>0) counted_bars--; limit=Bars-counted_bars; for(int i=0; i<limit; i++) { ima=iMA(NULL,0,period,shift,method,price,i); std=deviation*iStdDev(NULL,0,period,shift,method,price,i); ExtMapBuffer1[i]=0; ExtMapBuffer2[i]=std; ExtMapBuffer3[i]=-std; ExtMapBuffer4[i]=Close[i]-ima; } //---- return(0); } //+------------------------------------------------------------------+