Hi,
Can any one help me with how to write a code for the following logic.
1. I want a indicator which oscillates between 1 to -1.
2. "1" should be the hhv of all the bars in the stock.
3. the period for the range 1 to -1 should be controlled by a parameter (default 365, range from 50 to 1000). it is like getting full sin wave for 365 days.
Please let me know,
Thank you,
Hema.
Can any one help me with how to write a code for the following logic.
1. I want a indicator which oscillates between 1 to -1.
2. "1" should be the hhv of all the bars in the stock.
3. the period for the range 1 to -1 should be controlled by a parameter (default 365, range from 50 to 1000). it is like getting full sin wave for 365 days.
Please let me know,
Thank you,
Hema.