time control of tick bar chart  [SOLVED]

Questions about MultiCharts and user contributed studies.
dingmanhoe123
Posts: 61
Joined: 25 Jul 2013
Has thanked: 18 times

time control of tick bar chart

Postby dingmanhoe123 » 21 Nov 2014

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?

User avatar
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

Postby TJ » 21 Nov 2014

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?
Please see
viewtopic.php?f=1&t=47556

dingmanhoe123
Posts: 61
Joined: 25 Jul 2013
Has thanked: 18 times

Re: time control of tick bar chart

Postby dingmanhoe123 » 22 Nov 2014

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?

User avatar
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]

Postby TJ » 22 Nov 2014

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
note the >= sign.


Return to “MultiCharts”