Hi anyone come across a way to scan for 2 inside days in a row much appreciated here thanks all.
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:
Sig = BARTYPES().Inside; Sig and Sig[1]
Second consecutive inside bar highlighted using the Show Bar:
Hi Jamie,
The script is very simple for use with SHOWBAR on a chart:
// Double Inside Bar
Inside0 = High(0) < High(1) and LOW(0) > LOW(1);
Inside1 = High(1) < High(2) and LOW(1) > LOW(2);
Inside0 and Inside1
Cheers
Trevor