Go Back   Traders Laboratory > Trading Resources > Trading Indicators > Coding Forum

Coding Forum Collaborate, receive help, or discuss coding related issues.

Reply
Bookmarks
del.icio.us StumbleUpon Google Digg Facebook Furl Reddit Netscape

 
LinkBack Thread Tools Display Modes Language
  #1 (permalink)  
Old 02-04-2008, 12:31 PM
BigEd BigEd is offline
Registered Trader

 
Join Date: Sep 2007
Posts: 6
Thanks: 3
Thanked 0 Times in 0 Posts
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.

Reply With Quote
  #2 (permalink)  
Old 02-04-2008, 01:27 PM
thrunner thrunner is offline
Registered Trader

 
Join Date: Feb 2007
Posts: 154
Thanks: 50
Thanked 34 Times in 17 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:
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.

Reply With Quote
The Following User Says Thank You to thrunner For This Useful Post:
BigEd (02-04-2008)
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Divergences: Indicators? newtrader Technical Analysis 30 05-01-2008 12:26 PM
TTM Indicators for CQG? bathrobe Coding Forum 2 02-04-2008 11:53 PM
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 07:16 PM.

 


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59