Function that returns the number of consecutive wins

 
Hi guys!

I’m looking for a function that returns the number of consecutive profitable trades until X victories. When the number of profitable trades hits the X value, so the count is restarted.

If someone can help me... thx!!!
 

Looks like this is becoming a habit of getting code done for you for free. So in accordance with another of your posts, I am just going to quote my own words:

FMIC:

If you are not a programmer, then even if someone does give you the code, you would not know how to apply it anyway.

So, I suggest you hire someone to code your various requirements (EA, Indicator, etc.) for you at the Freelance section.

 
J_Henry: If someone can help me...
  1. You have only three choices: Search for it, learn to code it, or pay someone. We're not going to code it FOR you.
    We are willing to HELP you when you post your attempt (using SRC) and the nature of your problem.
  2. If you decide to try see Could EA Really Live By Order_History Alone? (ubzen) - MQL4 forum
Reason: