View log for variable  [SOLVED]

Questions about MultiCharts and user contributed studies.
tradingest
Posts: 283
Joined: 05 Dec 2014
Location: Italy
Has thanked: 53 times
Been thanked: 3 times

View log for variable

Postby tradingest » 13 Apr 2016

Hi all,

it's possible to show the variable on the chart or separate windows to understand code developed?

Thanks,
tradingest

User avatar
ABC
Posts: 718
Joined: 16 Dec 2006
Location: www.abctradinggroup.com
Has thanked: 125 times
Been thanked: 408 times
Contact:

Re: View log for variable

Postby ABC » 13 Apr 2016

tradingest,

you can use Print to write the variable value to the PL Editor Output tab or use a Plot to display the value on the chart.

Regards,

ABC

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

Re: View log for variable

Postby TJ » 13 Apr 2016

Hi all,

it's possible to show the variable on the chart or separate windows to understand code developed?

Thanks,
tradingest
What I do is, PLOT the variable, but set it as "Invisible" on the chart.
When I put the cursor on the bar, I would be able to see the value of the PLOT (ie the variable) in the tracking window.

tradingest
Posts: 283
Joined: 05 Dec 2014
Location: Italy
Has thanked: 53 times
Been thanked: 3 times

Re: View log for variable

Postby tradingest » 16 Apr 2016

It's possible have an example?

In TS I use this code below and after I see this variables below the chart in the specific windows for log.

Code: Select all

print(
" OnePricePip: ", OnePricePip:3:5,
" ValueTick: ", ValueTick:3:2,
" ValuePoint: ", ValuePoint:3:2,
" NTicks: ", NTicks:3:1
);
Thanks,
tradingest

User avatar
ABC
Posts: 718
Joined: 16 Dec 2006
Location: www.abctradinggroup.com
Has thanked: 125 times
Been thanked: 408 times
Contact:

Re: View log for variable

Postby ABC » 16 Apr 2016

tradingest,

your code should work fine (given it has the variables in it of course) the output will appear in the Output tab of the editor and not in the main program like in TS.

Regards,

ABC

tradingest
Posts: 283
Joined: 05 Dec 2014
Location: Italy
Has thanked: 53 times
Been thanked: 3 times

Re: View log for variable  [SOLVED]

Postby tradingest » 16 Apr 2016

many thanks, I resolved.

tradingest


Return to “MultiCharts”