gbzenobi / CSharp-NT8-OrderFlowKit

Hi I'm Gabriel Zenobi, this is a toolkit that I developed for investment funds, banks and traders of all kinds.
191 stars 89 forks source link

POI - POC Lines #4

Closed Ki2zer0 closed 2 years ago

Ki2zer0 commented 2 years ago

Hi gbzenobi !

Thank you very much for your open-source kit !

Can you help me to access the POI & POC Lines - values (a series for public proberties) in realtime, to use that info for a NT8 strategy ?

great job & THX !

gbzenobi commented 2 years ago

Hello, its all in the code... you can view it and modify has you want. POC = Point of control. POI = Point of imbalance(a concept that i created for represent the most low contracts volume or null in some cases)

Ki2zer0 commented 2 years ago

Yes, i know the concept of POC, so i want to test your new POI in a strat to learn 🥇

I cant find any public proberty in your orderflow class for the POI[0], so i have to create a new POI-series - or do i miss something ?

I grab the Realtime-Indicator-values in strats mostly in the NT8 "OnMarketData" method, something like:

if (_OrderFlow.POI.IsValidDataPoint(0)) {POI0 = _OrderFlow.POI[0];}

But i cant find that POI value proberty in your code -

please excuse my obtuseness, i know its easy but i think i miss something here -

THX

gbzenobi commented 2 years ago

If you look "OrderFlow.cs" there is a class called WyckoffOrderFlow, you will see that is private... so you dont have acces to that prop. BUT if you look at the start of the line 683 you will find:

                    // !- POI lines
                    if(this.showPOISLines){
                        beg_maxClusterVec.Y = CHART_SCALE.GetYByValue(currentBar.MinClusterPrice);
                        end_maxClusterVec.Y = CHART_SCALE.GetYByValue(prevBar.MinClusterPrice);

                        myDrawLine(ref beg_maxClusterVec, ref end_maxClusterVec,
                            colorPOILines, POILinesOpacity,
                            POILines_strokeWidth, POILines_strokeStyle);
                    }

So, beg_maxClusterVec and end_maxClusterVec are the values that you are looking for. You can dump it into the console or modify the class for make it public.

Ki2zer0 commented 2 years ago

i saw these Lines, but wasnt sure - :-)

THX very much and have a nice day !