Hello Alex,
I hope you will help me out in this code
The code below is for Arms Index(indicator) for TS 2Ki , when I tried to insert this indicator to the chart it give me error.
" Arms Index(TRIN) is missing data2, pl setup your chart data"
{************************************************* ******************
Description : This Indicator plots Arms Index or Trading Index (TRIN)
Provided By : Omega Research, Inc. (c) Copyright 1999
************************************************** ******************}
Inputs: AdvIssues(Close of Data1), AdvVolume(Volume of Data1), DecIssues(Close of Data1), DecVolume(Volume of Data2), AvgLength(4), OverBought(.7), OverSold(1.25);
Plot1(ArmsIndex(AdvIssues, AdvVolume, DecIssues, DecVolume), "Arms Index");
Plot2(Average(Plot1, AvgLength), "AI Avg");
Plot3(OverBought, "OBought");
Plot4(OverSold, "OSold");
{Alert Criteria}
If Plot1 > Plot3 Then
Alert("Arms Index is in overbought territory")
Else
If Plot1 < Plot3 Then
Alert("Arms Index is in oversold territory");
{Expert Commentary}
#BeginCmtry
Commentary(ExpertTrin(Plot1, Plot2, Plot3, Plot4));
#End;
I hope you will help me out in this code
The code below is for Arms Index(indicator) for TS 2Ki , when I tried to insert this indicator to the chart it give me error.
" Arms Index(TRIN) is missing data2, pl setup your chart data"
{************************************************* ******************
Description : This Indicator plots Arms Index or Trading Index (TRIN)
Provided By : Omega Research, Inc. (c) Copyright 1999
************************************************** ******************}
Inputs: AdvIssues(Close of Data1), AdvVolume(Volume of Data1), DecIssues(Close of Data1), DecVolume(Volume of Data2), AvgLength(4), OverBought(.7), OverSold(1.25);
Plot1(ArmsIndex(AdvIssues, AdvVolume, DecIssues, DecVolume), "Arms Index");
Plot2(Average(Plot1, AvgLength), "AI Avg");
Plot3(OverBought, "OBought");
Plot4(OverSold, "OSold");
{Alert Criteria}
If Plot1 > Plot3 Then
Alert("Arms Index is in overbought territory")
Else
If Plot1 < Plot3 Then
Alert("Arms Index is in oversold territory");
{Expert Commentary}
#BeginCmtry
Commentary(ExpertTrin(Plot1, Plot2, Plot3, Plot4));
#End;
Comment