Hi,
I am trying to plot Volume profile. Something similar to the image in below link =>
https://miro.medium.com/max/3600/0*4MfFQOAjzY5TOP2x
I thought of two options available in SyncChart to achive this in Winform using c#.
Thanks,
Amit
Hi Yuvaraj,
Thank you for the code. I followed as you suggested and created a sample small project with a set of real data. Attached the project solution for your reference. If you execute the project, you can see below issues with it -
Not sure what's wrong with it. Request you to please check and help me fixing the issue.
NOTE: To execute click on the show button first and then Scroll Right button to scroll on newer data and scroll left to scroll old days data.
Thanks,
Amitabha
Hi Yuvaraj ,
Thank you for the response. Regarding the "
The Volume profile location issue
" , please find the details as below -
If you observe the sample data that gets loaded in function Load_Data() ,you will see that after the Candles Are loaded with real life data for Open / High / Low / Close / Volume, the Volume profiles are loaded for 4 months (Here Also the data is accurate and based on real life data).
**NOTE: Please set the Display_Count = 100 in the code before running the application to get the full view of 3 months for better understanding and getting an image same as attached.
193054 [As you can see in the
Load_Data() function] And Maximum Price Level is 6784.85 which has a accumulated volume of 250081 within the same one month time frame. Same for other price levels as well.
Now while plotting the Volume profile The Horizontal Bar At
6415
should be placed at Main Chart's Y Axis value of
6415
And similarly the Upper boundary of the volume profile should be placed at
6784.85
of Main Chart's Y Axis value. Also the Extent to which each of the Volume Bars will go on the right should be in proportion of the volume at that price level [ which is expected since the profile is added to an inner chart which I believe will scale separately in accordance with the Volume at each price level ]. However that is not happening as you could see and mentioned also . Maybe some small miss at my end in assigning some parameters of the inner chart Or some issue that may require a fix at your end. Attached an image showing the location of the volume profile.
2. Month 2 -
StartDate = new DateTime(2021, 5, 01)
EndDate = new DateTime(2021, 05, 31);
Minimum Price level And Corresponding volume at that Prive level =6400 / 208730
Maximum Price level And Corresponding volume at that Prive level =7086.3 / 179569
The Volume profile for this time Zone should start at
Minimum Price level
6400
And End At
7086.3
Of the Main Chart Control's Y Value [As that plots the price in Y Axis]
Same for Other months as well. Please let me know if you need more clarification. Attached an image below showing the expected location of the profile placement . The expected location is shown in a rectangular Box of Purple color and added remarks over the chart.
Thanks,
Amitabha
Thanks Yuvaraj .
It helped.
Amit