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.

indicators.<indicatorname> call in ontick , onbar differs ?
 Post subject: indicators.<indicatorname> call in ontick , onbar differs ? Post rating: 0   New post Posted: Tue 20 Apr, 2010, 22:17 

User rating: -
i have a strategy which uses moving average indicator.

How it's different if i call indicator from onTick method , if i call onBar method ?

The reason i am asking is if i use historic tester with period 1min , onTick gets called once every one min , also onBar will get called once in one min. But if i have exactly same strategy written in onTick and onBar then they should not return two different result .. right ?

Does indicators internally use tickdata to calculate results ?

Please help me in getting my doubt clear.

Thanks and Regards,
Avinash


 
 Post subject: Re: indicators.<indicatorname> call in ontick , onbar differs ? Post rating: 0   New post Posted: Wed 21 Apr, 2010, 09:39 
User avatar

User rating:
Joined: Fri 31 Aug, 2007, 09:17
Posts: 6139
Hello Avinash,
Quote:
The reason i am asking is if i use historic tester with period 1min , onTick gets called once every one min , also onBar will get called once in one min. But if i have exactly same strategy written in onTick and onBar then they should not return two different result .. right ?
This is true only till you are using the Historical Tester(HT). Because in HT ticks are generated from candles. (consider this https://www.dukascopy.com/swiss/english/forex/jforex/forum/viewtopic.php?f=5&t=4025&hilit=OHLC&sid=09fd87de6ce0003adf087999dfeab130).
Quote:
Does indicators internally use tick data to calculate results ?
No, indicators use candle data.
Here is more info on indicators https://www.dukascopy.com/swiss/english/forex/jforex/forum/viewtopic.php?f=6&t=1820&sid=09fd87de6ce0003adf087999dfeab130


 

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