How to draw a rectangle (BOX)?
-
Hello, I want to draw a box that has a width of a start and an end time, for example between 00:00 and 4:00. The high and low of the box must be the maximum price and the minimum reached within the aforementioned period of time.
Thanks for your help in advance
-
-
@q8carpenter Thank you very much for your help, it works perfectly

-
@q8carpenter Hello, the solution you gave me has been a great help. I have a question, would it be possible to draw the box every day without erasing the previous one? I tried but was unsuccessful.
-
@ryuzaky Why do you need to overwrite the button? Or maybe you need to modify any inner content info only?
-
@ryuzaky change selection B at the top, to no. Do not allow it to redraw, but A should be yet. To allow it to draw once per bar. That should work. If you click on the words of what A and B are, it will open adescription of the configurations
-
@tipsywisdom
I have tried all combinations of A and B and none work
-
@ryuzaky try to troubleshoot OnChart rather than OnTick
-
The way I know how is to change A: to YES and B: to NO but because that will draw a rectangle per tick, you will need to precede that block with a once per day block and set it to 04:00 which is equal to the end time. But in this case, the rectangle will draw it at the end of the time period.

-
@l-andorrà I need the box to be drawn at the same time each day.
-
@ryuzaky Then why not erasing it et the end of the day and redrawing it tomorrow?
-
@RyuZaky you do not need to drawn recangle for each day if you wanna create EA for back test unless you would create indicator
-
Hello .
I want to draw a rectangular box to specify the highest and lowest prices from 10:00 tonight to 10:00 tomorrow morningCan anyone help me?
Thankful
-
@fazelmoradi you should first observe in each candle if time candle is 10:00 , so draw shape type rectangle from candle1 to candle 13 ,before it you should get price highest and lowest by modify variable and market properties .
-
I want it to be based on candle time, from 10 pm to 10 am the next day
in one-hour candle timeThe highest and the lowest price in this rectangular box
-
I want it to be based on candle time, from 10 pm to 10 am the next day
in one-hour candle timeThe highest and the lowest price in this rectangular box
-
@fazelmoradi you should read the above answer of @oriazi
-
@fazelmoradi سلام جناب مرادی من از بچه های دوره فارکس و روبو مستر استاد سلیمانی هستم. میخوام این باکس 10:30 رو بکشم هر کاری میکنم نمیشه . شما تونستین ؟
طبق راهنمایی بالا شرط میذارم که اگه کندل یک با کندل تایم 22:30 برابر بود یه مستطیل بکشه ولی کار نمیکنه.
https://fxdreema.com/shared/55gYtDNPb -
@nasrin said in How to draw a rectangle (BOX)?:
@fazelmoradi سلام جناب مرادی من از بچه های دوره فارکس و روبو مستر استاد سلیمانی هستم. میخوام این باکس 10:30 رو بکشم هر کاری میکنم نمیشه . شما تونستین ؟
طبق راهنمایی بالا شرط میذارم که اگه کندل یک با کندل تایم 22:30 برابر بود یه مستطیل بکشه ولی کار نمیکنه.
https://fxdreema.com/shared/55gYtDNPb
این رو امتحان کنید البته بهتره استاپ و تی پی رو 30 پیپ قرار دهید وین ریت بهتر میشه -
ممنون ولی این که بالاترین و پایینترین قیمت رو نمیده
