time control of tick bar chart [SOLVED]
-
- Posts: 61
- Joined: 25 Jul 2013
- Has thanked: 18 times
time control of tick bar chart
I am writing a signal for a tick bar chart. should I use time_s instead of time for time control of the strategy? or both time_s or time is also function-able for tick bar chart?
- TJ
- Posts: 7740
- Joined: 29 Aug 2006
- Location: Global Citizen
- Has thanked: 1033 times
- Been thanked: 2221 times
Re: time control of tick bar chart
Please seeI am writing a signal for a tick bar chart. should I use time_s instead of time for time control of the strategy? or both time_s or time is also function-able for tick bar chart?
viewtopic.php?f=1&t=47556
-
- Posts: 61
- Joined: 25 Jul 2013
- Has thanked: 18 times
Re: time control of tick bar chart
e.g if I want to make a buy signal at 1200, then should I write it as follow in tick bar
1. If time_s=120000 then buy 1 contract next bar at market?
2. or should be if if time_s[1]<120000 and time_s>120000 then buy 1 contract next bar at market?
1. If time_s=120000 then buy 1 contract next bar at market?
2. or should be if if time_s[1]<120000 and time_s>120000 then buy 1 contract next bar at market?
- TJ
- Posts: 7740
- Joined: 29 Aug 2006
- Location: Global Citizen
- Has thanked: 1033 times
- Been thanked: 2221 times
Re: time control of tick bar chart [SOLVED]
e.g if I want to make a buy signal at 1200, then should I write it as follow in tick bar
1. If time_s=120000 then buy 1 contract next bar at market?
2. or should be if if time_s[1]<120000 and time_s>120000 then buy 1 contract next bar at market?
Code: Select all
if time_s[1]<120000 and time_s >= 120000 then buy 1 contract next bar at market