I want to develop a simple indicator with two pieces of conditions
1. Price close with in 10% of high. I know how to write code for this condition
2. Price stays with in the rectangle I draw on the chart
I dont know how to write code for the second condition. I want to draw a rectangle box every morning (which means it will be different/new one every morning but it will be rectangle) and check price stay with in the box I draw . I want draw same rectangle box in other instruments as well.
Can you please help me the code?
Comment