Re: Coding Help

561
Dear Mladen,

how to introduce the (general) function to the code of the enclosed indicator
to switch between all the arrows and the selected arrows visible (as in the screen)?
The function should draw only the first arrow in the sequence of the arrows with the same color.
I mean the general function - which can be used in each indicator of that kind.

I'm trying to do this using the following code:

Code: Select all

if(ArrUp[i] != EMPTY_VALUE){
                  for(k = 1; k <= Bars-1; k++){
                       if(ArrUp[i+k] != EMPTY_VALUE)
                         {ArrUpSel[i] = EMPTY_VALUE; break;}
                       if(ArrDn[i+k] != EMPTY_VALUE)
                         {ArrUpSel[i] = High[i] + ... ; break;}
                       }
                 }
      
if(ArrDn[i] != EMPTY_VALUE){
                  for(k = 1; k <= Bars-1; k++){
                       if(ArrDn[i+k] != EMPTY_VALUE)
                         {ArrDnSel[i] = EMPTY_VALUE; break;}
                       if(ArrUp[i+k] != EMPTY_VALUE)
                         {ArrDnSel[i] = Low[i] - ... ; break;}
                       }  
                 }
but it doesn't work properly, unfortunately...


Re: Coding Help

562
wojtek wrote: Sun Nov 19, 2017 3:29 am Dear Mladen,

how to introduce the (general) function to the code of the enclosed indicator
to switch between all the arrows and the selected arrows visible (as in the screen)?
The function should draw only the first arrow in the sequence of the arrows with the same color.
I mean the general function - which can be used in each indicator of that kind.

I'm trying to do this using the following code:

Code: Select all

if(ArrUp[i] != EMPTY_VALUE){
                  for(k = 1; k <= Bars-1; k++){
                       if(ArrUp[i+k] != EMPTY_VALUE)
                         {ArrUpSel[i] = EMPTY_VALUE; break;}
                       if(ArrDn[i+k] != EMPTY_VALUE)
                         {ArrUpSel[i] = High[i] + ... ; break;}
                       }
                 }
      
if(ArrDn[i] != EMPTY_VALUE){
                  for(k = 1; k <= Bars-1; k++){
                       if(ArrDn[i+k] != EMPTY_VALUE)
                         {ArrDnSel[i] = EMPTY_VALUE; break;}
                       if(ArrUp[i+k] != EMPTY_VALUE)
                         {ArrDnSel[i] = Low[i] - ... ; break;}
                       }  
                 }
but it doesn't work properly, unfortunately...
Wojtek

Try it out now

Re: Coding Help

565
mahessara wrote: Sun Nov 19, 2017 5:40 am

that indicator is different from fastsignal. anyway this one is same exactly. can you make this arrow doesnt repaint mrtools thanks
The arrows are based off of the upper/lower band breakout and some price action, being the upper and lower bands recalculate there is no way for the arrows to not recalculate.




Who is online

Users browsing this forum: Ahrefs [Bot] and 14 guests