WebPermission request in my indicator
Created at 19 Nov 2016, 12:45
CT
WebPermission request in my indicator
19 Nov 2016, 12:45
Hello
I'm trying to implement an indicator which downloads the data from my web service using JSON calls. But when I'm performing the calls in my code I'm getting the following error:
"Request for the permission of type 'System.Net.WebPermission, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed."
Is there any way how I can request and obtain this permission? In regular .NET I'd do this thru
<trust level="Full" />
But how it can be done in cAlgo?
whis.gg
19 Nov 2016, 14:01
Hi, you need set access rights in the indicator attribute. See the sample below.
@whis.gg