Optuma Forums › Optuma Scripting › Two Inside bar Script › Reply To: Two Inside bar Script
July 23, 2019 at 8:40 pm
#54117
- Topics: 70
- Replies: 788
- Posts: 858
Hi Jaime,
Use the BARTYPES() function to automatically find inside bars:
https://help.optuma.com/kb/faq.php?id=992
So your script would be as follows, where [1] is the previous bar:
1 2 3 4 |
Sig = BARTYPES().Inside; Sig and Sig[1] |
Second consecutive inside bar highlighted using the Show Bar: