Indicator order info

Questions about MultiCharts .NET and user contributed studies.
Zoli
Posts: 90
Joined: 12 Sep 2012
Has thanked: 24 times
Been thanked: 38 times

Indicator order info

Postby Zoli » 16 Oct 2013

Hello,

Is it possible to access the profit/loss from within an indicator and not a strategy?
Is there something similar to strategy's CurrentPosition.OpenProfit?
What I want to achieve is simple in theory, I want to add to the Scanner window the PnL of a symbol in case I have an open position.

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

Re: Indicator order info

Postby Henry MultiСharts » 17 Oct 2013

Hello Zoli,

There are multiple ways to achieve this goal:
1) Transfer the values with the help of Global Variables or Native C# Solution for Global Storage.
2) Receive the values you need with the help of TradeManager.

Zoli
Posts: 90
Joined: 12 Sep 2012
Has thanked: 24 times
Been thanked: 38 times

Re: Indicator order info

Postby Zoli » 18 Oct 2013

Hi Henry,

Thanks for the reply.
The global variables or storage seem to complicate things as I trade manually and I would need to run a signal for all the instruments in order to store the values in a variable. That might slow everything down.
I tried to use TradeManager but I just seem to always end up with an error or a big 0 as result.
I am definitely not a skilled programmer so I think TradeManager is just way too complicated and needs a complex code to achieve what it seems to be a simple task.

I think having the OpenPnL and AvgPrice column in the Scanner Window would be really useful to monitor the open positions so I have made a feature request.
Anyone interested please vote for it
http://www.multicharts.com/pm/viewissue ... no=MC-1502


Return to “MultiCharts .NET”