Reply To: Show Bar to get only the last occurrence

Optuma Forums Optuma Scripting Show Bar to get only the last occurrence Reply To: Show Bar to get only the last occurrence

#66021
Matthew
  • Topics: 5
  • Replies: 422
  • Posts: 427

Hi,

The LAST() function won’t work in this case, as the last value the script produced is zero (unless the cross was on the very last bar).

Instead, we can use a trick of counting the number of times a MA cross has occurred and set the script to show only the last time:

Here is how it looks on the chart:

Ex1

2 users thanked author for this post.

Pin It on Pinterest