Need help, My Indicator 1 work but 1 doesn't
-
Hello guys,
I just try to set an alert when my indicator is above certain lever to check whether the indicators are working with fxdreema or not with the simple structure in this link https://fxdreema.com/shared/JoBgz03ad
Which one of My Indicator works just fine but the one in the link (SPMRC) doesn't.
I imported both indicator from .mq4 file and did not adjust anything aside from changing its output name.
I also attach the SPMRC indicator with this post, just in case that you guys might think it is the problem with the indicator.
Oh, actually I adjusted some codes in the indicator to clear 2 array warnings
- double SpearmanRankCorrelation(double &Ranks[], int N)
- void RankPrices(int &InitialArray[])
by putting "&" in the code as I thought that the warning might be the reason why this indicator is not working with fxdreema.
Thank you very much in advance,
Bright -
@Xeta50 You need to fill the fields for the block to create the alert:

-
Put this indicator into a comment so you can see the returned value
-
Thank you very much @l-andorrà @jstap for your help ;however, after I followed your advice (as you can see from the project in this link https://fxdreema.com/shared/u6Cl7cOsd )
which I also put the same block structure for Stochastic Oscillator and it appears that Stochastic Oscillator works fine for every functions while My Indicator (SPMRC) is not working at all.... so I assume that the problem lie with "SPMRC" indicator as I have tried another My Indicator with alert box and it worked well.
Is there any others possibility that I overlook something else or could you please try the attached "SPMRC" indicator in the above post.
Thank you very much sirs.
-
@jstap @l-andorrà I found the problem now. It is because the location of SPMRC indicator is not at the \MQL4\Indicators
It was at \MQL4\Indicators\SPMRC (the location I imported the indicator). After I moved the location of the indicator to "\MQL4\Indicators" then it's working well....
Thank you very much for your help and sorry for this beginner question.

-
Is ok, well done
-
@Xeta50 You're welcome.