Difference between OnCalculate() and NewTick()

 

Hi,

 Can someone tell me what is the difference between OnCalculate() and NewTick().

OnNewTick() - used when new tick coming or new quote 

OnCalculate() - used when price changes

The explaination on both function looks like the same. still confuse on the usage (Does when price changes means new tick is coming).

Can someone assist to show the difference. 

 TQ

 
 

Rosh:
See Program Running 

hi rosh,

I think i started to understand. 

Pls confirm my understanding 

1.OnNewTick() is not based on high,low,open,close .. because the event trigger for every tick without price send as parameter.

- I can use this event to show my spread,bid,ask and etc. 

2. OnCalculate() is based full completed bar/candlestick form to specific timeframe which having high,low,open,close.

- I can use this information to make another indicator i.e calculate candlestick pattern.

TQ

 

 
kael:

Rosh:
See Program Running 

hi rosh,

I think i started to understand. 

Pls confirm my understanding 

1.OnNewTick() is not based on high,low,open,close .. because the event trigger for every tick without price send as parameter.

- I can use this event to show my spread,bid,ask and etc. 

2. OnCalculate() is based full completed bar/candlestick form to specific timeframe which having high,low,open,close.

- I can use this information to make another indicator i.e calculate candlestick pattern.

TQ

 

No. it is not quite right. OnTick() is designed only for EAs, OnCalculate() is designed for indicators.
 

Thanks.

I think now i have understand that ..

 rgds, 

 

Reason: