Multi timeframes Trading strategy

Questions about MultiCharts and user contributed studies.
Kam
Posts: 13
Joined: 22 May 2013
Has thanked: 8 times

Multi timeframes Trading strategy

Postby Kam » 22 May 2013

Hi there

I would like to use the same signal criteria on two different time frames, ie. 1 min and 10 min and when they are both true enter a trade, however I only got 1 min data in the database.

Is there an easy way to accomplish this?


thks
Kam

User avatar
TJ
Posts: 7742
Joined: 29 Aug 2006
Location: Global Citizen
Has thanked: 1033 times
Been thanked: 2222 times

Re: Multi timeframes Trading strategy

Postby TJ » 22 May 2013

Hi there

I would like to use the same signal criteria on two different time frames, ie. 1 min and 10 min and when they are both true enter a trade, however I only got 1 min data in the database.

Is there an easy way to accomplish this?


thks
Kam
See post #4
viewtopic.php?f=16&t=6929

User avatar
Andrew MultiCharts
Posts: 1587
Joined: 11 Oct 2011
Has thanked: 931 times
Been thanked: 559 times

Re: Multi timeframes Trading strategy

Postby Andrew MultiCharts » 22 May 2013

...however I only got 1 min data in the database.
Most of intraday resolutions are built out of 1 minute data. You just need to have 2 data series on chart:
1) File -> New Chart window -> ... -> Settings tab -> Resolution: 1 minute -> ... -> Ok;
2) Right-click on the chart -> Insert Instruments... -> ... -> Settings tab -> Resolution: 10 minute -> ... -> Ok.
You can reference both data series from script and check the same conditions on both of them:

Code: Select all

Vars: condition1(false), condition2(false);
If Close > CLose[1] then Condition1 = true;
If Close of data2 > Close[1] of data2 then Condition2 = true;
If Condition1 and Condition2 then buy next bar market;


Return to “MultiCharts”