fxshrat
Private Group
Posts: 566
Received Likes: 211
|
Post by fxshrat on Apr 29, 2016 13:30:35 GMT
is that the number of bars is restricted to the ones per each new day or a set custom intra-day period (i.e. 08:00 to 18:00 etc) instead of the whole visible chart range (or entire data history) like in the sample codes. So the histogram shows up in the interval of each day. Does that not make it fixed interval? What I rather asked is, if there any way to dynamically select a region or range on chart and have the Histogram ploted. So,it can be any range , may be by selecting those vertical separator lines. What do you mean by interval? Chart interval is equal to time frame/tick interval/range bar/volume bar. So it is a different thing. Your question was It shows up for every time frame! So it is not fixed to a selected time frame. That's what I have replied to. If you mean 'period of time' then it is different meaning from chart time frame. If so then yes it can be done also, i.e. by using BeginValue(..) & EndValue(...) instead of FirstVisibleValue() & LastVisibleValue()
|
|
fxshrat
Private Group
Posts: 566
Received Likes: 211
|
Post by fxshrat on Apr 29, 2016 13:32:36 GMT
Actually it can be done with those codes already by using range markers and then clicking zoom to range.
|
|
|
Post by wealthwise on Apr 29, 2016 13:41:12 GMT
Actually it can be done with those codes already by using range markers and then clicking zoom to range. 1) So by range markers you meant "BeginValue(..) & EndValue(...) instead of FirstVisibleValue() & LastVisibleValue()" Right? Like: 2) Can you please explain the "and then clicking zoom to range." ?? I am not able to understand that bit. (Not a good coder here. )
|
|
fxshrat
Private Group
Posts: 566
Received Likes: 211
|
Post by fxshrat on Apr 30, 2016 10:15:30 GMT
Actually it can be done with those codes already by using range markers and then clicking zoom to range. 1) So by range markers you meant "BeginValue(..) & EndValue(...) instead of FirstVisibleValue() & LastVisibleValue()" Right? Like: Yes, just like I have said. Then you double click on left side of chart and right side of chart to select your range. BeginValue and Endvalue are tied to range markers that your place on the chart. If no range is selected then Beginvalue is first value of array and endvalue is last value of array. Just look ínto the AB manual. It's all there. 2) Can you please explain the "and then clicking zoom to range." ?? I am not able to understand that bit. (Not a good coder here. ) I'm not referring to code but to View - Zoom - Range after range markers are set. Again take a look into the AB help.
|
|
fxshrat
Private Group
Posts: 566
Received Likes: 211
|
Post by fxshrat on Apr 30, 2016 14:39:26 GMT
|
|
fxshrat
Private Group
Posts: 566
Received Likes: 211
|
Post by fxshrat on May 1, 2016 11:34:12 GMT
I just realized yesterday that I was using relative volume in my code the whole time and that in such case each summed up lengths of the two filtered histograms will not be correct compared to the non filtered histogram. That's why I deleted my example. If finding the time then I will post a code with absolute setting set to true.
|
|
|
Post by wealthwise on May 1, 2016 13:58:38 GMT
I just realized yesterday that I was using relative volume in my code the whole time and that in such case each summed up lengths of the two filtered histograms will not be correct compared to the non filtered histogram. That's why I deleted my example. If finding the time then I will post a code with absolute setting set to true. Eagerly waiting for your reply. Really appreciate your efforts.
|
|
fxshrat
Private Group
Posts: 566
Received Likes: 211
|
Post by fxshrat on May 3, 2016 17:54:15 GMT
Have not look at it yet. In the meantime I have managed to create intra-day profile with value area (VA) and VPOC using new matrix function PriceVolDistribution(). Still needs some testing because since that function is beta I have recognized some possible issues where that function influences plot i.e. depending on whether you place printf or _TraceF before or after that function. Then if you zoom or scroll plot creates weird plots at some scroll/zoom levels if those functions are placed before it. Or another case is you add MxGetSize or not (i.e. plot becomes proper if you add MxGetSize despite of the fact it is actually not required for the calculations and for the code to work. So in my case it has been added only to get proper non-weird plot). EDIT: I have started a thread in the issues section amibrokerforum.proboards.com/thread/167/pricevoldistribution-amibroker-6-13-beta?page=1&scrollTo=640
|
|
fxshrat
Private Group
Posts: 566
Received Likes: 211
|
Post by fxshrat on Jul 3, 2016 16:21:02 GMT
FYI, just in case someone would come up with the idea of prematurely claiming (in fact someone has actually claimed it already) that "You can't have equal bin size in AmiBroker" using PriceVolDistribution()... I'm telling you.... Yes, you can! In the example below the bin size is determined by high and low of the intra-day period divided by x*Ticksize so each histogram bar has the same size which leads to variable number of bins. "Oh, I see now.". Yep, that's right.
|
|
fxshrat
Private Group
Posts: 566
Received Likes: 211
|
Post by fxshrat on Jul 6, 2016 9:55:28 GMT
Here is a another inspiration of a combined Volume Profile consisting of 1. - intra-day period profiles 2. - profile of visible chart area being placed on the left (or alternatively being placed on the right) proving that you can do similar profiles (and more) as in other software.
|
|