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.
Indicator order info
- Henry MultiСharts
- Posts: 9165
- Joined: 25 Aug 2011
- Has thanked: 1264 times
- Been thanked: 2957 times
Re: Indicator order info
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.
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.
Re: Indicator order info
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
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