Jump to content

⤴️-Paid Ad- Check advertising disclaimer here. Add your banner here.🔥

Recommended Posts

Posted
Hi.

I created a flag and want to add a license.

use the machine id

They know some tutorial on how to do this?

 

thanks

 

It really depends on what you are trying to do. If you are trying to do some sort of server validation, that is going to be a lot more involved, but here is something to get you started if it is hard coding machine ID's

 

private bool ValidMachine = false;
protected override void OnStartUp()
{
   ValidMachine = false;
   if (NinjaTrader.Cbi.License.MachineID == "MACHINEIDGOESHERE")
       ValidMachine = true;
}

 

Here's another idea on hard coding a list of valid machine IDs: http://m.ninjatrader.com/support/forum/showthread.php?p=277780

Posted
the only HARD method to Protect actually .net code is move all Licensgin and validation to X86 dll externally the problme is EXPENSIVE you need hire a coder that build it for you
Posted
It really depends on what you are trying to do. If you are trying to do some sort of server validation, that is going to be a lot more involved, but here is something to get you started if it is hard coding machine ID's

 

private bool ValidMachine = false;
protected override void OnStartUp()
{
   ValidMachine = false;
   if (NinjaTrader.Cbi.License.MachineID == "MACHINEIDGOESHERE")
       ValidMachine = true;
}

 

Here's another idea on hard coding a list of valid machine IDs: http://m.ninjatrader.com/support/forum/showthread.php?p=277780

 

simply put this code in the indicator?

because I have tried and I could not achieve it.

 

Thank you

Posted
thank you very much, no matter it easy.

should paste this code into the formula of any indicator?

From already thank you very much

 

You should be able to use that code in any of the indicators you have developed. Again, extremely easy to bypass, so it will be virtually useless if you are distributing your indicator to anyone other than yourself.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

⤴️-Paid Ad- Check advertising disclaimer here. Add your banner here.🔥

×
×
  • Create New...