Any rookie question, so as not to clutter up the forum. Professionals, don't pass by. Nowhere without you - 6. - page 217
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
Trying to call Alert to check, nothing comes out. The thing is that my indicator has not changed for the last three bars. I set it up to cut off false movements.
For example, when I see growth it goes up, but if the next movements occur within the specified filter it does not change and moves strictly horizontally. Nebhodhimosti before the indicator flat, compare the last two values and determine the trend. If you want I can send you the code.
I have shown you how to find the nearest extremum of an indicator line in an EA. Make nBars equal to Bars or just replace nBars with Bars
Many parameters now come out when any value is called:a,b or c.
The code of the indicator:
Nah... You'd better show me what you're doing in your EA. How do you take the data from your inductor?
Nothing much, trying to Alert and see the nearest high there)
Load the indicator on the daily, three days with no change, that must be the problemA?
for (i=2; i<Bars; i++) {
double a=iCustom(NULL, 0, "EMAF",0,0,i+1);
double b=iCustom(NULL, 0, "EMAF",0,0,i);
double c=iCustom(NULL, 0, "EMAF",0,0,i-1);
if ((a-b)*(b-c)<0) {
if (b<c) {
;// Found bottom
}
if (b>c) {
Alert ("b=",b) // Found bottom
}
}
}
Nothing much, trying to Alert and see the nearest high there)
Load the indicator on the daily, three days with no change, that must be the problemA?
for (i=2; i<Bars; i++) {
double a=iCustom(NULL, 0, "EMAF",0,0,i+1);
double b=iCustom(NULL, 0, "EMAF",0,0,i);
double c=iCustom(NULL, 0, "EMAF",0,0,i-1);
if ((a-b)*(b-c)<0) {
if (b<c) {
;//Find the bottom
}
if (b>c) {
Alert ("b=",b)// Found peg
}
}
}
That can't be the problem. We have done the loop before Bars. After the alert, write break;
.
The indicator shows the line as I need it. The calculation of the indicator is based on three conditions, which correspond to the current situation.
After break; one message appears. But, the value doesn't match the indicator, maybe there's something wrong with the indicator itself?
The indicator shows the line as I need it. The indicator is calculated based on three conditions that correspond to the current situation.
Instead of Alert("b=",b); Type:
Instead of Alert("b=",b); Write:
I can't, I've tried it in different ways. The values are clearly not appropriate,
Yes and time in all values "Bar time=2010.11.04 00:00". Calling through the script.
Most likely the problem is with the indicator: the value is obtained from
which is obtained from three different conditions corresponding to the current time.
When I call the current EURUSD value everything is OK: 1.3717, what cannot be said about the highs.
Folks, could you please tell me the code, the code that showed the balance that was at the beginning of the month...
yes there is a piece of paper with a pen =))