Something I overlooked:
Code: Select all
void CalculateCurrencySlopeStrength(int tf, int shift)
{
ArrayInitialize(currencyValues, 0.0);
int i;
rest of procedure...
Paul
Code: Select all
void CalculateCurrencySlopeStrength(int tf, int shift)
{
ArrayInitialize(currencyValues, 0.0);
int i;
rest of procedure...
Gary,garyfritz wrote:For comparison / verification purposes I looked at the current values from Baluda's strength/slope calculations (from the EA Comment()) vs. the values from my currency strength indicator. I scaled my values to cover the same range as his.
I am in my usual state of utter cluelessness here. All I have done is addBaluda wrote:Steve,
Something I overlooked:
The currencyValues array needs to be initialized on each pass.Code: Select all
void CalculateCurrencySlopeStrength(int tf, int shift) { ArrayInitialize(currencyValues, 0.0); int i; rest of procedure...
Paul
Good point! And in fact several NZD pairs & a few others were missing. But even with all 28 pairs we still have some differences:Baluda wrote:Keep in mind that SlopeStrength only considers the symbols the user provided in the 'symbolsToWeigh' setting. The
You're good.SteveHopwood wrote: I am in my usual state of utter cluelessness here. All I have done is add
ArrayInitialize(currencyValues, 0.0);
Hi,SteveHopwood wrote:I have updated post 1 with the version that does not try to send trades even though the markets are closed.
Can't wait to see how this puppy woofs.![]()
Currency Slope Strength shows this. Find it in the manual tools thread.forexripper wrote:My 2cents here:
Can we have the slope indi instead of using average for a currency (not pair) use the relative increase and decrease against each (say in last 5 days etc.) so we know if e.g. JPY overall is increasing or decreasing and that may hint us on retracements / pull backs etc. and accordingly we can use Shelley and other gr8 EAs on this forum.
Thanks