Advertisement
Maurizio-Ciullo

Study Ichimoku Cloud

Jun 10th, 2023
739
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.                                                  
  2.                                                   // Study Ichimoku Cloud //
  3.                                                                                                    
  4. Inputs: Standard(26), Turning(9), Delayed(52), Uscita(0), mystop(0), myprofit(0);
  5. Variables:StdLine(0), TurnLine(0), Span1(0), Span2(0);
  6. StdLine = (Highest(High, Standard) + Lowest(Low, Standard)) / 2;
  7. TurnLine = (Highest(High, Turning) + Lowest(Low, Turning)) / 2;
  8. Span1 = (StdLine + TurnLine) / 2;
  9. Span2 = (Highest(High, Delayed) + Lowest(Low, Delayed)) / 2;
  10.  
  11. plot1(StdLine, "BASE LINE");
  12. plot2(Turnline, "CONVERSION LINE");
  13. plot3(Span1, "SPAN A No 25 Offset"); // Offset 25 periods not applied
  14. plot4(Span2, "SPAN B No 25 Offset"); // Offset 25 periods not applied
  15. //plot5(Span1[25], "SPAN A Offset 25"); // Offset 25 periods already applied
  16. //plot6(Span2[25], "SPAN B Offset 25"); // Offset 25 periods already applied
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement