Identify last bar of day  [SOLVED]

Questions about MultiCharts and user contributed studies.
faraz
Posts: 144
Joined: 25 Feb 2011
Has thanked: 26 times
Been thanked: 57 times

Identify last bar of day

Postby faraz » 09 Jan 2014

Hi,

I have 30 minute bar chart and I want that strategy run on last bar of day so it can place order next bar at open which will be a new day. I use Session close time to identify this like.

Code: Select all

if time=1615 then begin
But there are many days when market close earlier due to holidays session. Strategy misses all those days. Any idea how to identify those days?

Thanks

faraz
Posts: 144
Joined: 25 Feb 2011
Has thanked: 26 times
Been thanked: 57 times

Re: Identify last bar of day  [SOLVED]

Postby faraz » 09 Jan 2014

Thanks to me. Sorted.....

Strategy was using SetExitOnClose order which perfectly placed at Last bar of day in MC so I used that clue.

Code: Select all

(ExitName(1)="End of Day Exit" OR time=1615)
Thanks


Return to “MultiCharts”