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
Multi timeframes Trading strategy
- TJ
- Posts: 7743
- Joined: 29 Aug 2006
- Location: Global Citizen
- Has thanked: 1033 times
- Been thanked: 2222 times
Re: Multi timeframes Trading strategy
See post #4Hi 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
viewtopic.php?f=16&t=6929
- Andrew MultiCharts
- Posts: 1587
- Joined: 11 Oct 2011
- Has thanked: 931 times
- Been thanked: 559 times
Re: Multi timeframes Trading strategy
Most of intraday resolutions are built out of 1 minute data. You just need to have 2 data series on chart:...however I only got 1 min data in the database.
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;