protected override void OnBarUpdate()
{
if (BarsInProgress == 0)
{
if (CCI(20)[0] > 200 && CCI(BarsArray[1], 20)[0] > 200
&& CCI(BarsArray[2], 20)[0] > 200)
{
// Do something
} }
}
Also, all examples seen so far explains how to do a multiple time indicator with booleans, but what I'm looking is how to code a multiple time indicator with SMAs. Example:
if SMA(5) CrossAbove SMA(10) from a 60 Min chart;
//Do something...
Also, Does NT 6.5 supports the following?:
if SMA(5) CrossAbove SMA(10) from a 60 Min chart && CCI(BarsArray[2], 20)[0] > 200)
//Do something...
Comment