|
|
How to protect my indicator, expert advisor, system tester?
Last post 02-06-2012, 23:08 by wabbit. 16 replies.
-
06-22-2010, 5:17 |
-
oem7110
-
-
-
Joined on 12-30-2005
-
-
Posts 61
-
-
|
How to protect my indicator, expert advisor, system tester?
I get 2 PCs installed all my customized system to allow friends to use it, but I would like to protect all my customized systems, and make sure noone can copy or backup all systems within Metastock.
Does anyone have any suggestions on how to do it in Metastock?
Thanks in advance for any suggestions
Eric
|
|
-
06-22-2010, 5:31 |
-
06-22-2010, 8:29 |
-
oem7110
-
-
-
Joined on 12-30-2005
-
-
Posts 61
-
-
|
Re: How to protect my indicator, expert advisor, system tester?
Do you have any suggestions on how to set the expired date on each indicator with password protected? so I can manage the expired date, and no need to care anyone taking any copy of it at all.
Do you have any suggestions on how to add code to set the expired date for indicator, expert advisor, and system tester?
Thanks in advance for any suggestions
Eric
|
|
-
06-22-2010, 8:48 |
-
wabbit
-
-

-
Joined on 10-28-2004
-
Perth, Western Australia
-
Posts 2,990
-
-
|
Re: How to protect my indicator, expert advisor, system tester?
There is no (reliable) method in MS that delivers the required method of protection. As has been mentioned before -- if you are that worried about protecting your work, then don't distribute it at all. If you must distribute it, then bundle the core components as a dll and use DRM software to limit its use. wabbit
Please update your thread status: FREE Equis Formula Primer : http://forum.equis.com/files/19673/download.aspxTo post code, *code* your code */code*To post links, [URL] URL goes here [/URL]For custom MetaStock and DLL programming : http://www.wabbit.com.auContact via SkyPE
|
|
-
06-22-2010, 9:53 |
-
oem7110
-
-
-
Joined on 12-30-2005
-
-
Posts 61
-
-
|
Re: How to protect my indicator, expert advisor, system tester?
I would like to set the expired date on 1 Jan 2011, if the last day of any chart is larger than this expired day, then return false, else true.
I am not looking for a perfect way to protect indicator, but a simply way, which should be good enough, do you have any suggestions on how to code this if-statement in Metastock?
Thanks in advance for any suggestions
Eric
|
|
-
06-22-2010, 10:21 |
-
06-22-2010, 10:39 |
-
oem7110
-
-
-
Joined on 12-30-2005
-
-
Posts 61
-
-
|
Re: How to protect my indicator, expert advisor, system tester?
LastValue(DayOfMonth())=22;
LastValue(Month())=6;
LastValue(Year())=2010;
I can determine day, month, year separately, but I get no idea on how to combine them to compare whether it is larger than 1-Jan-2011 or not?
Could you please give me any suggestions on how to code this if-statement?
Thank you very much for any suggestions
Eric
|
|
-
06-22-2010, 18:40 |
-
wabbit
-
-

-
Joined on 10-28-2004
-
Perth, Western Australia
-
Posts 2,990
-
-
|
Re: How to protect my indicator, expert advisor, system tester?
Forum.dll has a date latch in it which can have some issues sometimes (I asked ages ago if anyone wanted it fixed) but the functionality is easily achieved in msfl: |
dd:=1; mm:=1; yy:=2011;
date:=year()>yy or (year()=yy and (month()>mm or month()=mm and dayofmonth()>=dd));
if(lastvalue(date),{then system has expired}, {else OK}); |
This is so easy to get around, I wouldn't be basing any critical systems on this very mediocre "security". wabbit
Please update your thread status: FREE Equis Formula Primer : http://forum.equis.com/files/19673/download.aspxTo post code, *code* your code */code*To post links, [URL] URL goes here [/URL]For custom MetaStock and DLL programming : http://www.wabbit.com.auContact via SkyPE
|
|
-
06-22-2010, 19:27 |
-
oem7110
-
-
-
Joined on 12-30-2005
-
-
Posts 61
-
-
|
Re: How to protect my indicator, expert advisor, system tester?
I think it will be OK for advance user to get around for historical data, when Metastock feeds with real-time data, can user be able to change the date for using it? but I think the date for real-time date is retrieved from server side, so user is not able to use it on real-time trading. What do you think about my idea for preventing user using this expired indicator on real-time trading?
Do you have any suggestions?
Thank you very much for any suggestions
Eric
|
|
-
06-22-2010, 19:54 |
-
wabbit
-
-

-
Joined on 10-28-2004
-
Perth, Western Australia
-
Posts 2,990
-
-
|
Re: How to protect my indicator, expert advisor, system tester?
Even with the RT data stream, I believe there is a setting to replace the data provider date/time stamp with the local system timestamp, so easily defeating your "protection"? The only way to be properly secure is not to distribute the code, otherwise, as already mentioned many times before, employ some sort of third-party DRM module. wabbit
Please update your thread status: FREE Equis Formula Primer : http://forum.equis.com/files/19673/download.aspxTo post code, *code* your code */code*To post links, [URL] URL goes here [/URL]For custom MetaStock and DLL programming : http://www.wabbit.com.auContact via SkyPE
|
|
-
06-22-2010, 20:03 |
-
oem7110
-
-
-
Joined on 12-30-2005
-
-
Posts 61
-
-
|
Re: How to protect my indicator, expert advisor, system tester?
My strategy is mediocre for security, which will be fine, I would like to add another mediocre strategy for protection, do you have any idea? my idea is mediocre + mediocre ... = advance strategy. My purpose is to prevent mediocre user to use it after the expired date, not the advance user. Within my local area, most users are not educated on computer setting.
Do you have any suggestions?
Thanks in advance for any suggestions
Eric
|
|
-
06-22-2010, 20:28 |
-
06-22-2010, 21:52 |
-
oem7110
-
-
-
Joined on 12-30-2005
-
-
Posts 61
-
-
|
Re: How to protect my indicator, expert advisor, system tester?
Could you please give me any suggestions on how to apply DRM?
Thanks in advance for any suggestions
Eric
|
|
-
02-06-2012, 6:20 |
-
nishant
-
-
-
Joined on 03-09-2007
-
-
Posts 28
-
-
|
Re: How to protect my indicator, expert advisor, system tester?
wabbit:|
dd:=1; mm:=1; yy:=2011;
date:=year()>yy or (year()=yy and (month()>mm or month()=mm and dayofmonth()>=dd));
if(lastvalue(date),{then system has expired}, {else OK}); |
This topic is certainly long closed...
@Wabbit: I wish to know where to apply the code that you have suggested?.. Is it alongwith the EAs & Indicators builder section or somewhere else?.. because i just tried to put the code along with my EA but cursor is coming to "Expired}" section with error saying "Price Array or function expected"...
|
|
-
02-06-2012, 14:18 |
-
wabbit
-
-

-
Joined on 10-28-2004
-
Perth, Western Australia
-
Posts 2,990
-
-
|
Re: How to protect my indicator, expert advisor, system tester?
In the If() statement i have provided comments to show where users can add their own functionality. The use of curly braces as comments is widely discussed in the MS User Manual.
wabbit
Please update your thread status: FREE Equis Formula Primer : http://forum.equis.com/files/19673/download.aspxTo post code, *code* your code */code*To post links, [URL] URL goes here [/URL]For custom MetaStock and DLL programming : http://www.wabbit.com.auContact via SkyPE
|
|
-
02-06-2012, 22:52 |
-
nishant
-
-
-
Joined on 03-09-2007
-
-
Posts 28
-
-
|
Re: How to protect my indicator, expert advisor, system tester?
Hi Scott.. After going through the MS manual as suggested, i managed to get few concepts cleared regarding the use of curly brackets and a bit of IF Function. But am still too much confused and failing to understand on how to apply expiry setting code to the EAs. Also in the manual, i encountered one more function namely, "Writeif" which plots the text and not the value. The EA bears graphic in the nature of Buy/Sell arrow. I dont want arrows to be displayed after the set date. And so I'm unable to form an opinion on exactly what needs to be done - to use [If] or [Writeif]? Please bail me out of this.
Given the EA content below, how to incorporate the code that you mentioned so that the graphic doesn't appear after the expiry date being set.
H<=Ref(H,-3) AND L>=Ref(L,-3) AND Ref(H,-1)<=Ref(H,-3) AND Ref(L,-1)>=Ref(L,-3) AND Ref(H,-2)<=Ref(H,-3) AND Ref(L,-2)>=Ref(L,-3)
|
|
-
02-06-2012, 23:08 |
-
wabbit
-
-

-
Joined on 10-28-2004
-
Perth, Western Australia
-
Posts 2,990
-
-
|
Re: How to protect my indicator, expert advisor, system tester?
|
dd:=1; mm:=1; yy:=2011;
expired:=year()>yy or (year()=yy and (month()>mm or month()=mm and dayofmonth()>=dd));
trigger:=H=Ref(L,-3) AND
Ref(H,-1)=Ref(L,-3) AND
Ref(H,-2)=Ref(L,-3);
{plot} if(expired,0,trigger);
|
Remember though; this provides very little security and is exceptionally easy to bypass. If you don't want your stuff hacked, then don't distribute it! wabbit
Please update your thread status: FREE Equis Formula Primer : http://forum.equis.com/files/19673/download.aspxTo post code, *code* your code */code*To post links, [URL] URL goes here [/URL]For custom MetaStock and DLL programming : http://www.wabbit.com.auContact via SkyPE
|
|
|
|