return(INIT_SUCCEEDED); } //+------------------------------------------------------------------+ //| Custom indicator iteration function | //+------------------------------------------------------------------+ int OnCalculate(const int rates_total, const int prev_calculated, const int begin, const double &price[]) { //---
//--- return value of prev_calculated for next call return(rates_total); }
한 시간 동안 MetaEditor5를 엉망으로 만드셨습니까?
나는 MT4에서 거래하고 직장에 있는 내 컴퓨터와 저장소를 통해 코드를 동기화합니다. MetaEditor4의 스토리지가 저에게 적합합니다.
MT5와 MT4에서 로그인이 다른가요?
MT5와 MT4에서 로그인이 다른가요?
MT5와 MT4에서 로그인이 다른가요?
MT4에서는 5번째 포럼에 여기와 같이 로그인과 비밀번호를 입력했습니다.
클래스 개체 가 전역 수준에서 생성되지 않는 이유는 무엇입니까?
'CBaseClass' - 유형이 없는 선언 !Draft.mq5 12 하나
그래서 필요하다
그래서 필요하다
오히려 그렇게? 저것들. 클래스에 대한 설명은 객체 생성 이전에 엄격하게 이루어져야 합니까?
고맙습니다.
글쎄, 나는 당신이 맨 아래에 클래스 정의를 유지하고 싶다면 일하기 위해 썼습니다.
오히려 그렇게? 저것들. 클래스에 대한 설명은 객체 생성 이전에 엄격하게 이루어져야 합니까?
글쎄, 나는 당신이 맨 아래에 클래스 정의를 유지하고 싶다면 일하기 위해 썼습니다.
이 경우 오류가 발생합니다.
'CBaseClass' - 정의되지 않은 구조체 !Draft.mq5 열셋 하나
#property indicator_separate_window
#property indicator_buffers 10
#property indicator_plots 2
#property indicator_type1 DRAW_COLOR_CANDLES
#property indicator_type2 DRAW_COLOR_CANDLES
//+------------------------------------------------------------------+
//| Custom indicator initialization function |
//+------------------------------------------------------------------+
int OnInit()
{
PlotIndexSetInteger(0,PLOT_LINE_COLOR,0, clrBlue);
PlotIndexSetInteger(0,PLOT_LINE_COLOR,1, clrYellow);
PlotIndexSetInteger(1,PLOT_LINE_COLOR,0, clrGreen);
PlotIndexSetInteger(1,PLOT_LINE_COLOR,1, clrRed);
Print("00 = " + PlotIndexGetInteger(0, PLOT_LINE_COLOR,0));
Print("01 = " + PlotIndexGetInteger(0, PLOT_LINE_COLOR,1));
Print("10 = " + PlotIndexGetInteger(1, PLOT_LINE_COLOR,0));
Print("11 = " + PlotIndexGetInteger(1, PLOT_LINE_COLOR,1));
return(INIT_SUCCEEDED);
}
//+------------------------------------------------------------------+
//| Custom indicator iteration function |
//+------------------------------------------------------------------+
int OnCalculate(const int rates_total,
const int prev_calculated,
const int begin,
const double &price[])
{
//---
//--- return value of prev_calculated for next call
return(rates_total);
}