Topics
Replies

nohejl027@gmail.com
07 Dec 2017, 18:26 ( Updated at: 21 Dec 2023, 09:20 )

RE:

Paul_Hayes said:

Hi Spotware,

I am attempting to submit an order through the API with the ExecuteMarketOrder method, an error is occurring which is coming from your compiled code.

Crashed in OnTick with DivideByZeroException: Attempted to divide by zero.

ExecuteMarketOrder (TradeType.Buy, Symbol, 2, String.Empty, null, null);

Please, can you help me out here.

Paul Hayes
Sales & Marketing
Emailcontact@clickalgo.com
Phone: (44) 203 289 6573
Websitehttps://clickalgo.com

I am getting the same error. Is there any news about this issue?


@nohejl027@gmail.com

nohejl027@gmail.com
07 Dec 2017, 00:26

RE:

Panagiotis Charalampous said:

Hi tasr1r1,

Follow the instructions described here 

Use the following code for your manifest file

<?xml version="1.0" encoding="utf-8"?>
  
<Vsix Version="1.0.0" xmlns="http://schemas.microsoft.com/developer/vsx-schema/2010">
  <Identifier Id="2c72cc50-6c69-4b16-b1f4-ab470673f284">
    <Name>cBots and Custom Indicators</Name>
    <Author>Spotware</Author>
    <Version>1.4</Version>
    <License>EULA.txt</License>
    <Description xml:space="preserve">Building cBots and Custom Indicators in Visual Studio</Description>
    <Locale>1033</Locale>
    <InstalledByMsi>false</InstalledByMsi>
    <SupportedProducts>
      <VisualStudio Version="10.0">
        <Edition>Pro</Edition>
      </VisualStudio>
      <VisualStudio Version="11.0">
        <Edition>Pro</Edition>
      </VisualStudio>
      <VisualStudio Version="12.0">
        <Edition>Pro</Edition>
      </VisualStudio>
<VisualStudio Version="13.0">
  <Edition>Community</Edition>
</VisualStudio>
<VisualStudio Version="14.0">
  <Edition>Community</Edition>
</VisualStudio>
<VisualStudio Version="15.0">
  <Edition>Community</Edition>
</VisualStudio>
<VisualStudio Version="15.1">
  <Edition>Community</Edition>
</VisualStudio>
<VisualStudio Version="15.2">
  <Edition>Community</Edition>
</VisualStudio>
    </SupportedProducts>
    <SupportedFrameworkRuntimeEdition MinVersion="4.0" MaxVersion="4.0" />
  </Identifier>
  <References>
    <Reference Id="Microsoft.VisualStudio.MPF" MinVersion="10.0">
      <Name>Visual Studio MPF</Name>
    </Reference>
  </References>
  <Content>
    <VsPackage>VSExtension.pkgdef</VsPackage>
  </Content>
</Vsix>

Let me know if this helps.

Best Regards,

Panagiotis

 

 

Hello Unfortunately it does not work for me (The extension is installed but I can't opene the cBot in VS 2017).

Please could you help?

 

Thanks.


@nohejl027@gmail.com