RSI chart overlay – color questions

Forums ProRealTime English forum ProBuilder support RSI chart overlay – color questions

  • This topic has 4 replies, 2 voices, and was last updated 7 years ago by avatarAVT.
Viewing 5 posts - 1 through 5 (of 5 total)
  • #40032
    AVT

    This puts the RSI into the chart window; works on GDI and DJI (position has still a heavy thinking mistake, I will do this later). I have 2 questions with regard to user color adjustments – maybe they are related :

    1. What in the code is causing the “color adjustment” (the red mark in the picture). I am defining the RGB values separately and playing with it does not have any effect (kind of useless).
    2. I made the RGB values separately with this kind of variable: RGBred[128] (type: integer). So far so good but never underestimate what users do, I simulated a user pushing the down-arrow in the adjustment menu for the red color until (the RGB value below zero) – the whole indicator crashed out of the window with “Color parameter outside of expected rang: Red”.  Setting the color to default if the RGBred is out of limit did not work.
    3. I already tried this: simply go without all color statements and the coloured(r,g,b). This results in a “color adjustment” menu for the user but does not have any effect – just like in 1.

    Here is the code (sorry for my heavy commenting):

     

    Thanks for your help.

    #40035
    AVT

    uuppsss .. above html is missing the end pre statement, should I post the whole stuff again?

    #40036
    1. this setting is in all indicator, since you define RGB values in the code, this controller has no effect, that’s right
    2. you can try to make something like this:

    let’s imagine you have a “red” variable defining the R, set it as an external variable for the user to select the value and put this into your code:

    (not tested!)

    3. solved by the code above?

     

    1 user thanked author for this post.
    avatar AVT
    #40039
    AVT

    2. solved, testing the wrong variables: we must test the user adjustable ones with the names “RGBred, RGBgreen, RGBblue” against exeeding values, correct code should be

    never overestimate a coders code :-))

     

    #40040
    AVT

    Thanks, you were quicker than me (and shorter in code lines, too).

    Yep, this works: setting user adjustable (external) R[128] type integer plus G[128] type integer plus B[128] integer.

    Then

    There’s still this useless “color adjustment” – but I can live with that. I guess this is created by simply calling one of the builtin indicators. If I use for example RSI[9] only, I get in the user adjustment area not only the “color adjustment” but also the “price adjustment”. To avoid users playing with the price, I did already explicitly set RSI[9](close) – and got rid of the “price adjustment”.

    I will go with your suggestion, short and clean, the way it should be. Thanks a lot.

     

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

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