Nokutek:
iCustom returns double values! Read about it in the editors reference!
Hi, I could use some advise here. I am writing my first EA here and have come across a stumbling block. I want to use data from an indicator called Slope Direction Line. Basically, I want to use whether or not the slope is up or down.
Here are the buffers and inputs:
I want to pass on whether or not the line is in a downtrend. So I am using Buffer 1 as a boolean:
The problem is that this value always returns false, no matter what the real value is. I included an alert to show the value and it's always true, even when the indicator shows an uptrend. Obviously I am interpreting something incorrectly. Any ideas? Thank you.
gooly:
iCustom returns double values! Read about it in the editors reference!
iCustom returns double values! Read about it in the editors reference!
yes
double dn1
Nokutek: The problem is that this value always returns false, ...
bool dn1 = iCustom(NULL,PERIOD_D1,"Slope Direction Line",80,30,0,1,0);Obviously I am interpreting something incorrectly. Any ideas? Thank you.
- iCustom does not return a boolean. Detailed explanation of iCustom - MQL4 forum
- The indicator has two data buffers (uptrend and downtrend.)
WHRoeder:
Thank you, appreciated. I changed it to doubles and then compared two candles to determine slope.
- iCustom does not return a boolean. Detailed explanation of iCustom - MQL4 forum
- The indicator has two data buffers (uptrend and downtrend.)
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
Hi, I could use some advise here. I am writing my first EA here and have come across a stumbling block. I want to use data from an indicator called Slope Direction Line. Basically, I want to use whether or not the slope is up or down.
Here are the buffers and inputs:
I want to pass on whether or not the line is in a downtrend. So I am using Buffer 1 as a boolean:
The problem is that this value always returns false, no matter what the real value is. I included an alert to show the value and it's always true, even when the indicator shows an uptrend. Obviously I am interpreting something incorrectly. Any ideas? Thank you.