How to script indicator values between “0-5”

Optuma Forums Optuma Scripting How to script indicator values between “0-5”

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • #63803
    Prudhvi Reddy
    • Topics: 15
    • Replies: 6
    • Posts: 21

    Hi Mathew/Team,

    Can you please assist on the below. having few queries, I’m trying to script the below idea for backtesting but unable to put the Valid script.

    1) I want to script criteria when “RSI Indicator Turns Up between Values 45 to 50“, Per below I’m able to put only 1 value. How can I put this in the script, please?
    2) Please assist, how to create a script for Bollinger Band? The candle should close Higher B.B and Entry if the Next candle cross/moves High of the previous candle(which is 1st candle closed above Higher B.B.)

    • Topics: 5
    • Replies: 631
    • Posts: 636


    If you have not already done so please be sure to review and complete the free scripting courses here before attempting to build your own scripts.

    For the RSI criteria you can use the following:

    This will only show results where the RSI turns up while it is within a value of 45 – 50.

    For Bollinger bands I am not 100% sure on the settings you are using, or if the current candles needs to Close higher than the high of the previous candle or the close? I’ve added a sample script below with comments on each line is doing, you can adjust it if need be.

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

Pin It on Pinterest