MQL4: tick count for each 10 last bars - how to do this using MQL syntax ? - page 2

 
WHRoeder:
Don't hijack other peoples threads.

thank u and sorry i m new to forum... i will correct it...
 

Hallo Everybody,

I like to make a counter as, once RSI>70, counter = rx, and this value remain active (I will refer it in coding/use it in operation) till the situation RSI<30 (say this = ry). And vice versa. Can any body code for me please. Thanks.

Mizan Sharif

 
WHRoeder:


hello

how i learn old tick price (i mean bid or ask value , not high,low or close) 

bar 0 (ticks counted: for example 5)    =>    1) 1.3400     2) 1.3402     3) 1.3401     4) 1.3404    5) 1.3408  
bar 1 (ticks counted: 58)
bar 2 (ticks counted: 28)

bar 3 (ticks counted: 37) 

may u help me ? 

 
If you want old tick prices you have to save them yourself as they arrive so you can access them later.
 
SDC:
If you want old tick prices you have to save them yourself as they arrive so you can access them later.


like this  const long &volume[]  

i think, i need  const double &price[]   but i cant using that

 
You need to create your own array and add each price to it as it arrives.
Reason: