Advertisement
Guest User

Untitled

a guest
Jan 4th, 2013
12,815
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.26 KB | None | 0 0
  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;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement