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.

Could somebody help with the coding of an indicator ...
 Post subject: Could somebody help with the coding of an indicator ... Post rating: 0   New post Posted: Wed 10 Apr, 2013, 15:30 

User rating: 0
Joined: Mon 03 Dec, 2012, 09:55
Posts: 30
An indicator where you pass in a no. N and then within the main startIndex => endIndex loop have in a list the the last N ticks .. so for a historical bar it will be the last tick of the bar plus N-1 others and for the current active bar it will be the last tick of the bar plus N-1 others ... I want to output the no. of upticks and the no. of down ticks ... mainly I want to run it on a tickBar chart but would be good to be able to looback at any number of ticks regardless of the period of the chart ... I am struggling with this a bit!


 
 Post subject: Re: Could somebody help with the coding of an indicator ... Post rating: 0   New post Posted: Wed 10 Apr, 2013, 15:43 
User avatar

User rating:
Joined: Fri 31 Aug, 2007, 09:17
Posts: 6139
Indicators don't work with ticks, rather with 1-sec bars on tick chart. The logic would be more convenient to implement from a strategy.
See example of tick bars from chart:
https://www.dukascopy.com/wiki/#Feed_history/Tick_bars_of_chart_by_shift
See tick history examples:
https://www.dukascopy.com/wiki/#History_ticks


 

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