Update: after printing the value of the SMASlope variable in the log, I got the value 2,147,483,647; that is the greatest value that can be stored in a signed 32bits variable!
phy:
Your iCustom() call does not seem to include the input parameter for the indicator.
Your iCustom() call does not seem to include the input parameter for the indicator.
And what could that be? I dont think my indicator expects any kind of parameter...
Edit: Nm, I got it now! By specifying NULL, my the indicator used no parameter at all, instead of using the default params... THX Phy!
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
Hello, here is a simple EA I wrote working along a custom indicator I also wrote.
EA
And the indicator:
The problem is that the EA always goes long... As if the indicator always returned a value above 0, which isn't the case if I look at the line drawn on the chart by the indicator. Does anyone know what's going on?