I got 2 extra timeframes inside this indicator, a Daily and 4 Hours
protected override void OnBarUpdate()
{
if ( CurrentBars[0] < ( t3period + 2) || CurrentBars[1] < ( t3period + 2) || CurrentBars[2] < ( t3period + 2) ) return;
{
double TOpen=T3(Opens[1], t3period, 3,0.7 )[0];
double TClose=T3(Closes[1], t3period, 3,0.7 )[0];
double DTOpen=T3(Opens[2], t3period, 3,0.7 )[0];
double DTClose=T3(Closes[2], t3period, 3,0.7 )[0];
H4T3Open.Set(TOpen);
H4T3Close.Set(TClose);
DT3Open.Set(DTOpen);
DT3Close.Set(DTClose);
DailyTrend.Set(1);
H4Trend.Set(2);
{
if ( DT3Open[0] > DT3Close[0] )
{
PlotColors[4][0]= Color.Red;
}
if ( DT3Open[0] < DT3Close[0] )
{
PlotColors[4][0]= Color.Blue;
}
if ( H4T3Open[0] > H4T3Close[0] )
{
PlotColors[5][0]= Color.Red;
}
if ( H4T3Open[0] < H4T3Close[0] )
{
PlotColors[5][0]= Color.Blue;
}
}
}
if ( CurrentBars[0] < ( maPeriod + 2) ) return;
MiddleMA.Set( WWMA( maPeriod)[0]);
the WWMA is supposed to plot on the default time-frame, but its looking really bad so far lol
Help please
Thanks!
Comment