OK, seems no one knows how to convert it to QS formula.
Anyways,
LLV(period) function gives only lowest value within given past period, how to get "Number of bars 'passed' since lowest value?"
Is there any inbuilt function for this in QS?
What is equivalent of following in QS taken from http://www.amibroker.com/library/detail.php?id=306 ? :
------------------------------------
URPV=DRPV=0;
i=EndValue(BLH); // What is equivalent to this function in QS?
j=EndValue(BBC);
do
{
// What is equivalent of "IIF" function in QS formula?
URPV = IIf(Ref(Close,i*-1)>Ref(Close,(i+1)*-1),Ref(Volume,(i*-1))*Ref(Close,(i*-1))-Ref(Close,(i+1)*-1),URPV);
DRPV = IIf(Ref(Close,i*-1)<Ref(Close,(i+1)*-1),Ref(Volume,(i*-1))*Ref(Close,(i+1)*-1)-Ref(Close,(i*-1)),DRPV);
i++;
} while (i<j); // How to loop like this in QS formula?
----------------------------
If QS doesn't already have any such equivalent function then kindly do post C# equivalent code.
Why is this thread not getting any response? Quantshare you there?
Let me know if the information provided is not understandable or is incomplete or is not implementable!
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.