I really needed a nice interface between MultiCharts (EasyLanguage, or TradeStation EasyLanguage) and Collective 2. It seems the one written by C2 themselves is not all that great, it doesn't support profit targets or stop loss orders (OCO) or even limit orders or buy/sell stops.
So, I wrote my own. It isn't fantastic, but at least it supports limit orders or market orders, buy and sell stops, profit targets and stop loss limits (OCO), and more. It is a three step process: a) function, b) signal command, c) dos command.
The signal calls the function and tells it if you want to BTO (buy to open), STO (sell to open), cover, etc, the order quantity, the instrument, and any optional parameters like the limit price, stop price, target etc.
The function builds the proper Collective2 URL query and writes it to a text file.
The DOS batch file simply loops once per second looking for the text file, then uses Wget for Windows to parse the text file and hit the embedded URL's up on the Collective2 servers. This is where the magic happens and C2 submits your orders.
I've tested it and it works well. I welcome feedback and enhancements.
The code itself is on the forum here:
http://www.bigmiketrading.com/tradestation-easylanguage-programming/3423-easylanguage-collective2-interface-multicharts-collective-2-a.html
Mike
Welcome to my blog!
I am a full time day trader, primarily trading crude oil futures (CL). My primary trading platforms are MultiCharts and NinjaTrader. View the forum link for tens of thousands of discussions and posts.
Labels
- about me (14)
- adxvma (2)
- automated systems trading (20)
- backtesting (8)
- books (2)
- CCI (4)
- channelthis (3)
- collective2 (1)
- double ma (9)
- downloads (15)
- easylanguage (1)
- eco2 ergodic (10)
- eot indicators (4)
- indicators (33)
- macd (2)
- market profile (1)
- mathematical analysis (4)
- money management (11)
- multicharts (4)
- murrey math (3)
- mysql (2)
- neural networks (2)
- ninjatrader tips (7)
- performance (3)
- poll results (4)
- polynomial (4)
- price action (11)
- prizes (2)
- psychology (14)
- scoring (3)
- symmetry (4)
- trade results (9)
- trading tips (26)
- trend bars (5)
- ubuntu (1)
- velocity futures (1)
- videos (24)
- vma (4)
- webinars (6)
- x-trader (1)

Blog Archive
-
▼
2010
(48)
-
▼
April
(12)
- A quick look at CL 12-range today
- Big Mike Trading Forum
- BMT Webinar: Using Multiple Time Frames to Trade ...
- The Market by Jungian
- Pure Price Action: 6 range CL chart from today
- Video: Price Action on CL (Crude Oil Futures) Tue ...
- Price Action Discussion
- Are you a trader, or aren't you?
- Price Action: What is it, how to trade it
- Big Mike Trading Webinar: Market Profile, Part I
- Collective2 interface for EasyLanguage (TradeStati...
- NinjaTrader 7 Public Beta Released
-
▼
April
(12)

0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.