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.

IBar constructor
 Post subject: IBar constructor Post rating: 0   New post Posted: Wed 24 May, 2017, 14:11 

User rating: 3
Joined: Mon 05 Nov, 2012, 11:56
Posts: 80
Location: Germany,
Hello,

I need to extend the latest CustomCandle indicator but it works only with IBar objects. I got my own algo calculated OHLC values but I cannot find any way to cast the OHLC array value into one IBar object. Is there any way to get something like this:

IBar bar = new IBar( "array of my OHLC values" );
??

Thanks


 
 Post subject: Re: IBar constructor Post rating: 0   New post Posted: Thu 25 May, 2017, 07:50 
User avatar

User rating:
Joined: Fri 31 Aug, 2007, 09:17
Posts: 6139
In this case creating instance of IBar is up to the indicator itself. That is done by crating a class that implements IBar interface.
class Bar implements IBar {...


 

Jump to:  

cron
  © 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