Anyone out there please HELP!!!!!
I'm Trying to Program an indicator, uses Multitime frame. gives me potential entry and exit signals. No apparent syntax errors, but when I apply it to my Chart, it does not work. However, If I Apply it in one time frame only, it does work but gives me unwanted signals. I realized that I did not need to use BarsArray[0] but I did any ways. The Script is long, because it has several triggers, this one is only and example. when in one time frame only, Changing only 1 BarArray from [0] to [1], renders the entire indicator useless. opened the output window and does not send any message.
protectedoverridevoid OnBarUpdate()
{
if ( CrossAbove(RSI(BarsArray[1],14,3),30,3)
&& Rising(MACD(BarsArray[1],12,26,9).Avg))
{ if (CrossAbove(RSI(BarsArray[0],14,3),30,5))
{ if (Close[0]> Close[1]
&& Close[0]>= Open[1])
{
Entry.Set(Low[0]-1* TickSize);
isitBull=false;
}
}
}
Comment