|
Attention! Read the forum rules carefully before posting a topic.
Try to find an answer in Wiki before asking a question. Submit programming questions in this forum only. Off topics are strictly forbidden.
Any topics which do not satisfy these rules will be deleted.
MT4 function to Jforex |
[wjwcdcj]
|
Post subject: MT4 function to Jforex |
Post rating: 0
|
Posted: Tue 13 Oct, 2009, 06:00
|
|
User rating: 0
Joined: Tue 13 Oct, 2009, 05:13 Posts: 4
|
I am transfer MT code to Jforex java code: MT code: double x = iHigh(null,PERIOD_M15,1)-iLow(null,PERIOD_M15,1); which function in Jforex? the follow is right? double x = indicators.ceil(HuoBi,Period.FIFTEEN_MINS,OfferSide.BID,IIndicators.AppliedPrice.HIGH,1)) -indicators.floor(HuoBi,Period.FIFTEEN_MINS,OfferSide.BID,IIndicators.AppliedPrice.LOW,1));
|
|
|
|
 |
API Support
|
Post subject: Re: MT4 function to Jforex |
Post rating: 0
|
Posted: Tue 13 Oct, 2009, 09:22
|
|
User rating: ∞
Joined: Fri 31 Aug, 2007, 09:17 Posts: 6139
|
Hi, We suppose that parameter "HuoBi" is of type Instrument and parameter "indicators" is of type IIndicators. Yes, it looks right.
|
|
|
|
 |
[wjwcdcj]
|
Post subject: Re: MT4 function to Jforex |
Post rating: 0
|
Posted: Wed 14 Oct, 2009, 14:40
|
|
User rating: 0
Joined: Tue 13 Oct, 2009, 05:13 Posts: 4
|
I test this two function,it return 1.0 or 2.0,not High or Low value this function doesn't work which indicator I should use? indicator.max?
|
|
|
|
 |
API Support
|
Post subject: Re: MT4 function to Jforex |
Post rating: 0
|
Posted: Wed 14 Oct, 2009, 15:32
|
|
User rating: ∞
Joined: Fri 31 Aug, 2007, 09:17 Posts: 6139
|
|
|
|
 |
|
Pages: [
1
]
|
|
|
|
|