HOME FORUMS BROKERS SOFTWARE BOOKS CONTACT US
Elite Trader Your Account  •  Become a Member  •  Help  •  Search    
    Forums ›› Tools of the Trade ›› Trading Software ›› Sterling API Developer Thread  


Post A Reply
    Page 43 of 46:   « First Page   34  35  36  37  38  39  40  41  42   43  44  45  46  
syswizard
 

Registered: Jun 2004
Posts: 3640

 

05-02-12 01:32 PM


Quote from RueLorimier:

Their C# example code does support net frame work 4.


If they are so "excellent", it would be trivial to rewrite it.
Plus, this is the first time I've ever heard of a new release being held-up due to the sample code.

    Edit/Delete Quote Complain
rkprogram
 

Registered: May 2012
Posts: 1

 

05-02-12 09:09 PM

Hello,

I'm having the same error: 'is not a valid win32 application' using it with excel (vba). Anyone has solved this issue?

    Edit/Delete Quote Complain
RueLorimier
 

Registered: Apr 2012
Posts: 9

 

05-03-12 04:48 PM


Quote from syswizard:

If they are so "excellent", it would be trivial to rewrite it.
Plus, this is the first time I've ever heard of a new release being held-up due to the sample code.



I mean their C# example code shows that they do support net framework 4.

    Edit/Delete Quote Complain
viniciusvbf
 

Registered: May 2012
Posts: 1

 

05-11-12 06:58 PM

Hi, i just started programming on the Sterling Trader API, and i'm have some trouble cancelling an order (i'm using c#).
Could someone please help me with a simple example of how to cancel an order? Thank you.

    Edit/Delete Quote Complain
quantics
 

Registered: Mar 2011
Posts: 10

 

05-12-12 09:32 PM

Guys,

Im looking for an experienced Sterling API coder who could copy a strategy I have working in MT4.

I would like the application to be written in C for running on multiple ECN's via Sterling.

This is a working profitable strategy.

Please PM if interested.

    Edit/Delete Quote Complain
RueLorimier
 

Registered: Apr 2012
Posts: 9

 

05-14-12 02:55 PM


Quote from viniciusvbf:

Hi, i just started programming on the Sterling Trader API, and i'm have some trouble cancelling an order (i'm using c#).
Could someone please help me with a simple example of how to cancel an order? Thank you.



private SterlingLib.STIOrderMaint stOrdMaint=new SterlingLib.STIOrderMaint();

private CancelSterlingOrder(string ClOrderId){
this.stOrdMaint.CancelOrder("MY_ACCOUNT", 0, ClOrderId, ClOrderId+"_Canceled");
}


Note: The "ClOrderId" is the ClOrderId of the order you want to cancel. This ID is assigned by yourself when it is sent to Sterling API. It must be unique in multiple days .

If you want to test the code with your demo account, you must know:

All orders on demo account will be filled immediately no matter how much the order price is. So basically you will not have the chance to cancel them. But they do provide some test symbols for your debugging, so you can place an order on MSFT and cancel it:


AAPL: Partial Fill (Half)
CIEN: Stays in Sending Mode (New or Replace)
CP: Stays in Cancel Pending mode - does not fill
EK: Partial Fill (Half)
GE: Rejected Order
GOOG: Partial Fill (one-tenth)
JNJ: Does not fill
KO: Too Late To Cancel
MSFT: Does not fill
T: Does not fill

    Edit/Delete Quote Complain
    Page 43 of 46:   « First Page   34  35  36  37  38  39  40  41  42   43  44  45  46  
Post A Reply


Receive an email whenever a new post is added to this thread by subscribing to it.
 
Rate This Thread:

Forum Jump:
 

 

   Conduct Rules  -  Privacy Policy  -  Day Trader -  Day Trader Forum -  Best Trading Software -  Sitemap Copyright © 2013, Elite Trader. All rights reserved.    
 
WHILE YOU'RE HERE, TAKE A MINUTE TO VISIT SOME OF OUR SPONSORS:
Advantage Futures
Futures Brokerage & Clearing
AMP Global Clearing
Futures and FX Trading
Bright Trading
Professional Equities Trading
CTS
Futures Trading Software
DaytradingBias.com
Professional Trading Analytics
ECHOtrade
Professional Trading Firm
eSignal
Trading Software Provider
FXCM
Forex Trading Services
Global Futures
Futures, Options & FX Trading
Interactive Brokers
Pro Gateway to World Markets
JC Trading Group
Direct Access Trading
MB Trading
Direct Access Trading
MultiCharts
Trading Software Provider
NinjaTrader
Trading Software Provider
OANDA
Currency Trading
optionshouse
Option Trading & Education
Questrade
Canada's #1 Online Broker
Rithmic
Futures Trade Execution Platform
SpeedTrader
Direct Access Trading
SpreadProfessor
Spread Trading Instruction
thinkorswim by TD Ameritrade
Direct Access TradingAdvertisement
TradersStudio
System Building & Backtesting
Trading Technologies
Trading Software Provider
Trend Following
Trading Systems Provider