Don't forget to update VALUESCOUNT to cover your new data values. It determines the size of the array used to store the values for all the currencies. It needs to be 82 now, unless you've added more items.dancingphil wrote:The compile errors I got from the previous post were not unexpected. Up until here I had done nothing about declaring or defining any of my M5 and M15 variables.
I have created many extern whatever-type-inputs over the years, but I have never defined anything before. But this project quickly caused me to have to so far create the following that are marked in red:
#define VALUESCOUNT 59
#define iM15Slope 60
#define iM5Slope 61
#define iM15SlopeTrend 62
#define iM5SlopeTrend 63
#define iM15SlopeAngle 64
#define iM15PrevSlope 65
#define iM5SlopeAngle 66
#define iM5PrevSlope 67
#define iM15Woh 68
#define iM15WohSlope 69
#define iM15WohAngle 70
#define iM15WohTrend 71
#define iM5Woh 72
#define iM5WohSlope 73
#define iM5WohAngle 74
#define iM5WohTrend 75
#define M15TMACross 76
#define M5TMACross 77
#define M15PrevSlope 78
#define M5PrevSlope 79
#define M15Slope 80
#define M5Slope 81
Actually, you've left a "hole" at value 59. Your added indexes should start at 60 and VALUESCOUNT would then be one more than the highest index you add (so really it would be 81).
George