Indicator on tick basis

 

Dear community,

I would like to create a RSI indicator on tick basis rather than bars.


Since e.g. "IndicatorCounted()" counts only bars and there is no "Bid()" or "Ask()" (only "close()" etc.). Do you think it is possible to create a RSI on tick basis?


Of course, I can use an array to count Bids, but how can I simulate the "IndicatorCounted()" on tick level?


Would be nice if you could help me with this!

 
look for an indicator called MarketProfile, maybe it will solve your problem?
 
If I can help you with this indicator.....
Files:
ticks_1.mq4  5 kb
 
Mav123 wrote >>

Dear community,

I would like to create a RSI indicator on tick basis rather than bars.


Since e.g. "IndicatorCounted()" counts only bars and there is no "Bid()" or "Ask()" (only "close()" etc.). Do you think it is possible to create a RSI on tick basis?


Of course, I can use an array to count Bids, but how can I simulate the "IndicatorCounted()" on tick level?


Would be nice if you could help me with this!

I'm pretty sure the RSI by definition is calculated on a tick basis. The fact that the end of the RSI line (at Time[0]) moves with each new tick shows as much.

Look at the formula: http://www.metaquotes.net/techanalysis/indicators/relative_strength_index

 

ticks data indicator:

https://www.mql5.com/en/code

then you can use below formula to calculate RSI.

RSI = 100-(100/(1+U/D))

Where:
U — is the average number of positive price changes;
D — is the average number of negative price changes.

 

Thank you all very much for your help!


I think I got a picture and your posts help a lot!

Reason: