Dukascopy
 
 
Wiki JStore Search Login

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.

help please with ind...
 Post subject: help please with ind... Post rating: 0   New post Posted: Thu 26 Jan, 2012, 14:03 

User rating: 0
Joined: Thu 03 Nov, 2011, 21:46
Posts: 68
Location: Russian Federation,
hello support!

please help :
I see this ind. viewtopic.php?f=6&t=42243

Object[] outputsCurrentPrev = indicators.calculateIndicator(currentInstrument, Period.ONE_MIN, new OfferSide[]{OfferSide.BID}, "FXMT", new IIndicators.AppliedPrice[]{IIndicators.AppliedPrice.CLOSE}, new Object[]{20,38}, 1);
System.out.println("outputsCurrentPrev " + ((double[])outputsCurrentPrev[0])[0] + ((double[])outputsCurrentPrev[0])[1]);

how I can know: if last color was green. And the current red?

if ((double[])outputsCurrentPrev[0])[1] == 1 green ?

if ((double[])outputsCurrentPrev[0])[1] == 0 red ?

Please explain how correctly to have values?

thank you


 
 Post subject: Re: help please with ind... Post rating: 0   New post Posted: Fri 27 Jan, 2012, 13:30 
User avatar

User rating:
Joined: Fri 31 Aug, 2007, 09:17
Posts: 6139
please refer to the following topic:
viewtopic.php?f=65&t=43670
In particular, check the downloads on the last post of the first page:
Myind2.java [10.75 KiB]
MyIndStrategy.java [2.87 KiB]


 

Jump to:  

  © 1998-2025 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