This version compiles without any warnings and seems to be working.RACER-X wrote: Sun Jan 12, 2025 10:15 pm Dear Mr. Tools. I have this older custom dash indicator that was custom made for me some time ago by some close friends of mine. It won't load anymore. Can you please look at it for me?
If you can't get it going, then can you refer me to someone who might be able to help?
ish
Re: Coding Help
1722Hi!
I'm not a coder, I was looking for a simple buffers combiner indicator and found this code. But I couldn't get it to work correctly (tried several indicator buffers), I think there is some problem with the code. Can anyone help me? or can anyone recommend a ready-made indicator with similar functions?
I'm not a coder, I was looking for a simple buffers combiner indicator and found this code. But I couldn't get it to work correctly (tried several indicator buffers), I think there is some problem with the code. Can anyone help me? or can anyone recommend a ready-made indicator with similar functions?
Re: Coding Help
1723Only thing I can find is it needsJawnger wrote: Wed Jan 15, 2025 1:43 am Hi!Com.mq4
I'm not a coder, I was looking for a simple buffers combiner indicator and found this code. But I couldn't get it to work correctly (tried several indicator buffers), I think there is some problem with the code. Can anyone help me? or can anyone recommend a ready-made indicator with similar functions?
"mt2trading_library.ex4"
in your libraries folder, after that not sure.Re: Coding Help
1725hello i was trying to edit this from looking at other indicators with color change button it compiles but does not change .
i changed/added a few lines if anybody can help ?
i changed/added a few lines if anybody can help ?
Re: Coding Help
1726Hello. Not perfect code, but try...almostprofitable101 wrote: Thu Jan 16, 2025 6:02 am hello i was trying to edit this from looking at other indicators with color change button it compiles but does not change .
i changed/added a few lines if anybody can help ?
- These users thanked the author kvak for the post:
- almostprofitable101
Re: Coding Help
1727there was abit more extra to add then i thought , sometimes i get it right when i rough code looking at other indicators (usually adding alerts) ,
but i will continue trying before knowing when its too much and asking for help & thanks
- These users thanked the author almostprofitable101 for the post:
- kvak
Re: Coding Help
1728hello again i am trying to add alerts to an indicator but im getting 1 error any help please
(i added this section of code from another indicator so not sure if its correct method for alerts )
(i added this section of code from another indicator so not sure if its correct method for alerts )
Re: Coding Help
1729In the alert function, where thealmostprofitable101 wrote: Wed Jan 29, 2025 9:20 am hello again i am trying to add alerts to an indicator but im getting 1 error any help please
(i added this section of code from another indicator so not sure if its correct method for alerts )
[i]
and [i+1]
try changing it to [whichBar]
and [whichBar+1]
. Also maybe change Code: Select all
for(i=limit;i>=0;i--)
{
bufferUP[i-1]=EMPTY_VALUE; bufferDN[i-1]=EMPTY_VALUE;
if(Down[i]!=0 && ExtMapBuffer2[i]>0 && jrhi[i]!=EMPTY_VALUE && jrhi[i]!=0 && (Up[i+1]!=0 || ExtMapBuffer1[i+1]>0 || (jrlo[i+1]!=EMPTY_VALUE && jrlo[i+1]!=0)))
{
bufferUP[i-1]=Low[i-1]-0.5*iATR(_Symbol,0,5,i);
}
else if(Up[i]!=0 && ExtMapBuffer1[i]>0 && jrlo[i]!=EMPTY_VALUE && jrlo[i]!=0 && (Down[i+1]!=0 || ExtMapBuffer2[i+1]>0 || (jrhi[i+1]!=EMPTY_VALUE && jrhi[i+1]!=0)))
{
bufferDN[i-1]=High[i-1]+0.5*iATR(_Symbol,0,5,i);
}
}
Code: Select all
for(i=limit;i>=0;i--)
{
bufferUP[i]=EMPTY_VALUE; bufferDN[i]=EMPTY_VALUE;
if(Down[i]!=0 && ExtMapBuffer2[i]>0 && jrhi[i]!=EMPTY_VALUE && jrhi[i]!=0 && (Up[i+1]!=0 || ExtMapBuffer1[i+1]>0 || (jrlo[i+1]!=EMPTY_VALUE && jrlo[i+1]!=0)))
{
bufferUP[i]=Low[i]-0.5*iATR(_Symbol,0,5,i);
}
else if(Up[i]!=0 && ExtMapBuffer1[i]>0 && jrlo[i]!=EMPTY_VALUE && jrlo[i]!=0 && (Down[i+1]!=0 || ExtMapBuffer2[i+1]>0 || (jrhi[i+1]!=EMPTY_VALUE && jrhi[i+1]!=0)))
{
bufferDN[i]=High[i]+0.5*iATR(_Symbol,0,5,i);
}
}
- These users thanked the author mrtools for the post:
- almostprofitable101
Re: Coding Help
1730thanks im seeing alert pop-up, now i will adjust alert message.
but if i change that code it messes up arrow system and places the arrow on previous bar, the indy is based of 3 histos allinging/closing and placing arrow on next open bar.
but if i change that code it messes up arrow system and places the arrow on previous bar, the indy is based of 3 histos allinging/closing and placing arrow on next open bar.