NexusFi: Find Your Edge


Home Menu

 





Multicharts Resolution and IntraBarGeneration


Discussion in MultiCharts

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




 
Search this Thread

Multicharts Resolution and IntraBarGeneration

  #1 (permalink)
 joelbindi 
Broadwater
 
Experience: Intermediate
Platform: MultiCharts
Trading: FX
Posts: 10 since Dec 2016
Thanks Given: 2
Thanks Received: 1

Hi,

I have searched far and wide for the answer to this question but still not found a conclusive answer. It appears the backtesting using any sort of Trailing Stop or Dollar Trailing appears to give a very unrealistic result within the bar. If for example I was using a 1 Hour chart and the data resolution is tick or 1 min data, the backtesting in Portfolio Trader will pick the most favourable conditions (shown in the attachment 1).



Also, if I am using a 1 Hour chart, the entries will be every hour, 11:00am, 12:00pm ect. but the stops or exits will sometimes be the same time, ie. Entry 11:00am & Exit 11:00am, realistically you would be expecting Entry 11:00am & Exit 11:24am (or something similar), therefore in Portfolio Trader I have no idea of when and how long the actual trades are? Attached below.




Hopefully I explained this well, I understand the concept of intrabar order generation also there appears to be a BarMagnifier (but not for Portfolio Trader). I have also tested this in Paper Trading, the trailing stops seem like they can behave more unpredictably than backtesting.

Basically I suspect my backtesting results are possibly too favourable for reality, and it has something to do with the resolution or how the backtesting engine works (I cannot find much information on this)

Thanks

Started this thread Reply With Quote

Can you help answer these questions
from other members on NexusFi?
NT7 Indicator Script Troubleshooting - Camarilla Pivots
NinjaTrader
MC PL editor upgrade
MultiCharts
Trade idea based off three indicators.
Traders Hideout
Better Renko Gaps
The Elite Circle
Increase in trading performance by 75%
The Elite Circle
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Just another trading journal: PA, Wyckoff & Trends
33 thanks
Tao te Trade: way of the WLD
24 thanks
My NQ Trading Journal
14 thanks
GFIs1 1 DAX trade per day journal
11 thanks
HumbleTraders next chapter
11 thanks
  #2 (permalink)
 joelbindi 
Broadwater
 
Experience: Intermediate
Platform: MultiCharts
Trading: FX
Posts: 10 since Dec 2016
Thanks Given: 2
Thanks Received: 1

Another screenshot that may show the example better. I'm going crazy trying to figure out if this situation could occur in real-life or is it too good to be true.

I have done some paper trading with the strategy, it is possible that the Trailing Stops are not behaving like in the back test.

How does the trailing stop know to take the exact high of the bar in real life? As there would be intrabar volatility on lower timeframes? My question is how can I test the trailing stops on lower resolutions for a more realistic backtest.

Hopefully this does not sound silly or confusing!


Started this thread Reply With Quote
  #3 (permalink)
 ABCTG   is a Vendor
 
Posts: 2,433 since Apr 2013
Thanks Given: 481
Thanks Received: 1,627


joelbindi,

when using build in trailing stops (and other methods that can execute trades intrabar) without using the bar magnifier (with 1 tick resolution) the results will most likely not be correct (overly optimistic in general). This is caused because the platform would only know the Open, High, Low and Close of the bar, but not how it developed intrabar (without the bar magnifier).

I understand that tick data is limited, but you can likely prove if your system is overly optimistic by using a 1 minute resolution for the bar magnifier.

When using hourly data the bar's will only have hourly timestamps. Even if a trade is executed at 15:27, the trade will be shown on the 16:00 bar.

The missing bar magnifier in the Portfolio Trader is a problem (in my opinion) when you want to use the build in trailing stop for example and higher timeframes. This is a good way to produce great looking backtest results which will never be achievable in realtime.

Regards,

ABCTG

Follow me on Twitter Reply With Quote
Thanked by:
  #4 (permalink)
 joelbindi 
Broadwater
 
Experience: Intermediate
Platform: MultiCharts
Trading: FX
Posts: 10 since Dec 2016
Thanks Given: 2
Thanks Received: 1


ABCTG View Post
joelbindi,

I understand that tick data is limited, but you can likely prove if your system is overly optimistic by using a 1 minute resolution for the bar magnifier.

ABCTG

Thanks very much for helping here. I have 1 minute data, how can I use the bar magnifier in Portfolio Trader, I cannot find it anywhere? Alternatively to that, I guess I could set the tradeable instrument to 1minute, and pull other data from hourly, daily ect - the problem with this is that MaxBars back gets annoying and the code stops being logical and easy to follow.

I have also setup paper trading with trailing stops, I have noticed they can get adjusted on a minute basis by default in real-time... which creates more confusion, as it live trading they seem to operate on a minute basis, but not in backtesting in Portfolio trader.

Thanks again,

Started this thread Reply With Quote
  #5 (permalink)
 ABCTG   is a Vendor
 
Posts: 2,433 since Apr 2013
Thanks Given: 481
Thanks Received: 1,627


ABCTG View Post
The missing bar magnifier in the Portfolio Trader is a problem (in my opinion) when you want to use the build in trailing stop for example and higher timeframes. This is a good way to produce great looking backtest results which will never be achievable in realtime.

joelbindi,

you won't be able to find the bar magnifier for the Portfolio Trader as there is none.
Your approach of using lower timeframes for Data1 and higher timeframes where you compute your
signals to be executed on Data1 is probably the best possible workaround.

Regards,

ABCTG

Follow me on Twitter Reply With Quote




Last Updated on February 3, 2017


© 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