int start= this .m_rt - this .m_pc; //this.m_rt;datetime arr_time[];
double arr_high[],arr_low[];
//--- устанавливает новый размер в первом измерении массиваArrayResize ( this .m_pr_hl2, this .m_rt);
ArrayResize ( this .m_tim_pr_hl2, this .m_rt);
ArrayResize ( this .m_high, this .m_rt);
ArrayResize ( this .m_low, this .m_rt);
//--- функция получает в массивCopyTime ( this .m_symbol, this .m_timeframe, this .m_rt-start, start, arr_time);
CopyHigh ( this .m_symbol, this .m_timeframe, this .m_rt-start, start, arr_high);
CopyLow ( this .m_symbol, this .m_timeframe, this .m_rt-start, start, arr_low);
//--- цена для расчета средних// start= start>ArraySize(arr_high) ? ArraySize(arr_high) : start;for ( int b= this .m_rt-start; b < this .m_rt; b++)
this .m_pr_hl2[b]= (arr_high[b] + arr_low[b]) / 2 ;
//--- производит копирование одного массива в другой.ArrayCopy ( this .m_tim_pr_hl2, arr_time, this .m_rt-start, this .m_rt-start);
ArrayCopy ( this .m_high, arr_high, this .m_rt-start, this .m_rt-start);
ArrayCopy ( this .m_low, arr_low, this .m_rt-start, this .m_rt-start);
void CNewBar::PriceHL2()
{
int start= this .m_rt - this .m_pc; //this.m_rt;datetime arr_time[];
double arr_high[],arr_low[];
//--- устанавливает новый размер в первом измерении массиваArrayResize ( this .m_pr_hl2, this .m_rt);
ArrayResize ( this .m_tim_pr_hl2, this .m_rt);
ArrayResize ( this .m_high, this .m_rt);
ArrayResize ( this .m_low, this .m_rt);
//--- флаг элементов массива будет производиться как в таймсериях.ArraySetAsSeries (arr_time, true );
ArraySetAsSeries (arr_high, true );
ArraySetAsSeries (arr_low, true );
//--- функция получает в массивCopyTime ( this .m_symbol, this .m_timeframe, 0 , start, arr_time);
CopyHigh ( this .m_symbol, this .m_timeframe, 0 , start, arr_high);
CopyLow ( this .m_symbol, this .m_timeframe, 0 , start, arr_low);
//--- цена для расчета среднихfor ( int b= 1 ; b < start; b++)
this .m_pr_hl2[ this .m_rt-b]= (arr_high[b] + arr_low[b]) / 2 ;
//--- производит копирование одного массива в другой.ArrayCopy ( this .m_tim_pr_hl2, arr_time, this .m_rt-start, 0 , start);
ArrayCopy ( this .m_high, arr_high, this .m_rt-start, 0 , start);
ArrayCopy ( this .m_low, arr_low, this .m_rt-start, 0 , start);
}
수동 뒤에 쉼표가 필요하지 않습니다.
안녕하세요.
스크립트가 실행되면 FILE_BIN 에 씁니다. 디버깅하는 과정에서 무엇에 쓰여 있는지 확인하고 싶습니다.
어떤 프로그램이 그러한 파일을 열 수 있습니까?
어떤 프로그램이 그러한 파일을 열 수 있습니까?
이 파일을 읽고 터미널 로그에 쓰는 스크립트를 만드십시오.
별도의 스크립트는 bin에 무엇이 있는지 확인하는 데 도움이 됩니다. 두 번째 옵션: 특히 보기 위해 csv 파일을 병렬로 작성합니다.
안녕하세요.
스크립트가 실행되면 FILE_BIN 에 씁니다. 디버깅하는 과정에서 무엇에 쓰여 있는지 확인하고 싶습니다.
어떤 프로그램이 그러한 파일을 열 수 있습니까?
파일에 쓰기 전에 쓸 내용을 변수에 넣고 관찰에 넣습니다. 스테핑을 통해 기록될 내용을 볼 수 있는 기회를 제공합니다 ...
Manual 다음에 쉼표가 필요하지 않습니다.
감사해요
젠장, 방법을 모르겠습니다.
일반적으로 내 임무는 다음과 같습니다.
새로운 막대의 출현에 따라 가격 배열이 증가하는 조건으로 가격(H+L)/2를 계산합니다.
- 차트가 3000개의 막대로 제한되어 있음을 감안할 때
4일동안 꼬았는데 안되네요!!! 돕다
젠장, 방법을 모르겠습니다.
일반적으로 내 임무는 다음과 같습니다.
새로운 막대의 출현에 따라 가격 배열이 증가하는 조건으로 가격(H+L)/2를 계산합니다.
- 차트가 3000개의 막대로 제한되어 있음을 감안할 때
4일동안 꼬았는데 안되네요!!! 돕다
WOO가 작동하는 것 같습니다