Any way to get study name that called a function?

Questions about MultiCharts and user contributed studies.
bowlesj3
Posts: 2134
Joined: 21 Jul 2007
Has thanked: 209 times
Been thanked: 422 times

Any way to get study name that called a function?

Postby bowlesj3 » 16 Nov 2009

Is there any hidden system command that a function can use to get the study/indicator name that called it?

Thanks,
John.

User avatar
TJ
Posts: 7372
Joined: 29 Aug 2006
Location: Global Citizen
Has thanked: 996 times
Been thanked: 2105 times

Postby TJ » 17 Nov 2009

assign the study/indicator name to a string variable...
then use string variable as one of the input for the function.

would that do the job?

bowlesj3
Posts: 2134
Joined: 21 Jul 2007
Has thanked: 209 times
Been thanked: 422 times

Postby bowlesj3 » 17 Nov 2009

Hi TJ, I actually did that in the end but I was a bit lazy because this function (my binary search function) is called from about 15/20 studies and I didn't want to have to go back and change all the calls.

Thanks anyway,
John.


Return to “MultiCharts”