i want to run DARVAS BOX SYSTEM on zerodha pi expert advisors, please provide code for the same.
some details i found on internet i quoted with this question, thank you.
The rules can be explained so that modern tools like scanning software can identify trading candidates. To quantify the box, traders should look for stocks in which the difference between the high and the low price over the past four weeks is less than 10% of the stock's high during that time. As a formula, it can be written as:
Read more: http://www.investopedia.com/articles/trading/08/darvas.asp#ixzz3hdy2EewR
Follow us: @Investopedia on Twitter