MT4-자바 API

 

MT4 Java API를 소개하고 싶습니다: http://www.easy-share.com/1908253435/jfx-1.2.2.tar.gz


MT4 JFX(터미널 Java API)는 MetaQuotes 거래 에 Java 인터페이스를 제공하기 위한 것입니다.
표준 MetaTrader 4 클라이언트 터미널(MT4 터미널)을 통해 서버.

 
rgerasimen :

MT4 Java API를 소개하고 싶습니다: http://www.easy-share.com/1908253435/jfx-1.2.2.tar.gz


MT4 JFX(터미널 Java API)는 MetaQuotes 거래에 Java 인터페이스를 제공하기 위한 것입니다.
표준 MetaTrader 4 클라이언트 터미널(MT4 터미널)을 통해 서버.

To make use of JFX API , one must create its own strategy java class , extending
com . jfx . strategy . Strategy and overriding coordinate ( ) method :

public class MyStrategy extends com . jfx . strategy . Strategy {
public void init ( String symbol , int period , StrategyRunner strategyRunner ) {
super . init ( symbol , period , strategyRunner ) ;
//
// load existing orders, recover itself from the previous shutdown
//
}
public void deinit ( ) {
// release resources on EA exit
}
public void coordinate ( ) {
// trading logic goes here
/* make use of all API methods: accountBalance, accountCompany, accountCredit, accountCurrency, accountEquity,
accountFreeMargin, accountMargin, accountName, accountNumber, accountProfit, comment, day, dayOfWeek, dayOfYear,
getLastError, getTickCount, hour, iAC, iAD, iADX, iAlligator, iAO, iATR, iBands, iBars, iBarShift, iBearsPower, iBullsPower,
iBWMFI, iCCI, iClose, iCustom, iDeMarker, iEnvelopes, iForce, iFractals, iGator, iHigh, iHighest, iLow, iLowest, iMA, iMACD,
iMFI, iMomentum, iOBV, iOpen, iOsMA, iRSI, iRVI, iSAR, isConnected, isDemo, iStdDev, isTesting, iStochastic,
isTradeContextBusy, isVisualMode, iTime, iVolume, iWPR, marketInfo, minute, month, objectCreate, objectCreate, objectCreate,
objectDelete, objectGet, objectGetFiboDescription, objectSet, objectSetFiboDescription, objectSetText, objectsTotal, objectType,
orderClose, orderCloseBy, orderClosePrice, orderCloseTime, orderComment, orderCommission, orderDelete, orderExpiration,
orderLots, orderMagicNumber, orderModify, orderOpenPrice, orderOpenTime, orderPrint, orderProfit, orderSelect, orderSend,ordersHistoryTotal, orderStopLoss, ordersTotal, orderSwap, orderSymbol, orderTakeProfit, orderTicket, orderType, print,
refreshRates, seconds, timeCurrent, year
*/
}
}
 
// Java:
                double point = marketInfo(EURUSD, MarketInfo.MODE_POINT);
                double price = marketInfo(EURUSD, MarketInfo.MODE_ASK);
                buyPrice = price;
                int ticket = orderSend(
                        EURUSD,
                        TradeOperation.OP_BUY,
                        1,
                        buyPrice,
                        2,
                        price - 100 * point,
                        price + 100 * point,
                        "" + System.currentTimeMillis(),
                        0,
                        new Date(System.currentTimeMillis() + 60 * 60 * 1000),
                        -1
                );
                System.out.println("---------------------------------------");
                System.out.println("Buy order ticket: " + ticket);

 
 
문서 아카이브 없음
파일:
jfxv1.2.3_1.zip  3617 kb
 
자바독
파일:
 
 
rgerasimen :


멋진!!!!

축하합니다

댄 일명 BearNaked

 

학문적 실천인가?


MQL4에서는 할 수 없지만 Java에서는 무엇을 할 수 있습니까?

 
blogzr3 :

학문적 실천인가?


MQL4에서는 할 수 없지만 Java에서는 무엇을 할 수 있습니까?


더 정교한 로봇... Java는 객체 지향 MQL4가 아닙니다.

 
blogzr3 :

학문적 실천인가?


MQL4에서는 할 수 없지만 Java에서는 무엇을 할 수 있습니까?


최소한 중단점을 설정할 수 있습니다.