본문 바로가기
트레이딩/메타트레이더 코딩

MQL5. Access to Timeseries and Indicator Data

by i.got.it 2020. 10. 11.

개요 

- MQL5 에서의  timeseries 형식은 인덱스0이 최신의 것이고, 인덱스 증가할 수록 과거 정보가 기록되어있다.

- 틱, 캔들, 인디케이터 타임시리즈 데이터를 배열로 복사하는 함수 제공.  

 

 

 

캔들 구조체, 캔들 시리즈 확보함수.

 

MQL5. MqlRates. CopyRates

MqlRates struct MqlRates { datetime time; // Period start time double open; // Open price double high; // The highest price of the period double low; // The lowest price of the period double close;..

igotit.tistory.com

 

틱 구조체, 틱 시리즈 확보함수. 

 

MQL5. MqlTick. CopyTicks

구조체 MqlTick struct MqlTick { datetime time; // Time of the last prices update double bid; // Current Bid price double ask; // Current Ask price double last; // Price of the last deal (Last) ulong..

igotit.tistory.com

 

 

 

 

 

 

 

 

 

 

from:

 

Documentation on MQL5: Timeseries and Indicators Access

   datetime TimeAsSeries[]; //--- set access to the array like to a timeseries    ArraySetAsSeries(TimeAsSeries,true);    ResetLastError();    int copied=CopyTime(NULL,0,0,10,TimeAsSeries);    if(copied<=0)      {      �

www.mql5.com

 

 

 

 

 


첫 등록 : 2020.10.11

최종 수정 : 

단축 주소 : https://igotit.tistory.com/2644

 


 

댓글



 

비트코인




암호화폐       외환/나스닥/골드       암호화폐/외환/나스닥/골드 암호화폐/외환/나스닥/골드   암호화폐/외환/나스닥/골드
     
현물 |선물 인버스 |선물 USDT       전략매니저(카피트레이딩)     롤오버 이자 없는 스왑프리계좌
( 스왑프리 암호화폐도 거래 가능 )    
MT4, MT5 , cTrader 모두 지원     FTMO 계좌 매매운용. MT4,MT5