Any way to get study name that called a function?

Questions about MultiCharts and user contributed studies.
bowlesj3
Posts: 2180
Joined: 21 Jul 2007
Has thanked: 227 times
Been thanked: 429 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: 7742
Joined: 29 Aug 2006
Location: Global Citizen
Has thanked: 1033 times
Been thanked: 2222 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: 2180
Joined: 21 Jul 2007
Has thanked: 227 times
Been thanked: 429 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”