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 - Custom Indicator on BARs
 Post subject: Help - Custom Indicator on BARs Post rating: 0   New post Posted: Tue 14 Feb, 2012, 16:24 

User rating: 0
Joined: Tue 14 Feb, 2012, 11:24
Posts: 7
Location: Switzerland, ZH
Hallo, I am trying to implement and indicator which works on full BARs:

inputParameterInfos = new InputParameterInfo[] {new InputParameterInfo("Input Data", InputParameterInfo.Type.BAR )};


I think i've quite accomplished it, the problem is now that when the signal get's calculated at first, it uses FULL (eg. 5 minutes) BAR, then it starts to go live and at each screen update of the price graph ( which is like every 5 second), the signal gets computed, so the period is NOT 5 minutes but the graph refreshing period! :(

Is there a way to proceed with the calculation only when a NEW bar of the default active period is generated?
(like in the strategy class where "if period!=5Min" -> return )
Any hints, or reference to example indicator that gets updated only on NEW full bar would be greatly appreciated!

thank you
Pietro


 
 Post subject: Re: Help - Custom Indicator on BARs Post rating: 0   New post Posted: Wed 15 Feb, 2012, 14:45 
User avatar

User rating:
Joined: Fri 31 Aug, 2007, 09:17
Posts: 6139
Use "Recalculate on new candle only" setting in indicator parameter dialog.


 

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