HGRV
Hello & regards...
The HGRV(hypergeometric random variable) if you have a box/Jar with 18 marbles; 11 green(up-candles, ie open<close) & 7 red(down-candles; open>close).
If you then select a sample of 4 marbles at random, how much should one expect to be green(in sample)?
This is the expected value for the HGRV, in words the size of sample multiplied by the # of green marbles, divided by the total # of marbles
or E[X] = 4*11/18, the expected value for the HGRV, would like to plot/draw this
Would like to see it run on FXCM, real time, can anyone help with a code.
one way would be to count the candles using open & close for each i, count the cases for open>close & open<close this would be the total marbles(ignore cases for open=close)
Then allow a choice for sample size, for example on the 1 hr chart, if the sample is 4, the expected value would indicate how much up candles to expect(wont necessarly be a reality) from a sample of 4...
Thanks(the updates 2,3,4,5,6...8hr charts, very nice, quite happy for)
Tanutamen