and was trying to plot market profile, but getting confused with the process. Using QS language it was done, but using C#, there is a function:
MarketProfile_Vol()
how do I use it?
QS Response ===============
Hi Ghanshyam,
%u200B
You cannot access this function directly. You need to compile QS code within C#
Something like this:
VectorD res = cFunctions.CompileFormula("a = function();").GetVectorDouble("a");
=======================
My question:
OK, so in this
function() is MarketProfile_Vol()
I am still confused as your blog needs some more details so that we can actually make use of it. It is a very good functionality of QS but some more clarity is required. I would appreciate it if you could help in this regard.
And in the case of the real-time version, in place of TA.Month(), do we need some other time frame?
As a follow-up to my above response, for Intraday charts I had to use "close" instead of "volume" because it was plotting just one bar and therefore it was not serving the purpose. Therefore, I would say that for me it is working on "End of the Day (EoD)" version of QS, but on Intraday it is not working if I use the following command:
There was a problem with volume data coming from Yahoo, when I switched over to Interactive Brokers, it is showing as expected for real-time version of QS.
Trading financial instruments, including foreign exchange on margin, carries a high level of risk and is not suitable for all investors. The high degree of leverage can work against you as well as for you. Before deciding to invest in financial instruments or foreign exchange you should carefully consider your investment objectives, level of experience, and risk appetite. The possibility exists that you could sustain a loss of some or all of your initial investment and therefore you should not invest money that you cannot afford to lose. You should be aware of all the risks associated with trading and seek advice from an independent financial advisor if you have any doubts.