Topics

Forum Topics not found

Replies

Invalid
30 May 2014, 17:06

RE: RE:

Which line gives you this exception?

breakermind said:

if i have open position error gone!

if not a see this above

 

 


@Invalid

Invalid
29 May 2014, 11:42

RE: RE: RE: RE: RE: RE: RE:

You've asked for C# representation of your code. I gave it. Explain what's the problem?

 

breakermind said:

Hi,

I know that (i have google to ;] :D ) but :

I dont want fight with this "shit" again ("shit" - preg match patterns).

Thanks.

 


@Invalid

Invalid
28 May 2014, 14:49

RE: RE: RE: RE: RE:

 

var match=Regex.Match(pattern, subject);

Take a look here.

breakermind said:

Hi,

how to rewrite this in c#:

php:

$valid = preg_match("/^\[GO\]([0-9]{1,99};[A-Z]{1,6};[A-Z]{1,6};[0-9]{1,99};[0-9\,]{3,30};[0-9\,]{3,30};[0-9\,]{3,30};[0-9\,]{3,30}\|)+\[OG\]$/", $pos);

Thanks

 


@Invalid

Invalid
28 May 2014, 11:38

RE:

Express editions do not support extensions.

Supported versions are 2010, 2012, 2013

Cezary said:

Hi,

Which version of Visual Studio is supported for developing with cAlgo ?

Can I use express editions ?

 

Regards,

Cezary

 


@Invalid

Invalid
26 May 2014, 10:26

RE:

Try smth like this:

    [Robot(TimeZone = TimeZones.UTC, AccessRights = AccessRights.None)]
    public class Sample : Robot
    {
        int tradeCount = 0;

        protected override void OnTick()
        {
            tradeCount++;
            string tradeLabel = tradeCount.ToString();
            ExecuteMarketOrder(TradeType.Buy, Symbol, 10000, tradeLabel, StopLoss, TakeProfit);
        }
    }

 

curious said:

Hi

Is there any way to use dynamic Label in ExecuteMarketOrder?

I tried something like this but I am getting error message "Crashed in OnTick with NullReferenceException: Object reference not set to an instance of an object."

                tradeCount += 1;
                string tradeLabel = tradeCount.ToString();
                ExecuteMarketOrder(TradeType.Buy, Symbol, Volume, tradeLabel, StopLoss, TakeProfit);

 

 

 


@Invalid

Invalid
25 May 2014, 14:19

RE: RE: RE: RE: RE:

it's difficult to understand what's the problem without stacktrace or more details.

What is the version and edition of you VS and OS? Do you have any other extensions installed in VS?

voulgeor said:

yes this only happens to calgo projects

I am a developer and all my other projects compile just fine.

it fails on my laptop  desktop and my dedicated server also.

same error every time

Error 1 The parameter is incorrect. (Exception from HRESULT: 0x80070057 (E_INVALIDARG))  12 28 
 

Invalid said:

Does it happen only with cAlgo projects? Could you try to create C# project from VS and to build it.

By the way, does it give you any details about this exception? Usually it has some stack trace what can help to understand the reason of your problem.

 

voulgeor said:

thanks but that didn't work for me.

 

 

 


@Invalid

Invalid
22 May 2014, 17:19

RE: RE: RE:

Does it happen only with cAlgo projects? Could you try to create C# project from VS and to build it.

By the way, does it give you any details about this exception? Usually it has some stack trace what can help to understand the reason of your problem.

 

voulgeor said:

thanks but that didn't work for me.

 


@Invalid

Invalid
22 May 2014, 15:32

RE:

voulgeor said:

Using Visual studio ultimate 2013

every time I am trying to build robot code I get

Error 1 The parameter is incorrect. (Exception from HRESULT: 0x80070057 (E_INVALIDARG))  12 28 
this happens with every robot a tried

new and from the examples

 

I had the same issue some time ago. I succeeded to fix this following next instructions

  1. Close Visual Studio
  2. Open the Temporary ASP.NET Files folder and delete its contents.
    1. If the OS is Windows Vista, then the folder is %LocalAppData%\Temp\Temporary ASP.NET Files
    2. If the OS is Windows XP, then the folder is %WINDIR%\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files
  3. Restart Visual Studio
  4. Open the project

@Invalid

Invalid
21 May 2014, 15:58

RE: RE:

aaante 

Please upload some sample matlab library in order to try on my machine


@Invalid

Invalid
09 May 2014, 10:17

RE: RE: RE:

To Ante:

 

int lastDelimiter = ctfFilePath.LastIndexOf(@"\");
ctfFilePath= ctfFilePath.Remove(lastDelimiter, (ctfFilePath.Length - lastDelimiter));

if you need to get file name, simply call Path.GetFileName. You can read more about this on http://msdn.microsoft.com/en-us/library/system.io.path.getfilename(v=vs.110).aspx.

It should look smth like this:

ctfFilePath= System.IO.Path.GetFileName(ctfFilePath);

Let me know if it fixes your problem.


@Invalid

Invalid
03 May 2014, 22:00

RE:

aaante said:

Tnx, but second exception appeared when method is called:

System.TypeInitializationException: The type initializer for 'Volatility.rm94class' threw an exception. ---> 
System.ArgumentOutOfRangeException: StartIndex cannot be less than zero. Parameter name: startIndex    
at System.String.Remove(Int32 startIndex, Int32 count)    
at Volatility.rm94class..cctor()    
--- End of inner exception stack trace ---    
at Volatility.rm94class..ctor()    
at cAlgo.CustomSTD.Calculate(Int32 index)


 

do you call any method String.Remove(Int32 startIndex, Int32 count)  in your code?


@Invalid