본문 바로가기

트레이딩   ( 374 )


DI. DX. DMI. ADX. ADXR. Directional Movement Index. Directional Movement Index DI, DX(DMI), ADX, ADXR 개요. -DI ( = DIM) 정의. -DI( = DIM) = 전저가 - 현저가, if 전저가 > 현저가 이면서 (현고가 - 전고가) 전고가 이면서 (현고가 - 전고가) > (현저가 - 전저가) ---(2) +DI( = DIP) = 0 if 상기 (2)가 아닌 경우. 의미 : +DI 값이 증가하면 가격 상승중. 0 = 상승은 아님. DX( = DMI, Direct.. 2019. 4. 28.
MQL5. 캔들 중 최고가 구하고 라인표현 개요 아래 메타트레이더 5의 챠트에 현재 이전 지정된 캔들 수량(예 100개) 중 최고가를 찾고 이를 화면상에서 수평선 표현하는 코드 소스 정리. 아래 코드의 함수 get_Highest(int num_candle) 는 인자로 전달된 현재시점기준 과거 num_candle 수량중에서 최고가를 반환하는 함수. 이를 OnTick 에서 호출하여 print 하는 예. void OnTick() { Print(Get_Highest(100)); } double Get_Highest(int num_candle) { int idx_highest_candle; double arr_high[]; ArraySetAsSeries(arr_high, true); // CopyHigh(_Symbol,_Period,0,num_candle.. 2019. 4. 27.
MQL5. 수평선 그리기 메타트레이더5의 챠트 화면에 수평선 그리기. - 아래 그림에서 백색 수평선과 같은것을 MQL5 코드에서 구현하는 방법. 전체 코드. int OnInit() { Init_myLine(); return(INIT_SUCCEEDED); } void OnTick() { double price_ask = SymbolInfoDouble(_Symbol, SYMBOL_ASK); // get price ask. ObjectMove(_Symbol, "Line1",0,0,price_ask); // draw line } void Init_myLine() { ObjectCreate( _Symbol, "Line1", OBJ_HLINE, 0, //int sub_window 0, //datetime time1 0 // y value .. 2019. 4. 27.
MQL5. Data Collections. Data Arrays Use of classes of dynamic data arrays will save time when creating a custom data stores of various formats (including multidimensional arrays). MQL5 Standard Library (in terms of arrays of data) is located in the working directory of the terminal in the Include\Arrays folder. Class Description CArray Base class of dynamic data array CArrayChar Dynamic array of char or uchar variables.. 2019. 4. 24.
MQL5. 포지션 함수, 클래스. 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) PositionGe.. 2019. 4. 23.
MQL5. CPositionInfo CPositionInfo - 포지션정보 클래스 상세 ...더보기 CPositionInfo is a class for easy access to the open position properties. Description CPositionInfo class provides easy access to the open position properties. Declaration class CPositionInfo : public CObject Title #include Inheritance hierarchy CObject CPositionInfo Class methods by groups Access to integer type properties Time Gets the time of position openi.. 2019. 4. 23.
메타트레이더5. 파이썬에서 금융시계열 데이터 쉽게 활용하기 개요 파이썬에서 금융시계열 데이터 가져와서 활용하기 위한 방법으로 메타트레이더5 기반한 방법. 사전 필수 준비사항. 1. 메타트레이더 5 설치된 상태. - MT5 설치 상세 : https://igotit.tistory.com/1802 2. 상기 1의 MT5 에서 Account 연결된 상태. - 계정 연결 상세 : https://igotit.tistory.com/1803 - 계정은 모의계좌여도 됨. - Account 연결되어있어야 데이터 공급받을 수 있기 때문에 필수. 3. 파이썬 3.7 개발/실행환경 - 본 예에서는 Visual Studio 2019 의 파이썬 개발환경 이용. - VS2019 의 파이썬 개발환경 설치 상세 : https://igotit.tistory.com/2113 - PyCharm 이용.. 2019. 4. 21.
MQL5. PositionGetSymbol PositionGetSymbol Returns the symbol corresponding to the open position and automatically selects the position for further working with it using functions PositionGetDouble, PositionGetInteger, PositionGetString. string PositionGetSymbol( int index // Number in the list of positions ); Parameters index [in] Number of the position in the list of open positions. Return Value Value of the string ty.. 2019. 4. 19.
MQL5. PositionSelect, PositionGetDouble, PositionGetInteger, PositionGetString PositionSelect Chooses an open position for further working with it. Returns true if the function is successfully completed. Returns false in case of failure. To obtain information about the error, call GetLastError(). bool PositionSelect( string symbol // Symbol name ); 반환값. - true : 함수호출결과 성공인 경우, fasle : 호출결과 실패인 경우 포지션0인 경우에도 false 반환됨. 설명. - 인자로 전달된 심볼 1개에 포지션 여러 개인 경우엔 ticket 번호가장 작은 것 1개만.. 2019. 4. 19.
MQL5. PositionsTotal PositionsTotal Returns the number of open positions. int PositionsTotal(); Return Value Value of int type. 설명. - 헷징 계좌인 경우엔 2개 이상의 포지션 가능. 헷징계좌아닌 경우엔 1개의 포지션만 가능. - EA 가 배치된 챠트의 symbol 포지션 이 아닌 계좌에서 오픈된 "모든 symbol"의 포지션 수량 반환. 상세. https://www.mql5.com/en/docs/trading/positionstotal Documentation on MQL5: Trade Functions / PositionsTotal www.mql5.com 첫등록 : 2019년4월19일 최종수정 : 본 글 단축주소 : https://igo.. 2019. 4. 19.
MQL5. NormalizeDouble NormalizeDouble Rounding floating point number to a specified accuracy. double NormalizeDouble( double value, // normalized number int digits // number of digits after decimal point ); 사용목적 : 실수값의 소수점이하 자리수 명시적으로 지정하여 실수값의 정확도 달성하기 위함. 사용예. double a; // 변수 선언. a = 12.456 * 블라블라.. //이것저것 연산으로 a 값을 계산, double a_nom = NormalizeDouble(a, Digits()) ; Digits() : EA 가 적용중인 symbol 의 소수점이하 자리수를 반환하며 symb.. 2019. 4. 19.
메타트레이더 5. MetaEditor. MQL5 Script. CyClosePositionAll 개요 MQL5 에서의 Script 는 챠트에 배치되면 1회 실행 되며 코드 내에서 OnStart 라는 이벤트 핸들러가 있다. 1. MetaEditor 에서 Script 파일 생성하는법. 2. 스크립트 코드 구현예로 스크립트 실행시 보유한 포지션 모두 청산시키는 기능 구현 코딩 과정 보임. 기타. 용어 "스크립트" 때문에 "스크립트 언어" 와 유사한 형식의 것인가? 라고 생각할 수 도 있는데, C++ (MQL5) 로 작성되며 컴파일하여 실행바이너리 생성된다. MetaEditor 에서 신규 스크립트 생성하기. - 본 예에서는 Scripts 하위에 폴더 igotit 를 만들고 이곳에 스크립트 파일(이름 예 : CyClosePositionAll ) 생성한다. 코드 - 아래 소스 코드 처럼 작성하자. 기본 생성된.. 2019. 4. 19.
MetaTrader5 module for Python. 설치 MT5 module for Python 개요 Python 코드에서 메타트레이더 5(설치 상세) 프로그램과 통신하면서 가격 데이터를 가져와서 파이썬코드에서 활용할 수 있게 해주는 패키지. MT5 module for Python 설치 - 윈도우에서 아나콘다(설치 상세) 프롬프트 창에서 구문 pip install MetaTrader5 타이핑 연관 정보 1. MT5 module for Python 사용법 상세 : https://igotit.tistory.com/2124 2. MT5 module for Python 사이트 : https://www.mql5.com/en/docs/integration/python_metatrader5 첫등록 : 2019년 4월 18일 최종수정 : 본 글 단축주소 : https://i.. 2019. 4. 18.
메타트레이더 5. MQL5. 이벤트 및 핸들러. 개요 MQL5 코드내에서 활용가능한 이벤트 들. 이벤트 전체 리스트. 이벤트소스 이벤트핸들러 Init OnInit() Deinit OnDeinit() Start OnStart() NewTick OnTick() Calculate OnCalculate() Timer OnTimer() Trade OnTrade() 주문 관련 이벤트. TradeTransaction OnTradeTransaction() 계좌(account) 관련 이벤트. Tester OnTester() TesterInit OnTesterInit() TesterPass OnTesterPass() TesterDeinit OnTesterDeinit() ChartEvent OnChartEvent() BookEvent OnBookEvent() DOM(De.. 2019. 4. 17.
MQL5 (MetaTrader 5) 에서 Visual C++ DLL 로딩하기 첫등록 : 2019년 4월 16일 최종수정 : 본 글 단축주소 : https://igotit.tistory.com/2106 2019. 4. 16.
MQL4 (MetaTrader 4) 에서 Visual C++ DLL 로딩하기 첫등록 : 2019년 4월 16일 최종수정 : 본 글 단축주소 : https://igotit.tistory.com/2107 2019. 4. 16.
CyFinForecast. MFC Regular DLL 생성과정 CyFinForecast - 입력 : 실시간 금융시계열데이터 - 출력 : 실시간 예측값 CyFinForecast Visual C++ 프로젝트 생성. - Visual C++ 2019 - MFC Regular DLL - 64bit , release mode. - 기초지식 : MFC Regular DLL 생성방법 프로젝트 생성과정 1. 생성된 프로젝트에 헤더파일 CyFinForecast_DEF.h 추가 본 헤더파일 용도 다른 프로젝트에서 implicit linking 으로 CyFinForecast.dll 을 로딩하려는 경우 사용됨. MT5 와 Python 통신 구축. MT5 -> CyFinDevice.DLL -> CiFinForecast.DLL -> Python 통신경로 완전하게 구축. 첫등록 : 2019년 .. 2019. 4. 14.
마켓데이터. FX마진. EUR/USD, GPB/USD, EUR/GPB EUR/USD 파일명 : EURUSD_19890622_2019_02_25_1D.xlsx 데이터 기간 : 1989년 6월 22일 ~ 2019년 2월 25일 캔들수량 : 8,361개. GPB/USD 파일명 : GPBUSD_19780113_2019_02_25_1D.xlsx 데이터 기간 : 1978년 1월 13일 ~ 2019년 2월 25일 캔들수량 : 11,343 개. EUR/GPB 파일명 : EURGPB_19790528_2019_02_25_1D.xlsx 데이터 기간 : 1979년 5월 28일 ~ 2019년 2월 25일 캔들수량 : 10,935개. 상기 엑셀파일들 공통- 아래 그림처럼 엑셀의 앞부분이 과거, 뒷부분이 최근. - 정보종류 : 시, 고, 저, 종 순. Volume 정보는 없음. - 시간기준 : 한국.. 2019. 2. 27.


 

비트코인




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