NexusFi: Find Your Edge


Home Menu

 





MultiCharts lag time?


Discussion in MultiCharts

Updated
      Top Posters
    1. looks_one bobbakerr with 63 posts (24 thanks)
    2. looks_two Big Mike with 19 posts (19 thanks)
    3. looks_3 Jura with 11 posts (8 thanks)
    4. looks_4 Bimi with 10 posts (7 thanks)
      Best Posters
    1. looks_one bretter with 4 thanks per post
    2. looks_two RM99 with 2.3 thanks per post
    3. looks_3 Big Mike with 1 thanks per post
    4. looks_4 bobbakerr with 0.4 thanks per post
    1. trending_up 56,350 views
    2. thumb_up 144 thanks given
    3. group 23 followers
    1. forum 171 posts
    2. attach_file 2 attachments




 
Search this Thread

MultiCharts lag time?

  #31 (permalink)
 
bobbakerr's Avatar
 bobbakerr 
Riverdale, Idaho, USA
 
Experience: Intermediate
Platform: Optimus Futures + MultiCharts + TradeStation
Broker: Optimus Futures, Rithmic Data, TradeStation
Trading: CL, ES
Posts: 115 since Aug 2010
Thanks Given: 241
Thanks Received: 51

sysot1t, I'm foregoing CL completely. It's much too volatile and there is too little volume. I've been experimenting around with ES today and it's showing nice profit since midnight, with plenty of volume and much smoother moves (dollar wise). I appreciate your advice, but I'm not going to post any reports (yet). And if I had kept up this trading with CL, I know I could have got my broker (Optimus) to be well below $4.00/R.T. They're good to work with it seems like. I had never used them before, though. I picked them mainly for their Rithmic data feed.

I'll let you guys know what I come up with on ES. It won't show + 20,000 per day, though, that's for sure !!

Started this thread Reply With Quote
Thanked by:

Can you help answer these questions
from other members on NexusFi?
Online prop firm The Funded Trader (TFT) going under?
Traders Hideout
Deepmoney LLM
Elite Quantitative GenAI/LLM
My NT8 Volume Profile Split by Asian/Euro/Open
NinjaTrader
Build trailing stop for micro index(s)
Psychology and Money Management
NT7 Indicator Script Troubleshooting - Camarilla Pivots
NinjaTrader
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Get funded firms 2023/2024 - Any recommendations or word …
59 thanks
Funded Trader platforms
37 thanks
NexusFi site changelog and issues/problem reporting
23 thanks
GFIs1 1 DAX trade per day journal
22 thanks
The Program
19 thanks
  #32 (permalink)
 
bobbakerr's Avatar
 bobbakerr 
Riverdale, Idaho, USA
 
Experience: Intermediate
Platform: Optimus Futures + MultiCharts + TradeStation
Broker: Optimus Futures, Rithmic Data, TradeStation
Trading: CL, ES
Posts: 115 since Aug 2010
Thanks Given: 241
Thanks Received: 51


sysot1t View Post
there is not enough information on yours posts to determine if the -$1200 was because of the strategy produced bad signals, beacuse of slippage (and how many ticks), if because of the platform and execution network(TS is slow regardless of how close you get), or if because of transactional costs... hard to tell without clear data that we can look at to direct you better... you would need to provide trade statistics.

sysot1t, here is a portion of one of my trades, and the sequence of events (from Rithmic) that it went through before it was finally filled. It was a LIMIT order to Sell Short Next Bar at the current bar's Close -.02 . So I should have Sold it Short at 98.94 or better. It evidently gapped below that 98.94, for I didn't get it Shorted UNTIL MUCH LATER (The sequence is from the bottom, up):

"Filled","S","1","CLN1","M","98.79","4761072","2011-06-07 08:53:17","2011-6-07 08:53:17"

"Cancelled","S","1","CLN1","L","98.88","4761070","2011-06-07 08:53:08","2011-06-07 08:53:08"

"Cancelled","S","1","CLN1","L","98.90","4761069","2011-06-07 08:53:08","2011-06-07 08:53:07"

"Cancelled","S","1","CLN1","L","98.91","4761068","2011-06-07 08:53:07","2011-06-07 08:53:05"

"Cancelled","S","1","CLN1","L","98.93","4761067","2011-06-07 08:53:04","2011-06-07 08:53:04"

So you can see that MC (or Rithmic?) had the order in, but cancelled it when it wasn't filled. It looks like it was then re-entered for the next 2-cent bar and cancelled again (and again, and again, etc.). It finally got Shorted at a price 17 cents worse than my original order, if I'm interpreting this correctly. And it was at least 5 bars and 13 seconds later after my original order was placed.

How can that be?? Doesn't 'Sell Short' Next Bar at xxxx Limit mean that the order is only good for the very next bar and ONLY that bar ??? Maybe I've programmed the thing wrong, thinking the above sentence to be true, when in Real Life it isn't.

If anyone knows the answer to this, please post. Thanks.

Started this thread Reply With Quote
  #33 (permalink)
 sysot1t 
 
Posts: 1,173 since Nov 2009


I think it might have been the logic, it should have not opened and closed the orders over and over like that... I am not an EL expert by any means.. you might want to go to TS and post the question or inquire with TSS...

now, another question... if you are doing basically a limit and then shaving .02 off it to ensure a fill, why not just go at the bid if shorting on the next bar?


bobbakerr View Post
sysot1t, here is a portion of one of my trades, and the sequence of events (from Rithmic) that it went through before it was finally filled. It was a LIMIT order to Sell Short Next Bar at the current bar's Close -.02 . So I should have Sold it Short at 98.94 or better. It evidently gapped below that 98.94, for I didn't get it Shorted UNTIL MUCH LATER (The sequence is from the bottom, up):

"Filled","S","1","CLN1","M","98.79","4761072","2011-06-07 08:53:17","2011-6-07 08:53:17"

"Cancelled","S","1","CLN1","L","98.88","4761070","2011-06-07 08:53:08","2011-06-07 08:53:08"

"Cancelled","S","1","CLN1","L","98.90","4761069","2011-06-07 08:53:08","2011-06-07 08:53:07"

"Cancelled","S","1","CLN1","L","98.91","4761068","2011-06-07 08:53:07","2011-06-07 08:53:05"

"Cancelled","S","1","CLN1","L","98.93","4761067","2011-06-07 08:53:04","2011-06-07 08:53:04"

So you can see that MC (or Rithmic?) had the order in, but cancelled it when it wasn't filled. It looks like it was then re-entered for the next 2-cent bar and cancelled again (and again, and again, etc.). It finally got Shorted at a price 17 cents worse than my original order, if I'm interpreting this correctly. And it was at least 5 bars and 13 seconds later after my original order was placed.

How can that be?? Doesn't 'Sell Short' Next Bar at xxxx Limit mean that the order is only good for the very next bar and ONLY that bar ??? Maybe I've programmed the thing wrong, thinking the above sentence to be true, when in Real Life it isn't.

If anyone knows the answer to this, please post. Thanks.


Reply With Quote
  #34 (permalink)
 SPTrading 
London, England
 
Experience: Intermediate
Platform: MC, TS, NT
Broker: TradeStation
Trading: ES
Posts: 41 since Oct 2009
Thanks Given: 12
Thanks Received: 21


bobbakerr View Post
a LIMIT order to Sell Short Next Bar at the current bar's Close -.02 .

I'm not sure about how Multicharts works since I haven't yet hooked mine up to a broker, but if it is like TradeStation, a limit order below the current price will get rejected by the strategy trade manager. In other words, there is NO support for a stop limit order. This would explain why all your orders are not being sent.

Paul

Reply With Quote
Thanked by:
  #35 (permalink)
 
Jura's Avatar
 Jura   is a Vendor
 
Posts: 775 since Apr 2010
Thanks Given: 2,352
Thanks Received: 690


bobbakerr View Post
[...]
How can that be?? Doesn't 'Sell Short' Next Bar at xxxx Limit mean that the order is only good for the very next bar and ONLY that bar ??? Maybe I've programmed the thing wrong, thinking the above sentence to be true, when in Real Life it isn't.
[..]

MultiCharts cancels orders that are not filled in the same bar:

Quoting 
If the order is not filled within specified bar, it is canceled, unless exactly the same order (quantity and price) is sent on the next bar (then the order is not cancelled and stays active at broker).

If you want to prevent the order from being canceled you need to send exactly the same order on the next bar.

Source: MultiCharts: Trading Software for Automated Trading and [AUTOLINK]Backtesting[/AUTOLINK] • View topic - Keeping Limit Orders Active After New Bar

If I understand your post correctly, you submit entry order with a limit of the close + 0.02. So for example:
 
Code
                            
if myEntryCondition true then
    buy
("LE")next bar at Close 0.02 limit
Because the close fluctuates with each bar, in effect you are telling MC to buy only at the Close + 0.02 price for that bar, and if that's not getting filled, try it the next bar, but with a different limit price (namely the new Close + 0.02).

Perhaps you could try something like:
 
Code
                            
if mySignal true then
    myEntryOrder 
Close 0.02;

if 
myEntryCondition true and MarketPosition <> 1 then
    buy
("LE")next bar at myEntryOrder limit
In this case the myEntryOrder variable is only updated once as the signal for your strategy is generated (in other words, when your setup is forming). After that, as long as your entry conditions remain true (i.e. the setup is not invalided according to your strategy logic), the enter limit order is submitted with the same limit price as long as there is not already a long position.

Anyway, this is how I understand it, which may be correct or not.

Regards,

Reply With Quote
Thanked by:
  #36 (permalink)
 
bobbakerr's Avatar
 bobbakerr 
Riverdale, Idaho, USA
 
Experience: Intermediate
Platform: Optimus Futures + MultiCharts + TradeStation
Broker: Optimus Futures, Rithmic Data, TradeStation
Trading: CL, ES
Posts: 115 since Aug 2010
Thanks Given: 241
Thanks Received: 51


sysot1t View Post
I think it might have been the logic, it should have not opened and closed the orders over and over like that... I am not an EL expert by any means.. you might want to go to TS and post the question or inquire with TSS...

now, another question... if you are doing basically a limit and then shaving .02 off it to ensure a fill, why not just go at the bid if shorting on the next bar?


It HAS to be the logic/code. I'm no expert in programming and I think that's where the problems are.

I gave the Limit order a 2-cent cushion in case the Inside Bid/Ask is taken before I can get it. I figured another penny would help me to get filled if that happened.

Started this thread Reply With Quote
  #37 (permalink)
 
bobbakerr's Avatar
 bobbakerr 
Riverdale, Idaho, USA
 
Experience: Intermediate
Platform: Optimus Futures + MultiCharts + TradeStation
Broker: Optimus Futures, Rithmic Data, TradeStation
Trading: CL, ES
Posts: 115 since Aug 2010
Thanks Given: 241
Thanks Received: 51


Jura View Post
MultiCharts cancels orders that are not filled in the same bar:
Source: MultiCharts: Trading Software for Automated Trading and [AUTOLINK]Backtesting[/AUTOLINK] &bull; View topic - Keeping Limit Orders Active After New Bar

If I understand your post correctly, you submit entry order with a limit of the close + 0.02. So for example:
 
Code
                            
if myEntryCondition true then
    buy
("LE")next bar at Close 0.02 limit
Because the close fluctuates with each bar, in effect you are telling MC to buy only at the Close + 0.02 price for that bar, and if that's not getting filled, try it the next bar, but with a different limit price (namely the new Close + 0.02).

Perhaps you could try something like:
 
Code
                            
if mySignal true then
    myEntryOrder 
Close 0.02;

if 
myEntryCondition true and MarketPosition <> 1 then
    buy
("LE")next bar at myEntryOrder limit
In this case the myEntryOrder variable is only updated once as the signal for your strategy is generated (in other words, when your setup is forming). After that, as long as your entry conditions remain true (i.e. the setup is not invalided according to your strategy logic), the enter limit order is submitted with the same limit price as long as there is not already a long position.

Anyway, this is how I understand it, which may be correct or not.

Regards,


Jura, I think you hit the nail right on the head in each of your observations and comments. Thank you very much!

I'll change things to match your suggestions.

Started this thread Reply With Quote
  #38 (permalink)
 
sam028's Avatar
 sam028 
Site Moderator
 
Posts: 3,765 since Jun 2009
Thanks Given: 3,825
Thanks Received: 4,629

@ bobbakerr, a simple question: why did you use a real account when you tried your real-time testing ? Why not a real-time test, with your Rithmic datafeed and the VPS, but with a simulation account ?
The slippage is hard to simulate, so the results should not have been 100% accurate, but it could have give an idea of how good is the bot logic.

Success requires no deodorant! (Sun Tzu)
Follow me on Twitter Reply With Quote
  #39 (permalink)
 
bobbakerr's Avatar
 bobbakerr 
Riverdale, Idaho, USA
 
Experience: Intermediate
Platform: Optimus Futures + MultiCharts + TradeStation
Broker: Optimus Futures, Rithmic Data, TradeStation
Trading: CL, ES
Posts: 115 since Aug 2010
Thanks Given: 241
Thanks Received: 51

I did that, Sam. I referred to it as 'forward testing'. It did great, so I went ahead and did the thing in real life.

I'm working on correcting the code (for ES) right now. If I can get it to 'obey' correctly, I'll watch it for a couple of days, and if all goes well then HIT IT AGAIN.

Started this thread Reply With Quote
Thanked by:
  #40 (permalink)
nismo
Australia
 
Posts: 32 since Dec 2010
Thanks Given: 7
Thanks Received: 3


Hope I'm not hijacking Bobbarkers thread, but if I am let me know and I will start my own.

I've just put my first forex strategy live on both a demo and micro account and compared to my backtest results the price difference is 14 pips or 0.0014. I don't trade futures so I don't fully understand bobbarkers slippage issues but I too am trading with Multicharts and am using a VPS. My broker is MB Trading.

Firstly I just want confirm that to know what slippage you are actually getting do you compare the demo/live account to the backtest results on tick data? Which is what I've done.

Secondly is this reasonable slippage for forex?

If this is not reasonable slippage I guess I'm in the same position as bobbarker trying to work out where the problem is. VPS, Multicharts, broker or my system.

I've ran a ping test to mbtrading.com and am getting 80ms latency. Im waiting an email from mbt support for an ip address of one of the actual servers. I was actually expecting better latency than 80ms...

FYI as others have stated demo vs live account, in my limited testing, yield the same entry/exists, although this could change with large order sizes obviously.

Reply With Quote




Last Updated on April 4, 2012


© 2024 NexusFi™, s.a., All Rights Reserved.
Av Ricardo J. Alfaro, Century Tower, Panama City, Panama, Ph: +507 833-9432 (Panama and Intl), +1 888-312-3001 (USA and Canada)
All information is for educational use only and is not investment advice. There is a substantial risk of loss in trading commodity futures, stocks, options and foreign exchange products. Past performance is not indicative of future results.
About Us - Contact Us - Site Rules, Acceptable Use, and Terms and Conditions - Privacy Policy - Downloads - Top
no new posts