Dukascopy
 
 
Wiki JStore Search Login

How to use use MACD RSI KDJ EMA function as MQ4?
 Post subject: How to use use MACD RSI KDJ EMA function as MQ4? Post rating: 0   New post Posted: Mon 24 Dec, 2018, 07:32 

User rating: 0
Joined: Sun 23 Dec, 2018, 16:58
Posts: 5
Location: China,
HI
I have MQ4 EA,I wang to convert to JFOREX,but I don't know hou to call these indicators function.
10 yeasr ago,I wrote EA call these function as:
double m0=indicators.sma(insturment.EURUSD,Period.TEN_MIN,OfferSide.BID,IIndicators.AppliedPrice.MEDIAN_PRICE,period,0);
double m1=indicators.sma(insturment.EURUSD,Period.TEN_MIN,OfferSide.BID,IIndicators.AppliedPrice.MEDIAN_PRICE,period,1);

It's easy to change from MQ4 to JFOREX.
But I canot find these function ,I read the sample,it used as the follow(It's very difficut to undserstand):
Object[] indicatorResult = indicators.calculateIndicator(selectedInstrument, Period.TEN_MINS, new OfferSide[] {OfferSide.BID},
"SMA", new IIndicators.AppliedPrice[] {IIndicators.AppliedPrice.CLOSE}, new Object[] {30}, 0);
double m0 = (Double) indicatorResult[0];
indicatorResult = indicators.calculateIndicator(selectedInstrument, Period.TEN_MINS, new OfferSide[] {OfferSide.BID},
"SMA", new IIndicators.AppliedPrice[] {IIndicators.AppliedPrice.CLOSE}, new Object[] {30}, 1);
double m1 = (Double) indicatorResult[0];


 
 Post subject: Re: How to use use MACD RSI KDJ EMA function as MQ4? Post rating: 0   New post Posted: Thu 27 Dec, 2018, 15:55 
User avatar

User rating:
Joined: Fri 31 Aug, 2007, 09:17
Posts: 6139
Question was moved to a more suitable subforum.
https://www.dukascopy.com/swiss/english/forex/jforex/forum/viewtopic.php?f=65&t=56874


 

Jump to:  

  © 1998-2024 Dukascopy® Bank SA
On-line Currency forex trading with Swiss Forex Broker - ECN Forex Brokerage,
Managed Forex Accounts, introducing forex brokers, Currency Forex Data Feed and News
Currency Forex Trading Platform provided on-line by Dukascopy.com