Welcome to the Traders Laboratory Forums.
Coding Forum Collaborate, receive help, or discuss coding related issues.

Reply
Old 02-04-2008, 12:31 PM   #1

Join Date: Sep 2007
Posts: 6
Ignore this user

Thanks: 3
Thanked 3 Times in 1 Post

Locking Indicators

From a coding perspective, how can I use the TS customer number to lock a strategy/indicator? I am writing a stratgey that I want to control the distribution of.

Is it as simple as using an IF statement in the code?

Thanks

Trey

BTW.... Once I get it working and post it here, it will be unlocked. I just dont want my trading group using it till it is done.
BigEd is offline  
Reply With Quote
Old 02-04-2008, 01:27 PM   #2

Join Date: Feb 2007
Location: US
Posts: 314
Ignore this user

Thanks: 86
Thanked 206 Times in 89 Posts

Re: Locking Indicators

This is an eKam code


Quote:
Ask your customer to send you his customer ID (aka Account Number, or Account ID in EL). Assuming his account ID is 12345678, change all the buy/sell statements to the following:
Code:
var:  
    thisGuysAccountID("12345678"), 
    expiration(ELDate(4,15,2005)), { month, day, year } 
    stillRuns(false); 
 
stillRuns =    date < expiration  
   and lastCalcDate < expiration  
   and  currentDate < expiration  
   and (LastBarOnChart = false  
        or GetAccountID = thisGuysAccountID);
Quote:
What this does is that it will still work for back testing, but not for real time bars unless the account ID matches. In any case, your strategy will only work for bars and charts before the expiration date, and only if the PC date has not reached the expiration date.

Verify the code and export the ELD protected, and send that particular ELD to him.
Account number is under Format, Account Orders .. Account no.
thrunner is offline  
Reply With Quote
The Following User Says Thank You to thrunner For This Useful Post:
BigEd (02-04-2008)

Reply

Thread Tools
Display Modes Help Others By Rating This Thread
Help Others By Rating This Thread:


Similar Threads
Thread Thread Starter Forum Replies Last Post
Divergences: Indicators? newtrader Technical Analysis 34 03-03-2012 02:23 PM
TTM Indicators for CQG? bathrobe Coding Forum 3 01-03-2011 06:01 AM
where are all the MP indicators gone? tradewiz Market Profile 3 01-12-2008 12:21 PM
TRO Indicators for TradeStation TheRumpledOne Trading Indicators 11 08-29-2007 09:57 AM
strategies, indicators and so forth JayRemy Coding Forum 4 01-01-2007 06:09 PM

All times are GMT -4. The time now is 11:36 AM.
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
CS to VB integration by DeskLancer
©2006-2011 Traders Laboratory, All Rights Reserved.