NexusFi: Find Your Edge


Home Menu

 





Same strategy, same asset, two different timeframes ?


Discussion in MultiCharts

Updated
      Top Posters
    1. looks_one guge789 with 4 posts (0 thanks)
    2. looks_two Quick Summary with 1 posts (0 thanks)
    3. looks_3 ABCTG with 1 posts (1 thanks)
    4. looks_4 toddma with 1 posts (0 thanks)
    1. trending_up 2,757 views
    2. thumb_up 1 thanks given
    3. group 3 followers
    1. forum 6 posts
    2. attach_file 3 attachments




 
Search this Thread

Same strategy, same asset, two different timeframes ?

  #1 (permalink)
 
toddma's Avatar
 toddma 
vancouver canada
 
Experience: Intermediate
Platform: multicharts, ninjatrader
Trading: forex
Posts: 53 since Jul 2012
Thanks Given: 14
Thanks Received: 6

It would seem that it is a problem for Multicharts to run the same strategy on two different time frames but on the same asset.

Example:
Running strategy A on 1 hour charts on AUDUSD
&
Running strategy A on 2 hour charts on AUDUSD

It seems that when multicharts sees an execution on the other time frame it thinks that that is related to both time frames. So if the 1 hour time frame sells its position, then if both were long then the 2 hour time frame thinks that it's position has been closed as well. Can anyone confirm or deny this? I am using Async to keep executions in MC independant from whats going on at the my broker. It seems that there are less problems with this setup...

Has anyone else had this problem? or can anyone else say if this logic makes sense? solutions?
Thanks -
Todd

Started this thread Reply With Quote

Can you help answer these questions
from other members on NexusFi?
Better Renko Gaps
The Elite Circle
Pivot Indicator like the old SwingTemp by Big Mike
NinjaTrader
NT7 Indicator Script Troubleshooting - Camarilla Pivots
NinjaTrader
ZombieSqueeze
Platforms and Indicators
Trade idea based off three indicators.
Traders Hideout
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Spoo-nalysis ES e-mini futures S&P 500
29 thanks
Just another trading journal: PA, Wyckoff & Trends
25 thanks
Tao te Trade: way of the WLD
24 thanks
Bigger Wins or Fewer Losses?
23 thanks
GFIs1 1 DAX trade per day journal
17 thanks
  #3 (permalink)
guge789
Beijing P.R.China
 
Posts: 8 since Jun 2014
Thanks Given: 1
Thanks Received: 1



toddma View Post
It would seem that it is a problem for Multicharts to run the same strategy on two different time frames but on the same asset.

Example:
Running strategy A on 1 hour charts on AUDUSD
&
Running strategy A on 2 hour charts on AUDUSD

It seems that when multicharts sees an execution on the other time frame it thinks that that is related to both time frames. So if the 1 hour time frame sells its position, then if both were long then the 2 hour time frame thinks that it's position has been closed as well. Can anyone confirm or deny this? I am using Async to keep executions in MC independant from whats going on at the my broker. It seems that there are less problems with this setup...

Has anyone else had this problem? or can anyone else say if this logic makes sense? solutions?
Thanks -
Todd

I also want to run a strategy on two different time frames on the same asset, I found out that it coulden't generate correct results at each and every point where a long or short trade was opened.it'was not consistent. I still don't know why.
My method has a little difference though,and here is the detail, I want the tow charts system to give a long signal (and open a buy trade of couse) when MACD on both charts give out long sigals,and a short signal when MACD on both charts are short signals. Also,as we expect, there must be a rest period when MACD on the 2 charts are in different directions.You can see, this is a simple system that may fortify the trend when htere is one,and when the trend is obscure,we just waite and rest.

The problem is, when I check this trading system in tow different ways, it won't give out the same results the same asset. First I used macd indicator to make the trade on 15 min and 1hour timeframe, 15 min for data 1 chart, and h1 for data 2chart. Then I used macd indicator to make the trade on 1 hour on chart1, and 15 min for data chart2 to check the results.It is reasnable to believe that they will gice the same results, but they are different.

In case my code may have problemss, here is the code for you to check out.


inputs: NUM(1),
FastLengthA( 12 ),
SlowLengthA( 26 ),
MACDLengthA( 9 ),
FastLengthB( 12 ),
SlowLengthB( 26 ),
MACDLengthB( 9 );

variables:
mp(0),
varA0( 0 ),
varA1( 0 ),
Intrabarpersist varB0( 0 ),
Intrabarpersist varB1( 0 ),
Buycon(False),
Sellcon(False);

mp = marketposition;
varA0 = MACD( Close , FastLengthA, SlowLengthA ) ;
varA1 = XAverage( varA0, MACDLengthA ) ;
varB0 = MACD( Close , FastLengthB, SlowLengthB ) of Data2;
varB1 = XAverage( varB0, MACDLengthB )of Data2 ;

Buycon = (varA0 cross over varA1 and varB0>varB1) or (varB0 cross over varB1);
Sellcon = (varA0 cross under varA1 and varB0<varB1) or (varB0 cross under varB1);


IF mp=1 and varA0 cross under varA1 or varB0 cross under varB1 THEN BEGIN
SELL THIS BAR ON CLOSE;
END;

IF mp=-1 and varA0 cross over varA1 or varB0 cross over varB1 THEN BEGIN
BUYTOCOVER THIS BAR ON CLOSE;
END;

if mp<>1 and Buycon Then begin
buy NUM contracts this bar on close;
END;

IF mp<>-1 and Sellcon THEN BEGIN
SELLSHORT THIS BAR ON CLOSE;
END;

Reply With Quote
  #4 (permalink)
guge789
Beijing P.R.China
 
Posts: 8 since Jun 2014
Thanks Given: 1
Thanks Received: 1

Because this is my first trial to post pics, I'm not sure this will be down properly or not. forgive me if not succeeded.

Attached Thumbnails
Click image for larger version

Name:	QQ??20140622125756.jpg
Views:	188
Size:	102.8 KB
ID:	149484   Click image for larger version

Name:	QQ??20140622125827.jpg
Views:	174
Size:	91.6 KB
ID:	149485   Click image for larger version

Name:	QQ??20140622130409.jpg
Views:	196
Size:	124.9 KB
ID:	149486  
Reply With Quote
  #5 (permalink)
guge789
Beijing P.R.China
 
Posts: 8 since Jun 2014
Thanks Given: 1
Thanks Received: 1

I personnally thought MC is very suitable for tradings on multiple time frames,and MTF methods are highly reliable and profitable.so I'm wodering why there is so little response for this question.Am I wrong? No! So friends, please come and join this disscussion! --Thank big mike for providing this forum.

Reply With Quote
  #6 (permalink)
 ABCTG   is a Vendor
 
Posts: 2,434 since Apr 2013
Thanks Given: 481
Thanks Received: 1,627

guge789,

depending on your settings and code a system using the 15min chart can enter at every bar, even with the underlying 1 hour chart. This means the entry prices for the system can vary, as the close of the 15 min bar can be different than the close of a 1 hour bar.
I would guess that this is causing your different results.

Regards,
ABCTG


guge789 View Post
The problem is, when I check this trading system in tow different ways, it won't give out the same results the same asset. First I used macd indicator to make the trade on 15 min and 1hour timeframe, 15 min for data 1 chart, and h1 for data 2chart. Then I used macd indicator to make the trade on 1 hour on chart1, and 15 min for data chart2 to check the results.It is reasnable to believe that they will gice the same results, but they are different.


Follow me on Twitter Reply With Quote
Thanked by:
  #7 (permalink)
guge789
Beijing P.R.China
 
Posts: 8 since Jun 2014
Thanks Given: 1
Thanks Received: 1

thank you very much for your wonderful tips. I checked the charts and now understand that it is true just as your comments.

Reply With Quote




Last Updated on June 26, 2014


© 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