Downticks and Upticks indicator?

Post Reply
K-Lander
Trader
Posts: 35
Joined: Thu Nov 17, 2011 9:03 pm
Location: Buenos Aires, Argentina

Downticks and Upticks indicator?

Post by K-Lander »

Hello all,
Does anyone know about/has an indicator showing the number of upticks and downticks (just to be clear, the number of ticks in a bar that pushed the price up or down, respectively (Upticks + Downticks = iVolume)). I would need an indi that allows me to use the number of upticks and downticks within a robot.

Thanks a lot...

K-Lander
User avatar
mobthehop
Trader
Posts: 362
Joined: Wed Nov 16, 2011 12:16 am

Re: Downticks and Upticks indicator?

Post by mobthehop »

See whether this does what you are looking for....

Mop
You do not have the required permissions to view the files attached to this post.
K-Lander
Trader
Posts: 35
Joined: Thu Nov 17, 2011 9:03 pm
Location: Buenos Aires, Argentina

Re: Downticks and Upticks indicator?

Post by K-Lander »

mobthehop wrote:See whether this does what you are looking for....

Mop
Hi Mob,
Yes it does. It is exactly what I was looking for. I have modified it a bit to make it send the two variables (Up and Down ticks) to GlobalVariables, so I can use them separately, but it seems to be doing the job (too basic coding skills, mine, couldn´t think of any other way to extract the data).

Thanks for taking the time. Have a great day,

K
User avatar
mobthehop
Trader
Posts: 362
Joined: Wed Nov 16, 2011 12:16 am

Re: Downticks and Upticks indicator?

Post by mobthehop »

Hi K-Lander - great....

The code is actually pretty simple and the two values are in buffer 0 and 1 - it shouldn't be a big issue to bring this calculation in-house to the EA....

Drop me a PM if you like me to have a look at it...

Mop
Post Reply

Return to “Coders Hangout”