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

MQL5. 포지션 함수, 클래스.

by i.got.it 2019. 4. 23.

MQL5 의 포지션 함수 

 

모든 포지션 관련함수 

 

PositionsTotal

Returns the number of open positions

PositionGetSymbol

Returns the symbol corresponding to the open position

PositionSelect

Chooses an open position for further working with it

PositionSelectByTicket

Selects a position to work with by the ticket number specified in it

PositionGetDouble

Returns the requested property of an open position (double)

PositionGetInteger

Returns the requested property of an open position (datetime or int)

PositionGetString

Returns the requested property of an open position (string)

PositionGetTicket

Returns the ticket of the position with the specified index in the list of open positions

 

 

PositionGetSymbol : https://igotit.tistory.com/2121 

PositionSelect, PositionGetDouble, PositionGetInteger, PositionGetString 

https://igotit.tistory.com/2120

 

 

MQL5 의 포지션 클래스 

CPositionInfo : https://igotit.tistory.com/2133

- 클래스 내부적으로는 상기 포지션 함수들이 사용된다. 

- 포지션 함수들 직접 호출하여 사용하는것보다 더 편리. 

 

 

 

 

 

 

포지션 관련 코드예. 

 

- EA 배치된 챠트의 심볼(=종목)의 전체 포지션 수량구하기 : https://igotit.tistory.com/2121

 

- 포지션 모두 청산  https://igotit.tistory.com/1832

 

 

 

 

 

 

 본 글 포함된 상위 정리글

 MetaTrader5 정리 :  https://igotit.tistory.com/1775

 

 


첫등록 : 2019년 4월 23일. 

최종수정 : 

 

본 글 단축주소 : https://igotit.tistory.com/2132

 


 

댓글



 

비트코인




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