CloseSession keyword in easylanguage not recognized by MC

Questions about MultiCharts and user contributed studies.
bbv
Posts: 4
Joined: 07 Dec 2012
Has thanked: 2 times
Been thanked: 1 time

CloseSession keyword in easylanguage not recognized by MC

Postby bbv » 07 Dec 2012

I have some easylanguage that works in TS but CloseSession isn't recognized in multicharts. I'm trying to get access to the close of the regular session (x sessions in the past) on futures, which is not what I get with CloseD. Is there another keyword to get the regular/pit session close?

// use momentum to see if the trend for x (default 3) sessions is up or down
If CloseSession(1,1) >= CloseSession(1, TrendLengthLong) then theTrend = 1;
If CloseSession(1,1) <= CloseSession(1, TrendLengthShort) then theTrend = -1;

thanks-

Joseph

User avatar
Andrew MultiCharts
Posts: 1587
Joined: 11 Oct 2011
Has thanked: 931 times
Been thanked: 559 times

Re: CloseSession keyword in easylanguage not recognized by M

Postby Andrew MultiCharts » 10 Dec 2012

Hello bbv,

Unfortunately, CloseSession is not supported in MultiCharts. You can use SessionEnd that would return closing time of session for the symbol from QuoteManager. If you need exactly CloseSession, then it is possible to implement this in future, please leave us such feature request. If you require it, we also can implement it for you as paid custom programming project.

bbv
Posts: 4
Joined: 07 Dec 2012
Has thanked: 2 times
Been thanked: 1 time

Re: CloseSession keyword in easylanguage not recognized by M

Postby bbv » 11 Dec 2012

Thanks- is there a way to reference a bar by absolute time once I know what time the session ended? Or must I figure out how many periods ago it was and do Close[xPeriodsAgo]

thanks for your help-

User avatar
TJ
Posts: 7742
Joined: 29 Aug 2006
Location: Global Citizen
Has thanked: 1033 times
Been thanked: 2222 times

Re: CloseSession keyword in easylanguage not recognized by M

Postby TJ » 11 Dec 2012

I have some easylanguage that works in TS but CloseSession isn't recognized in multicharts. I'm trying to get access to the close of the regular session (x sessions in the past) on futures, which is not what I get with CloseD. Is there another keyword to get the regular/pit session close?

// use momentum to see if the trend for x (default 3) sessions is up or down
If CloseSession(1,1) >= CloseSession(1, TrendLengthLong) then theTrend = 1;
If CloseSession(1,1) <= CloseSession(1, TrendLengthShort) then theTrend = -1;

thanks-

Joseph
What is the instrument?
What is your chart resolution?
Are you tracking 24 hrs on your chart, but want to know the RTH close?

User avatar
Andrew MultiCharts
Posts: 1587
Joined: 11 Oct 2011
Has thanked: 931 times
Been thanked: 559 times

Re: CloseSession keyword in easylanguage not recognized by M

Postby Andrew MultiCharts » 14 Dec 2012

You can collect values from bars in an array and reference them when you need it.


Return to “MultiCharts”