Reply To: thestrat

Optuma Forums Optuma Scripting thestrat Reply To: thestrat

#65079
Darren
  • Topics: 66
  • Replies: 633
  • Posts: 699

Hi Marc,

The high 3 bars ago would be HIGH()[2] not HIGH()[3]. You could also use HIGH(2) to get the same result, but don’t put a 0 in the parentheses if using square brackets.

For inside bars we have a BarTypes() function that will automatically find them, so BARTYPES(DEFAULT=Inside)[1] can be used to find when yesterday was an inside bar.

As for the horizontals, they can be drawn using a Show Plot, so to plot the month/week high use HIGH() and click on the text to change the Timeframe to Month or Week:

Capture

To only plot the current month high use LAST(HIGH(Month(PERIODAMOUNT=1)))

To only plot the previous month’s high: LAST(HIGH(Month(PERIODAMOUNT=1))[1])

Hope that helps!

Pin It on Pinterest