# Daily bar calculation but intraday order entry  [SOLVED]

Questions about MultiCharts and user contributed studies.
Posts: 15
Joined: 30 Nov 2012
Has thanked: 8 times

### Daily bar calculation but intraday order entry

I would like to know how I can code an order entry system based on the crossover of 2 daily moving averages ?

The entry must be opened and closed intraday but the data for the MA is caculated on the daily bars.

How do I specify the difference in my code between daily and intraday ?

Thank you.

TJ
Posts: 6874
Joined: 29 Aug 2006
Location: Global Citizen
Has thanked: 984 times
Been thanked: 1976 times

### Re: Daily bar calculation but intraday order entry

trader101 wrote:I would like to know how I can code an order entry system based on the crossover of 2 daily moving averages ?

The entry must be opened and closed intraday but the data for the MA is caculated on the daily bars.

How do I specify the difference in my code between daily and intraday ?

Thank you.

One way to do it is with 2 data series:
an intraday series for order execution, and a daily series for strategy calculation.

see post #4
Multi-data strategy... pg. 34
viewtopic.php?f=16&t=6929
These users thanked the author TJ for the post:

Posts: 15
Joined: 30 Nov 2012
Has thanked: 8 times

### Re: Daily bar calculation but intraday order entry

Ok thanks for the suggestion.

If I want to use it with a stochastic or some other indicator and having the indicator on the daily what should I use ?

Can you give an example of how you define the data series ?

would using this : ATR (Close Data2) be good ? and I would need to put Data2 as an input ?

Than you.

TJ
Posts: 6874
Joined: 29 Aug 2006
Location: Global Citizen
Has thanked: 984 times
Been thanked: 1976 times

### Re: Daily bar calculation but intraday order entry  [SOLVED]

trader101 wrote:Ok thanks for the suggestion.

If I want to use it with a stochastic or some other indicator and having the indicator on the daily what should I use ?

Can you give an example of how you define the data series ?

would using this : ATR (Close Data2) be good ? and I would need to put Data2 as an input ?

Than you.

note. I do not give examples if there is one in the manual.
These users thanked the author TJ for the post: