Adding a score or tracker to an Indicator

 

Just wondering if anyone knows how to add a score or tracker to keep track of how many shooting stars or hammers have appeared. I tried the following in the FOR LOOP but none seems to work.


1) counter=counter+1

2)counter=counter+oneinterger

3)counter=counter++

for(int i=1;i<limit;i++)
     {
      double diff= Close[i]-Close[1];
      if(diff>eight && Close[i]>Close[1]) 
        {

        
        Comment("Chart Pattern Has appeard.POINTS: " + counter);
       counter=counter++;
      }

}
     

Really appreciate all the advice and guidance
 
Simone Gill:

Just wondering if anyone knows how to add a score or tracker to keep track of how many shooting stars or hammers have appeared. I tried the following in the FOR LOOP but none seems to work.


1) counter=counter+1

2)counter=counter+oneinterger

3)counter=counter++


Really appreciate all the advice and guidance

According to your code and your helplessness because its not working I assume you don't know much about coding.

Unfortunately nobody will teach you here coding, but there are articles and literature for you:

https://www.mql5.com/en/forum/227893  // New to forex trading
https://www.mql5.com/de/articles/496  // Quickstart for newbies
https://www.mql5.com/en/forum/212020  // Where Do I start from?
https://www.mql5.com/en/forum/214904  // Help for beginners

Beside that I can give you one advice: Search first!

There is practically nothing that has not been programmed for MQ4/5 yet! So search first!
Its easier and the result has far fewer faults than a do-it-yourself solution - generally speaking!



New to forex trading
New to forex trading
  • 2018.02.18
  • www.mql5.com
Hello everyone I am new to forex trading I just wanted to know where you guys learned and also how long does it take for someone to get the hang of...