I'm wanting to get the moving average from a 15min chart and a 60 min chart and display on the 5 min chart in the same manner so I don't need to change charts to see
I have added spaces so they will appear bellow each other
+ "\n"
+ "\n\n"
I'm just not sure how to call on the data for my WMA's
if (WMA1[0] > WMA1[1]) //How to Add Data Series from 15 Minute Chart here?
if (WMA1[0] > WMA1[1]) //How to Add Data Series from 60 Minute Chart here?
thank you in advance
My logic
else if (State == State.Configure)
{
// Add Data Series from 15 Minute Chart
AddDataSeries(BarsPeriodType.Minute,15, "None", false);
// Add Data Series from 60 Minute Chart
AddDataSeries(BarsPeriodType.Minute,60, "None", false);
}
else if (State == State.DataLoaded)
{
WMA1 = WMA(Close, 21);
}
}
protected override void OnBarUpdate()
{
//Add your custom indicator logic here.
if (BarsInProgress != 0)
return;
if (CurrentBars[0] < 1)
return;
if (WMA1[0] > WMA1[1]) //Add Data Series from 60 Minute Chart here?
{
Draw.TextFixed(this, "MADirectionIndicator", TextLine1 + "\n\n", DrawTextPosition, FontColor1, fontStyle, BackgroundColor3, BackgroundColor3, BackgroundColorOpacity);
}
if (WMA1[0] > WMA1[1]) //Add Data Series from 15 Minute Chart
{
Draw.TextFixed(this, "MADirectionIndicator", TextLine1 + "\n", DrawTextPosition, FontColor1, fontStyle, BackgroundColor3, BackgroundColor3, BackgroundColorOpacity);
}
if (WMA1[0] > WMA1[1]) //This is the 5 Minute
{
Draw.TextFixed(this, "MADirectionIndicator", TextLine", DrawTextPosition, FontColor1, fontStyle, BackgroundColor3, BackgroundColor3, BackgroundColorOpacity);
}
Comment