Jump to content

Welcome to the new Traders Laboratory! Please bear with us as we finish the migration over the next few days. If you find any issues, want to leave feedback, get in touch with us, or offer suggestions please post to the Support forum here.

  • Welcome Guests

    Welcome. You are currently viewing the forum as a guest which does not give you access to all the great features at Traders Laboratory such as interacting with members, access to all forums, downloading attachments, and eligibility to win free giveaways. Registration is fast, simple and absolutely free. Create a FREE Traders Laboratory account here.

daedalus

Locking an Indicator to UserID in MC?

Recommended Posts

In TS I would use:

 

If CustomerID = 123456 then begin
Plot1(Close,"Close");
End; 

 

When I use the same code to my CustomerID in MC (I put the code after my inputs and variables) it kills the indicator?

 

It still stays on the chart and says its on, but nothing appears. I comment out the code and it comes back.

 

Any ideas?

Share this post


Link to post
Share on other sites
In TS I would use:

If CustomerID = 123456 then begin
Plot1(Close,"Close");
End; 

When I use the same code to my CustomerID in MC (I put the code after my inputs and variables) it kills the indicator?

It still stays on the chart and says its on, but nothing appears. I comment out the code and it comes back.

Any ideas?

 

 

I am not sure if I understand what you mean.

 

 

 

In your code... it is trying to do the following:

 

If the CONDITION is correct,

then DO this....

 

else {the following is assumed}

 

If the CONDITION is incorrect,

DON't DO ANYTHING

 

Is this what you had in mind?

Share this post


Link to post
Share on other sites

Yea, thats what i'm trying to do... IE if the customerid matches the one in the code, make the indicator work, else, don't work. Trying to stop redistribution of indicators in the future.

Share this post


Link to post
Share on other sites
You are freaking brilliant.

If you're ever in Omaha i'm buying you dinner.

 

 

If I hop on the plane now, I think I can make it to dinner for tomorrow night.

 

;-)

Share this post


Link to post
Share on other sites

you can add more securities/limitations into the code:

 

 

e.g.

 

Password

 

input:

Password(12345);

 

If password = 12345 then

begin

 

 

Time Limit

 

If computerdatetime < 1081231 then

begin

 

 

1081231 equals to 2009 December 31

 

i.e. the code will expire and stop working after December 31, 2009.

Edited by Tams

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.