Less minutes from session close time

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

Less minutes from session close time

Postby faraz » 15 Nov 2013

Hi,

I want to less minutes from session close time. For example sess1EndTime is 1515 and i want to less 25 minutes from it.
sess1EndTime -25,,,, and Answer is 1490 as a normal calculation.
But i want MC to understand 25 is minutes and answer should be 1450. MC should do time deduction calculation instead of doing normal number calculation as time is from 0 to 60

How can I do this?


Thanks

User avatar
arnie
Posts: 1594
Joined: 11 Feb 2009
Location: Portugal
Has thanked: 481 times
Been thanked: 514 times

Re: Less minutes from session close time

Postby arnie » 15 Nov 2013

Hi,

I want to less minutes from session close time. For example sess1EndTime is 1515 and i want to less 25 minutes from it.
sess1EndTime -25,,,, and Answer is 1490 as a normal calculation.
But i want MC to understand 25 is minutes and answer should be 1450. MC should do time deduction calculation instead of doing normal number calculation as time is from 0 to 60

How can I do this?


Thanks
See if this works for you

Code: Select all

Value1 = CalcTime( 1400, -15 );
You remove 15min from 1400


Return to “MultiCharts”