Samuel Olowoyo / 프로필
`이 글에서는 거래를 하기 전에 포지션 청산 및 수정, 주문 보류 및 삭제 및 마진 확인을 구현하는 Expert Advisors를 작성하는 데 MQL5 표준 라이브러리 거래 클래스의 주요 함수를 사용하는 방법을 설명합니다. 또한 트레이드 클래스를 사용하여 주문 및 거래 세부 정보를 얻는 방법을 시연했습니다.
이 문서에서는 코드 오류를 식별하고 해결하는 단계별 프로세스와 Expert Advisor 입력 매개변수를 테스트하고 최적화하는 단계를 설명합니다. MetaTrader 5 클라이언트 터미널의 Strategy Tester를 사용하여 Expert Advisor에 가장 적합한 기호와 입력 매개변수 세트를 찾는 방법을 배우게 됩니다.
이 글은 "초보자를 위한 MQL5에서 Expert Advisor를 작성하기 위한 단계별 가이드" 글에서 수행 한 작업에 대한 객체 지향 접근 방식에 초점을 맞추고 있습니다. 대부분의 사람들은 이것이 어렵다고 생각하지만, 이 글을 다 읽고 나면 객체 지향 기반의 Expert Advisor를 직접 작성할 수 있을 것임을 확신하고 싶습니다.
Your are a real professional.
I am learning everything of MQL language from your great article.
God bless you!!
MQL5의 Expert Advisors 프로그래밍은 간단하며 쉽게 배울 수 있습니다. 이 단계별 가이드를 통해 개발된 거래 전략에 따라 간단한 Expert Advisor를 작성할 때 필요한 기본 단계를 확인할 수 있습니다. Expert Advisor의 구조, 내장 기술 인디케이터 및 거래 기능의 사용, 디버그 모드의 세부 사항 및 Strategy Tester의 사용 등이 소개되어 있습니다.
mrequest.action = TRADE_ACTION_DEAL; // immediate order execution
mrequest.price = NormalizeDouble(latest_price.ask,_Digits); // latest ask price
mrequest.sl = NormalizeDouble(latest_price.ask - STP*_Point,_Digits); // Stop Loss
mrequest.tp = NormalizeDouble(latest_price.ask + TKP*_Point,_Digits); // Take Profit
mrequest.symbol = _Symbol; // currency pair
mrequest.volume = Lot; // number of lots to trade
mrequest.magic = EA_Magic; // Order Magic Number
mrequest.type = ORDER_TYPE_BUY; // Buy Order
mrequest.type_filling = ORDER_FILLING_FOK; // Order execution type
mrequest.deviation=100; // Deviation from current price
//--- send order
OrderSend(mrequest,mresult);
// get the result code
if(mresult.retcode==10009 || mresult.retcode==10008) //Request is completed or order placed
{
Alert(" una orden de compra se ha colocado exitosamente en el ticket#:",mresult.order,"!!");
}
i hope you answer please! my mail is bmy2982@gmail.com
as I promised I write a few words... So thank you for the awesome articles once more!
I was wondering what has happened to this gentleman so I tried to reach out.
I was very glad when I received an answer and I got to know he is doing well and his current business (http://www.business-sms.com.ng) occupies most of his time thus he is not getting any chance to trade.
Hopefully one day he will be back and will bless again the mql5 community with some useful articles.
God bless you Samuel!