Bar colour scripting

Optuma Forums Optuma Scripting Bar colour scripting

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #58265
    Avatar
    • Topics: 10
    • Replies: 8
    • Posts: 18

    Hello,

    I’m new here and I am not sure what is possible in Optuma scripting language. Could below be achieved with it and how difficult would it be to code?

    (only show on monthly timeframe)

    If the price is below the low of the previous year = red candles

    If the price is above the high of the previous year = green candles

    If the price is between the high and low of the previous year = grey candle

     

    (only show on weekly timeframe and below)

    If the price is below the 50sma and 20sma = red candles if the price is below the 50sma and above 20sma = grey candles

    (only show on weekly timeframe and below)

    If the price is above the 50sma and 20sma = green candles, if the price is above the 50sma and below 20sma = grey candles

    • This topic was modified 1 month, 2 weeks ago by Avatar.
    #58287
    DarrenDarren
    • Topics: 53
    • Replies: 428
    • Posts: 481

    It seems you have deleted your Optuma account, but for the benefit of others it’s quite easy, eg below the low of the previous year:

    CLOSE()<LOW(Year(PERIODAMOUNT=1))[1]

    More on custom bar colours here: https://help.optuma.com/kb/faq.php?id=648

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.

Pin It on Pinterest

By continuing to use the site, you agree to the use of cookies. more information

The cookie settings on this website are set to "allow cookies" to give you the best browsing experience possible. If you continue to use this website without changing your cookie settings or you click "Accept" below then you are consenting to this.

Close