P&L in USD

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

P&L in USD

Postby tradingest » 16 May 2016

Hi all,

I can view the profit and loss in USD? How I can do?

Image

Code: Select all

setbreakeven(50);
setstoploss(200);
setprofittarget(60);
setDollarTrailing(30);
I would like set the amount above in USD. If the currency is not set these amounts in which currency are?

Thanks,
tradingest
Attachments
Immagine 011.png
(6.48 KiB) Downloaded 631 times

User avatar
Henry MultiСharts
Posts: 9165
Joined: 25 Aug 2011
Has thanked: 1264 times
Been thanked: 2957 times

Re: P&L in USD

Postby Henry MultiСharts » 16 May 2016

Hello tradingest,

In MultiCharts please go to File->Preferences->Trading-> Select USD in the Preferred currency dropdown menu.

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

Re: P&L in USD

Postby tradingest » 16 May 2016

Thanks Henry,

but the amount write in code is express in USD or EUR? I can choose the currency?

setstoploss (50). Which currency?

tradingest

User avatar
Henry MultiСharts
Posts: 9165
Joined: 25 Aug 2011
Has thanked: 1264 times
Been thanked: 2957 times

Re: P&L in USD

Postby Henry MultiСharts » 17 May 2016

The inputs for the special orders (such as SetStopLoss, SetProfitTarget, etc.) are treated in the Base Currency selected in Format->Strategy Properties->Properties.
If you want them to be treated in the currency of the symbol you need to use MultiCharts 9.1 or above and change the setting in the Windows Registry editor. Go to HKEY_CURRENT_USER\Software\TS Support\your MultiCharts version\StrategyProp and create a key SpecOrdersAmountIsStrategyCurr.
0 - calculate amount in instrument's currency.
1 - calculate amount in strategy/portfolio currency.
Basically this is described in the help file for the command in the PowerLanguage editor.


Return to “MultiCharts”