rectangle drawn when price is ranging... not based on certain time????

 

Im trying to make a custom indicator that will draw a rectangle when ihighest-ilowest of the last "n" bars is less then "r". I have tried altering other custom indicator thats draw rectangles based on session times, and have also read about custom indicators in the mlq4 book but still i have had no success.... Can anyone help me with this please???

 
krui09 : still i have had no success.... Can anyone help me with this please???
  1. There are no mind readers here. We have no idea what you did nor what your idea of success is.
  2. You have only three choices: Search for it, learn to code it, or pay someone. We're not going to code it FOR you. We are willing to HELP you when you post your attempt (using SRC) and the nature of your problem.