Question from TS EasyLanguage newbie

Hi there, I'm in trouble ... again. This time I'm trying to make a ShowMe for a 1-bar VOLUME-divergence with a price-high.

I want a dot on the current bar if the current bar is higher (or equally high) as the previous bar, and volume is lower than (or equal to) the previous volume-value.

Something very simple like this:

Code:
If High >= High[1] AND Volume < Volume[1]
	then Plot1(High, "Vol")
	Else NoPlot(1) ;

This works on most of the bars ... but a few errors creep in ... for some reason.

In the enclosed example for Microsoft, 60-minute in September, most of the divergences are correct (the green vertical lines showing the correct ones) ... but with 2 errors (the two red vertical lines).

Can anybody help me one this one?

Many thanks from SonnyPlunger :cool
 

Attachments

Quote from SonnyPlunger:
This works on most of the bars ... but a few errors creep in ... for some reason.
That's because of a legacy issue...

in EasyLanguage, the keyword VOLUME has a different meaning than what we used to...

in EasyLanguage, VOLUME means Up Tick trades. (i.e. you are getting approx half the volume.)

If you want volume in the traditional sense, you will need to use the keyword TICKS.




Don't ask me why ticks is NOT ticks. ;-)>
 
Back
Top