Reply To: Script Help: Close above Ichimoku cloud

Optuma Forums Optuma Scripting Script Help: Close above Ichimoku cloud Reply To: Script Help: Close above Ichimoku cloud

#68059
Matthew
  • Topics: 5
  • Replies: 608
  • Posts: 613

Hi,

The Ichimoku Cloud plots past the last bar.  The script is referencing the last value of the tool, which in your screenshot the Close is below, causing the criteria to fail.

To achieve the result you are after you need to lock the Ichimoku Clouds function to the bars, so it does not go into the future.

The best way to do that is using the BARINDEX() function as per the following…

Once done, the expected results are returned.

Pin It on Pinterest