Download MetaTrader 5

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

To add comments, please log in or register
Deposit to your account via WebMoney
vinoth
4
vinoth 2011.05.15 15:11  
WHRoeder:
Don't hijack other peoples threads.

thank u and sorry i m new to forum... i will correct it...
Mizan Sharif
35
Mizan Sharif 2014.05.28 07:20  

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

akose
66
akose 2014.06.21 11:26  
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 ? 

Ian Venner
2584
Ian Venner 2014.06.21 15:14  
If you want old tick prices you have to save them yourself as they arrive so you can access them later.
akose
66
akose 2014.06.21 16:09  
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

Ian Venner
2584
Ian Venner 2014.06.21 19:03  
You need to create your own array and add each price to it as it arrives.
12
To add comments, please log in or register