OBJ_RECTANGLE is anchored by time and price, not pixels
Thanks. But how to change the rectangle size? How to change it to a frame instead of solid filling?
Besides, how to create a line segment as object?
Besides, how to skip weekend with code if counting bars for the object of "rectangle"?
First decide what you want to draw
change size by moving the anchor points
If set as background is true, it will show as a frame. If false, it will have a solid fill
I sometimes use 4 trend lines instead of a rectangle
GumRai:
First decide what you want to draw
if OBJ_RECTANGLE
change size by moving the anchor points
If set as background is true, it will show as a frame. If false, it will have a solid fill
I sometimes use 4 trend lines instead of a rectangle
Thank you very much! Realized!
Don't you need to use RECTANGLE_LABEL instead ?
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
With the code below, I want to show a rectangle frame around the latest 3 bars.
Who can help tell why the code can't show the "rectangle frame"? I couldn't find the root cause.
Also attached the print log below for reference. Maybe you can copy the code below as an indicator for try too.