NexusFi: Find Your Edge


Home Menu

 





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


Discussion in MultiCharts

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




 
Search this Thread

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

  #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?
NT7 Indicator Script Troubleshooting - Camarilla Pivots
NinjaTrader
The space time continuum and the dynamics of a financial …
Emini and Emicro Index
ZombieSqueeze
Platforms and Indicators
Deepmoney LLM
Elite Quantitative GenAI/LLM
New Micros: Ultra 10-Year & Ultra T-Bond -- Live Now
Treasury Notes and Bonds
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Get funded firms 2023/2024 - Any recommendations or word …
61 thanks
Funded Trader platforms
39 thanks
NexusFi site changelog and issues/problem reporting
26 thanks
GFIs1 1 DAX trade per day journal
18 thanks
The Program
18 thanks
  #2 (permalink)
abev
seattle washington
 
Posts: 75 since Feb 2019
Thanks Given: 11
Thanks Received: 29

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: 29

Glad I could help.

Reply With Quote




Last Updated on January 24, 2021


© 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