where to add the protection code in the indicator, when I put it at start, the following error message appears: oninit' - function already defined and has body

 
Carlos Eduardo:

<Deleted >}

The code that you posted is de-compiled so has been removed.

Do not post de-compiled code as you can be banned.

 

Ask the owner of the source code to give it to you or have him fix it for you.

De-compiled code is stolen code. Either you are a thief, a fence, or the receiver of stolen (intellectual) property. Either way we will not be an accomplice after the fact to that theft.
          See also forum.MQL4.com/41864#490649

If you post decompiled code again, you will likely be banned.

Don't tell us you found it on the 'net: if someone stole your bank details and uploaded them on to the internet, is it OK for everyone to use them because "someone uploaded it, I don't know why I can't use that"?