document.write('
Data hosted with ♥ by Pastebin.com - Download Raw - See Original
  1. // IBS indicator and optimize threshold parameters
  2. IBS = (close-low) / (high-low);
  3. optimize("thl",0,0.3,0.05);
  4. optimize("thh",0.7,1,0.05);
  5.  
  6. // Buy rules
  7. Rule1 = IBS < thl;
  8. // Short rules
  9. Rule2 = IBS > thh;
  10.  
  11. buy = Rule1;
  12. sell=close;
  13. short= Rule2;
  14. cover=close;
');