Dukascopy
 
 
Wiki JStore Search Login

My Own Indicator API
 Post subject: My Own Indicator API Post rating: 0   New post Posted: Wed 21 Aug, 2013, 10:57 

User rating: 0
Joined: Tue 18 Jun, 2013, 21:55
Posts: 14
Location: Slovakia, Nitra
Hello fellows,

I want to introduce my own Indicator API which I use to creating indicators...

Maybe you use it maybe not...

Application logic of your indicator you shouldn't write to an abstract class Indicator...

As variable to inputs you can use barInputs, doubleInputs, priceInputs...

As variable to outputs you can use doubleOutputs, intOutputs, objectOutputs...

There are some event methods like: onNewBar() - called when there is a new bar in market, onInstrumentChange(), onOfferSideChange(), onPeriodChange(), onFeedChange() - called when one of instrument, offer side or period you have changed... Note: This event methods work if the INPUT_MAIN is InputPrameterInfo.Type.BAR!

I created simple example indicator how to use the Indicator API to creating indicators ... The example indicator uses RSI indicator, ASK & BID inputs, drawOutput(), getMinMax(), ... Just for demonstrate how to use it. The indicator's output is drawn as histogram (gray bars = market is not oversold nor overbought, green bars = market is overbought, red bars = market is oversold)... You can set time period of RSI and treshold of oversold and overbought zone...

If you have some ideas to improve this API or you found a bug, please write here ...

Thanks for your attention :)...

Regards
bojno


Attachments:
ExampleIndicator.editable.java [38.66 KiB]
Downloaded 417 times
API.indicator.editable.java [30.88 KiB]
Downloaded 399 times
DISCLAIMER: Dukascopy Bank SA's waiver of responsability - Documents, data or information available on this webpage may be posted by third parties without Dukascopy Bank SA being obliged to make any control on their content. Anyone accessing this webpage and downloading or otherwise making use of any document, data or information found on this webpage shall do it on his/her own risks without any recourse against Dukascopy Bank SA in relation thereto or for any consequences arising to him/her or any third party from the use and/or reliance on any document, data or information found on this webpage.
 

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