Drawing a coloured Rectangle

Forums ProRealTime English forum ProBuilder support Drawing a coloured Rectangle

Viewing 10 posts - 1 through 10 (of 10 total)
  • #213438

    Hi, can anyone help me building a code for drawing a rectangle and color it or just 2 lines with colored area in between?

    Thank you in advance

    #213440

    Just made this one, can you help to Stop the last Rectangle when a new one is formed?

     

    #213460

    Add this line at the very beginning of your code:

    #213535

    Thank you

    I have 2 questions:

    1. How to limite a nombre of rectangle drawing in the past instead of having only the last?

    For example to have the last 10 rectangle only?

    2) How can i display a rectangle for example of a 15 minutes time frame in a 2 minutes chart?

     

    #213544

    1/ Must use arrays for that: store each of the coordinates of the rectangle into different variables arrays and plot them in the past from the last candle.

    (I’m looking for an example in the forum..)

    2/ use TIMEFRAME instruction to store the values from that timeframe only.

     

    #213546

    So i have to declare the time frame

    timeframe(1 hour) for example, i want to declare variables true or false for different time frame

    for example in the picture below

    #213548

    There is no way to create a condition block that embed the TIMEFRAME instruction. However there is a workaround with CALL, see complete discussion here: https://www.prorealcode.com/topic/condition-et-timeframe/

     

    #213553

    Here is a draft version of the MTF indicator:

     

    #213560

    Thanks for the feedback, so I can't change line 6 by putting in place of the 15 minutes a variable that I can change manually? for example T

    #213573

    In order to change the timeframe, change it at line 6 with any other ones, as described with the examples in the code 🙂

Viewing 10 posts - 1 through 10 (of 10 total)

Create your free account now and post your request to benefit from the help of the community
Register or Login