NexusFi: Find Your Edge


Home Menu

 





About MC Backtesting Features - Limit Order Fills, Bar Magnifier and IOG


Discussion in MultiCharts

Updated
    1. trending_up 2,142 views
    2. thumb_up 1 thanks given
    3. group 4 followers
    1. forum 3 posts
    2. attach_file 0 attachments




 
Search this Thread
  #1 (permalink)
M4STR0
Florence
 
Posts: 27 since Jan 2021
Thanks Given: 23
Thanks Received: 9

Hello, I am facing some dilemmas while I am backtesting my strategies with MC.

First thing is the limit order fills.
I am testing a simple 2 lines code on a 15 minutes chart of ES
 
Code
buy next bar at low limit;
sell next bar at high limit;
With Bar Magnifier enabled and intraday 1 minutes precision.
And Backtesting Assumptions set to "Fill limit order when trade takes place at limit price or better"
the equity line looks good as expected but if then I set Backtesting Assumptions to "fill limit order when trade price goes beyond limit price by 3 ticks" the equity line is completely going down the inverse of the first setting i used. What is wrong here? is really multichart backtesting reliable?

Second topic is the Bar Magnifier
Today I tested the same strategy without Bar Magnifier and then with it, and I got completely different results, from what I understood, having Bar Magnifier is ensuring a more realistic real life backtesting as MC is using 1 minute or tick information precision to check the movement of price on each bar. Did I understood right?

Then I discovered also this Intra-bar Order Generation feature
which by default is disabled and from what I understood this one is also supposed to enhance the reliability of the backtest even thou using Bar Magnifier should be sufficient, is anyone here using this and the other features I listed before in his backtestings?


Reply With Quote

Can you help answer these questions
from other members on NexusFi?
I Have a Thing Called Iran -- Trump Stays in DC as Airsp …
Prediction Markets & Event Contracts
Beijing Summit Closes: Xi Pledges Hormuz Help -- $1.14B …
Prediction Markets & Event Contracts
CPI Eve: Fed Hike Odds Hold at 52% for the First Time, I …
Prediction Markets & Event Contracts
Five Days Until the Gap Dies -- CME Goes 24/7 on All Dig …
Traders Hideout
Irans Answer Due Today: Peace Surges to 33.5%, Invasion …
Prediction Markets & Event Contracts
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
The Pivot Point 113.6³ — Navigating the Prediction of …
26 thanks
Sober Journey With S&P
17 thanks
The Confluence Meter: A Multi-Layered Signal Framework B …
11 thanks
NT8 color choices
10 thanks
Volume Indicators
7 thanks
  #2 (permalink)
abev
seattle washington
 
Posts: 75 since Feb 2019
Thanks Given: 11
Thanks Received: 30

I don't back test intraday so I've not experienced your issues. As a guess, however, if the order consistently slips 3 ticks, I look at how slippage is configured.

In general, Intra-day Order Generation (IOG) should be on if you want to trigger orders on an intra-day chart.

My other question is, do you have data down to the tick level in the database? If not, MC will attempt to "create" tick data from minute data but I'm betting you are looking for real tick precision.

There is a very entailed article on the MC website (support of forum I can't remember which) that addresses the problems with back testing -- and there are a lot of issues regardless of the testing platform. Back testing will never perfectly match reality.

Not sure I really helped out and if I run across the article on back testing I'll come back here.


Al


Reply With Quote
Thanked by:
  #3 (permalink)
M4STR0
Florence
 
Posts: 27 since Jan 2021
Thanks Given: 23
Thanks Received: 9



abev View Post
I don't back test intraday so I've not experienced your issues. As a guess, however, if the order consistently slips 3 ticks, I look at how slippage is configured.

In general, Intra-day Order Generation (IOG) should be on if you want to trigger orders on an intra-day chart.

My other question is, do you have data down to the tick level in the database? If not, MC will attempt to "create" tick data from minute data but I'm betting you are looking for real tick precision.

There is a very entailed article on the MC website (support of forum I can't remember which) that addresses the problems with back testing -- and there are a lot of issues regardless of the testing platform. Back testing will never perfectly match reality.

Not sure I really helped out and if I run across the article on back testing I'll come back here.
In the end torturing and being pessimistic during backtests can only bring robustness to our systems.

Al

Hi Abev, thanks a lot for your reply, it really helped as it confirmed me some insight I gathered by lurking the web about this topics in the last days
Now I share the knowledge I gathered.
IoG as you said makes only sense to have it turned on if you have tick data and you are working intraday or even intrahours...also because it is a very compute intensive feature, I got slowed down during backtests of 80% if I had enabled this option.
For a systematic trader that works with minutes makes instead sense to use the bar magnifier set to "intraday precision" to 1 minute, It does not slow down a lot the backtest compute process and it can also help in my opinion to have more precision and reallife beheavior during backtesting also for daily strategies.
For limits and stop orders I think is safe to put 1-2 or 3 ticks of dispersion in "fill limit order when trade price goes beyond limit price by" so one is sure for not so liquid products that the order got filled.


Reply With Quote
  #4 (permalink)
abev
seattle washington
 
Posts: 75 since Feb 2019
Thanks Given: 11
Thanks Received: 30

Glad I could help.


Reply With Quote




Last Updated on January 24, 2021


© 2026 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 - Downloads - Top
no new posts