Delete
double Buffer1[];
double Buffer2[];
anf than delte all what comilier will say.
Hello eevviill thanks for the answer, but you have to help me because I can not solve. I entered the code but I can not figure out where to enter "delete".
Thanks for everything and for your kindness, greetings, Massimo.
//Indicator Buffer 3 if(iDeMarker(NULL, PERIOD_CURRENT, 4, i) == 0 && iDeMarker(NULL, PERIOD_CURRENT, 4, 1+i) != 0 ) { Buffer3[i] = Low[i] - iATR(NULL, PERIOD_CURRENT, 14, i); Buffer1[1]=0; Buffer2[1]=0; } else { Buffer3[i] = 0; }
?
Attach code in file.
eevviill:
?
Attach code in file.
Eevviill Hello, I tried but it gives me error. Where I'm wrong. I'm sorry!! Thank you!!
//Indicator Buffer 3 if(iDeMarker(NULL, PERIOD_CURRENT, 4, i) == 0 //DeMarker is equal to fixed value && iDeMarker(NULL, PERIOD_CURRENT, 4, 1+i) != 0 //DeMarker is not equal to fixed value ) { Buffer3[i] = Low[i] - iATR(NULL, PERIOD_CURRENT, 14, i); //Set indicator value at Candlestick Low - Average True Range delete double Buffer1[1]; double Buffer2[1]; } else { Buffer3[i] = 0; }
omissamf: . Buffer1 and buffer2 are pre-alert, ... erase the dots of the pre-alert
Just don't assign to them
/*
//Indicator Buffer 1
if(iDeMarker(NULL, PERIOD_CURRENT, 3, i) == 0 //DeMarker is equal to fixed value
&& iDeMarker(NULL, PERIOD_CURRENT, 3, 1+i) != 0 //DeMarker is not equal to fixed value
)
{
Buffer1[i] = Low[i] - iATR(NULL, PERIOD_CURRENT, 14, i); //Set indicator value at Candlestick Low - Average True Range
}
else
{
Buffer1[i] = 0;
}
//Indicator Buffer 2
if(iDeMarker(NULL, PERIOD_CURRENT, 3, i) == 1 //DeMarker is equal to fixed value
&& iDeMarker(NULL, PERIOD_CURRENT, 3, 1+i) != 1 //DeMarker is not equal to fixed value
)
{
Buffer2[i] = High[i] + iATR(NULL, PERIOD_CURRENT, 14, i); //Set indicator value at Candlestick High + Average True Range
}
else
{
Buffer2[i] = 0;
}
*/
//Indicator Buffer 3
:
//Indicator Buffer 1
if(iDeMarker(NULL, PERIOD_CURRENT, 3, i) == 0 //DeMarker is equal to fixed value
&& iDeMarker(NULL, PERIOD_CURRENT, 3, 1+i) != 0 //DeMarker is not equal to fixed value
)
{
Buffer1[i] = Low[i] - iATR(NULL, PERIOD_CURRENT, 14, i); //Set indicator value at Candlestick Low - Average True Range
}
else
{
Buffer1[i] = 0;
}
//Indicator Buffer 2
if(iDeMarker(NULL, PERIOD_CURRENT, 3, i) == 1 //DeMarker is equal to fixed value
&& iDeMarker(NULL, PERIOD_CURRENT, 3, 1+i) != 1 //DeMarker is not equal to fixed value
)
{
Buffer2[i] = High[i] + iATR(NULL, PERIOD_CURRENT, 14, i); //Set indicator value at Candlestick High + Average True Range
}
else
{
Buffer2[i] = 0;
}
*/
//Indicator Buffer 3
:
omissamf:
Eevviill Hello, I tried but it gives me error. Where I'm wrong. I'm sorry!! Thank you!!
And do not use this
if(Digits() == 5 || Digits() == 3) { myPoint *= 10; }
There are many pairs that have 1Point=4,6... digits
Just set to inputs
enum dig_koefs { _1=1,_10=10,_100=100, }; extern dig_koefs point_koef=_10; ... myPoint = Point*point_koef;
Files:
lfuk45qi.mq4
4 kb
Hi guys and thanks for the answers, but I still do not understand. Forgive me !!!
In the attached photo, we see the result indicator. If I did not declare the buffer half as suggest by WHRoeder, the graph does not appear on pre-alert.
I would rather that when you see the green or red arrow, yellow dots of pre-alert disappear, leaving only the arrows of Alert.
I would like every time you see an arrow, the buffer1 / 2 results were deleted from the chart.
Thanks for everything, Massimo.
In the attached photo, we see the result indicator. If I did not declare the buffer half as suggest by WHRoeder, the graph does not appear on pre-alert.
I would rather that when you see the green or red arrow, yellow dots of pre-alert disappear, leaving only the arrows of Alert.
I would like every time you see an arrow, the buffer1 / 2 results were deleted from the chart.
Thanks for everything, Massimo.
Hi guys, I have tried to solve in this world, but it does not work. If the arrow disappear, appear again all the yellow dots.
Thanks for your cooperation, Massimo.
Thanks for your cooperation, Massimo.
//Indicator Buffer 3 if(iDeMarker(NULL,PERIOD_CURRENT,4,i)==0 //DeMarker is equal to fixed value && iDeMarker(NULL,PERIOD_CURRENT,4,1+i)!=0 //DeMarker is not equal to fixed value ) { Buffer3[i]=Low[i]-iATR(NULL,PERIOD_CURRENT,14,i); //Set indicator value at Candlestick Low - Average True Range SetIndexStyle(0,DRAW_ARROW,EMPTY,1,clrNONE); //SetIndexStyle(1,DRAW_ARROW,EMPTY,1,clrNONE); } else { Buffer3[i]=0; SetIndexStyle(0,DRAW_ARROW,EMPTY,1,clrYellow); //SetIndexStyle(1,DRAW_ARROW,EMPTY,1,clrYellow);
I have atached ready file. Is it ok?
eevviill:
I have atached ready file. Is it ok?
Hello eevviill. In the file you sent me, you have taken away the buffer 1/2 which are the pre-alert.I have atached ready file. Is it ok?
Instead, the pre alert should appear and must disappear when the alert appears.
The pre alert are the yellow dots. When I see the yellow dot I prepare for entry and I wait to appear the arrow. If I see the arrow , I enter otherwise expect another occasion. When the red or green arrow appear, I would like the yellow dots were deleted, leaving the cleanest look.
Thanks for everything, Massimo.
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 guys. I have a problem I can not solve. I created this code where I have a pre-alert. Buffer1 and buffer2 are pre-alert, while the Buffer 3 and Buffer 4 are
the real alert.
I wish I could erase the dots of the pre-alert all the times that of Alert arrow appears. I made several attempts but did not succeed. Can you help me?
Thank you all, Massimo