NexusFi: Find Your Edge


Home Menu

 





Is MC able to backtest strategies based on multiple range-bar-based frames?


Discussion in MultiCharts

Updated
      Top Posters
    1. looks_one imPairsonator with 2 posts (5 thanks)
    2. looks_two theorist with 2 posts (0 thanks)
    3. looks_3 forexcasted with 1 posts (0 thanks)
    4. looks_4 Doctor Leo with 1 posts (0 thanks)
    1. trending_up 2,838 views
    2. thumb_up 5 thanks given
    3. group 3 followers
    1. forum 5 posts
    2. attach_file 0 attachments




 
Search this Thread

Is MC able to backtest strategies based on multiple range-bar-based frames?

  #1 (permalink)
 theorist 
Los Angeles, California, USA
 
Experience: Beginner
Platform: TradeStation, AmiBroker
Trading: ES
Posts: 9 since Jun 2012
Thanks Given: 17
Thanks Received: 11

I'm considering evaluating the MC trial but, before I invest the substantial amount of time that would take, I'm hoping that someone with experience in the program might be able to tell me whether it has the capability I'm looking for:

I'd like to backtest a strategy that uses indicators based not on different time bars, but different range bars. As a trivial example, suppose I'd like to build EMAs based on the closes of 5-tick, 10-tick, 15-tick range bars (lets call them EMA_5, EMA_10, and EMA_15), and implement a strategy that says: buy when EMA_5 and EMA_10 are both between x and y, and when EMA_15 is between y and z (or whatever).

If EMA_5, EMA_10, and EMA_15 were instead based on the closes of 5-minute, 10-minute, and 15-minute time bars, I know MC would have no problem. But what about my example, where the EMAs are based on the closes of different range bar series? [And just to be clear, I don't mean N-tick bars (which form each time a certain number of ticks come through), I mean N-tick range bars (which form each time the difference between the low and the high exceeds a fixed range).] Can MC implement a backtest of this and, if so, would it need to be coded from scratch, or does MC offer some built-in functionality that would facilitate this? I tried searching for several different variations of "MultiCharts range bars multiple frames timeframes" etc., and was not able to find anything concrete -- just general stuff from MC about how they can mix different time bars and range bars in the same window, which is different from being able to conduct a backtest on them.

Thanks!

Started this thread Reply With Quote

Can you help answer these questions
from other members on NexusFi?
ZombieSqueeze
Platforms and Indicators
About a successful futures trader who didn´t know anyth …
Psychology and Money Management
Pivot Indicator like the old SwingTemp by Big Mike
NinjaTrader
How to apply profiles
Traders Hideout
Cheap historycal L1 data for stocks
Stocks and ETFs
 
  #2 (permalink)
 imPairsonator 
Thessaloniki, Greece
 
Experience: Beginner
Platform: QTS
Broker: IB
Trading: Equities, NQ
Posts: 166 since May 2012
Thanks Given: 104
Thanks Received: 395

Sure, just add the same instrument multiple times as data2, data3, etc. using different range (they call it "points" I think) settings, then use them as inputs to your indicator(s) like this:

 
Code
inputs: DataSeries1( Close of data1 ), DataSeries2( Close of data2 ), DataSeries3( Close of data3), DataSeries4( Close of data4)
In MC being able to mix them in the same window is essentially the same as being able to mix them in backtesting.

Follow me on Twitter Reply With Quote
  #3 (permalink)
 theorist 
Los Angeles, California, USA
 
Experience: Beginner
Platform: TradeStation, AmiBroker
Trading: ES
Posts: 9 since Jun 2012
Thanks Given: 17
Thanks Received: 11


Thanks, imParsinator. Might you know of anywhere I could view a complete MC code example for this sort of implementation?

Started this thread Reply With Quote
  #4 (permalink)
 imPairsonator 
Thessaloniki, Greece
 
Experience: Beginner
Platform: QTS
Broker: IB
Trading: Equities, NQ
Posts: 166 since May 2012
Thanks Given: 104
Thanks Received: 395

The built-in "spread" indicators are simplistic and meant for two different instruments, but the principle is the same so that's probably the best place to start.

Follow me on Twitter Reply With Quote
Thanked by:
  #5 (permalink)
forexcasted
Dalls + United States
 
Posts: 10 since Nov 2012
Thanks Given: 3
Thanks Received: 0

Can i get some help with programming a simple system on range bar charts?
1) Need to look for 3 consecutive bullish or bearish bars and pop an alarm as well as take an entry
2) ability to back test on range bar charts with some Profit take ( staggered exit with 3 exits) and stop levels

i am a noob in programming , would really appreciate your help

Venu

Reply With Quote
  #6 (permalink)
Doctor Leo
St. Petersburg, Russia
 
Posts: 30 since Nov 2010
Thanks Given: 6
Thanks Received: 19


forexcasted View Post
Can i get some help with programming a simple system on range bar charts?
1) Need to look for 3 consecutive bullish or bearish bars and pop an alarm as well as take an entry
2) ability to back test on range bar charts with some Profit take ( staggered exit with 3 exits) and stop levels

i am a noob in programming , would really appreciate your help

Venu

Cerate a Custom strategy LE and put the following line into there:
 
Code
if countif(close > open, 3) = 3 then buy this bar on close
Then you may want to add any of the built-in exit signals (LX) and play with them.

Reply With Quote




Last Updated on December 5, 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