How do you protect an EA or Indior?? (A working way)
1 2

thread: How do you protect an EA or Indior?? (A working way)

  1. #1
    Garc?agr
    Guest

    How do you protect an EA or Indicator?? (A working way)

    How can you lock in a EA or indior. I saw the thread that was somewhat helpful when doing precisely what it said on Protect EA. There are always some errors like Double quotes required etc.. Someone who has done this the code here.

    I don't want anyone changing my coordinations


    Any help would be great

  2. #2
    Garc?agr
    Guest
    Silly me I didn't press the button.

  3. #3
    Member
    70
    There Are Lots of ways:

    to account using AccountNumber()
    Limit to demo using IsDemo()
    Limit to forward testing Just IsTesting()
    Utilize a Period expiration
    Place a password

  4. #4
    Garc?agr
    Guest
    1 Attachment(s) Hi.I only did that and I get an error. Can you please explain where I have to paste this?

    Here's a screenshot of my error.
    https://www.cliqforex.com/trading-sy...r-ea-free.html

  5. #5
    Member
    70
    Int ApprovedAccount = 123456;

    begin()


    if(ApprovedAccount ! = AccountNumber())
    return(0);

    //Insert code





    The above code provides no warning. It shuts off the EA. That is my way of protection.

  6. #6
    Here's another example. This is how I include my expiry period:

    PHP Code: <code><span style=?color: #000000?> <span style=?color: #0000BB?>datetimeeaExpirationTime</span><span style=?color: #007700?>;
    </span><span style=?color: #0000BB?>stringexpiredString</span><span style=?color: #007700?>=</span><span style=?color: #DD0000?>?Youareshitoutofluck?</span><span style=?color: #007700?>;


    </span><span style=?color: #0000BB?>intinit</span><span style=?color: #007700?>()

    </span><span style=?color: #0000BB?>eaExpirationTime</span><span style=?color: #007700?>=</span><span style=?color: #0000BB?>StrToTime</span><span style=?color: #007700?>(</span><span style=?color: #DD0000?>?2009.2.10?</span><span style=?color: #007700?>);

    return(</span><span style=?color: #0000BB?>0</span><span style=?color: #007700?>);



    </span><span style=?color: #0000BB?>intstart</span><span style=?color: #007700?>()

    </span><span style=?color: #FF8000?>//checkforEAexpiration
    </span><span style=?color: #007700?>if(</span><span style=?color: #0000BB?>IsTesting</span><span style=?color: #007700?>()==</span><span style=?color: #0000BB?>false</span><span style=?color: #007700?>)
    if(</span><span style=?color: #0000BB?>isEAExpired</span><span style=?color: #007700?>(</span><span style=?color: #0000BB?>eaExpirationTime</span><span style=?color: #007700?>)==</span><span style=?color: #0000BB?>authentic</span><span style=?color: #007700?>)
    </span><span style=?color: #0000BB?>Comment</span><span style=?color: #007700?>(</span><span style=?color: #0000BB?>expiredString</span><span style=?color: #007700?>);
    Printing(</span><span style=?color: #0000BB?>expiredString</span><span style=?color: #007700?>);
    yield(</span><span style=?color: #0000BB?>0</span><span style=?color: #007700?>);



    </span><span style=?color: #FF8000?>//nowdotherest
    </span><span style=?color: #007700?>


    </span><span style=?color: #0000BB?>boolisEAExpired</span><span style=?color: #007700?>(</span><span style=?color: #0000BB?>datetimeexpirationTime</span><span style=?color: #007700?>)

    if(</span><span style=?color: #0000BB?>TimeCurrent</span><span style=?color: #007700?>()gt;</span><span style=?color: #0000BB?>expirationTime</span><span style=?color: #007700?>)
    return(</span><span style=?color: #0000BB?>authentic</span><span style=?color: #007700?>);
    else
    return(</span><span style=?color: #0000BB?>false</span><span style=?color: #007700?>);


    </span><span style=?color: #0000BB?></span> </span> </code>

  7. #7
    Garc?agr
    Guest
    Your help is very appreciated. I am only practicing at this point and getting the hang of the stuff. I was able to use the code but when I complile I keep getting this error: end_of_program- end bracket } expected There IS a ending bracket yet I keep getting this error no matter what. This is the final section of this code you'll be able to see at the end there is a bracket... is the ideal bracket? ... //----------------------------------------------------------// // Mid Point Line // //----------------------------------------------------------// if(ObjectFind(MidPoint) ! = 0) ObjectCreate(MidPoint, OBJ_HLINE, 0, Time[0], MidPoint); ObjectSet(MidPoint, OBJPROP_COLOR, Blue); ObjectSet(MidPoint, OBJPROP_WIDTH, 2); else ObjectMove(MidPoint, 0, Time[0], MidPoint); }

  8. #8
    Member
    70
    I Visit 3 of } and Two of {

    You're Overlooking a{ somewhere

  9. #9
    Ronald you're patient and useful than I am.

  10. #10
    Member
    70
    ronald you are a lot more individual and helpful than I am.
    Hardly. I am just very good at faking it. Besides, what do you do between transactions or inside a fizzix lecture?

  •