Welcome to NexusFi: the best trading community on the planet, with over 150,000 members Sign Up Now for Free
Genuine reviews from real traders, not fake reviews from stealth vendors
Quality education from leading professional traders
We are a friendly, helpful, and positive community
We do not tolerate rude behavior, trolling, or vendors advertising in posts
We are here to help, just let us know what you need
You'll need to register in order to view the content of the threads and start contributing to our community. It's free for basic access, or support us by becoming an Elite Member -- see if you qualify for a discount below.
-- Big Mike, Site Administrator
(If you already have an account, login at the top of the page)
I switched recently part of my trading from Tradestation to Interactive Brokers using Multicharts, but I have encountered some problems. I dont know if this is a Multicharts thing or the way that IB handles orders. The strategy code that I run is like this:
{ Entry orders }
If Conditions then
Buy("EnStop-L") NShares shares next bar at EntPrL stop;
If Conditions then
Sell Short("EnStop-S") NShares shares next bar at EntPrS stop;
{ Exit orders, long trades }
If MarketPosition = 1 then begin
If BarsSinceEntry = 0 then
LStop = (1 - MMStopPctL/100.0) * EntryPrice;
Sell("ExStop-L") next bar at LStop stop;
If condition then
Sell("ExMark-L") next bar at market;
end;
{ Exit orders, short trades }
If MarketPosition = -1 then begin
If BarsSinceEntry = 0 then
SStop = EntryPrice + MMFrS * TrueRange;
If condition
Buy to cover("ExMark-S") next bar at market;
end;
Is there any problem with that code in multicharts powerlanguage? or maybe are there some details that I could be missing while automating with IBKR??. This is a strategy that is running in 60 minutes bars in Corn Futures, I have another strategies in different futures and I dont have any problems with them apparently
Can you help answer these questions from other members on NexusFi?
From what I can see, the strategy generates orders and sents them to TWS, but when a 60 minute bar passes the strategy doesnt send new recalculated orders to interactive brokers and thge older ones remains active. Note that in backtest the strategy works well ( it generates the same trades in MC and in TS) but in live trading I have that issue.
this is simple enough to be translated to Multicharts.Net where you'd be better troubleshooting in terms of what happens. Just roughly looking at this, you're missing an end after the first being. You might also enforce recalculation after every bar (I think there is a flab/GUI option for this) - but recalculation happens automatically on every bar close regardless of broker/data-provider ... is my expectation anyways ...
Out of curiosity, since I may switch to IB myself ... how is your experience so far on IB + Multicharts?
Apart from that specific strategy that It had to be turned off, my experience has been good. I still prefer Tradestation though, maybe because being broker+platform helps.
Tradestation 10 is dog food for the moment, cannot comprehend how is their QA working. Between sticking to 9.5 which is quickly becoming obsolete and embracing something better maintained w/ more up to date software (not saying Multicharts is miles ahead of TS - as they're barely moving the needle forward - for example, MC.NET is using an out of date / out of support .NET platform ... ), Multicharts is definitely ahead of TS.