Advertisement
retesere20

sample-block-tos-x3r34

Jul 5th, 2020
106
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.05 KB | None | 0 0
  1.  
  2. def plot_X_H = if isnan(plot_Y_H) then z else
  3. if bn<=1 then z
  4. else if !isNan(plot_X_H[1]) then plot_X_H[1]
  5. else if (isTargetPeriod and !isNan(plot_K_H)) and
  6. (
  7. (
  8. //if (isNan(plot_Y_H), yes, plot_K_H != plot_Y_H)
  9. HH_BLOCKS
  10. )
  11. and
  12. (
  13. //if (isNan(plot_Y_L), yes, plot_K_H != plot_Y_L)
  14. HL_BLOCKS
  15. )
  16. )
  17. then plot_K_H
  18. else
  19. plot_X_H[1];
  20. plot plot_Xh= plot_X_H; plot_Xh.SetDefaultColor(GlobalColor("LinesColor"));
  21.  
  22.  
  23.  
  24.  
  25. def plot_X_L = if isnan(plot_Y_L) then z else
  26. if bn<=1 then z
  27. else if !isNan(plot_X_L[1]) then plot_X_L[1]
  28. else if (isTargetPeriod and !isNan(plot_K_L)) and
  29. (
  30. (
  31. //if (isNan(plot_Y_L), yes, plot_K_L != plot_Y_L)
  32. LL_BLOCKS
  33. )
  34. and
  35. (
  36. //if (isNan(plot_Y_H), yes, plot_K_L != plot_Y_H)
  37. // and
  38. //if (isNan(plot_X_H), yes, plot_K_L != plot_X_H)
  39. LH_BLOCKS
  40. )
  41. )
  42. then plot_K_L
  43. else
  44. plot_X_L[1];
  45. plot plot_Xl= plot_X_L; plot_Xl.SetDefaultColor(GlobalColor("LinesColor"));
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement