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
CloseSession keyword in easylanguage not recognized by MC
- 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
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.
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.
Re: CloseSession keyword in easylanguage not recognized by M
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-
thanks for your help-
- 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
What is the instrument?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 your chart resolution?
Are you tracking 24 hrs on your chart, but want to know the RTH close?
- 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
You can collect values from bars in an array and reference them when you need it.