Access GenerateProfitTarget() and GenerateStopLoss() Orders?

Questions about MultiCharts .NET and user contributed studies.
JohnR
Posts: 26
Joined: 05 Sep 2012
Has thanked: 2 times
Been thanked: 2 times

Access GenerateProfitTarget() and GenerateStopLoss() Orders?

Postby JohnR » 10 May 2016

How do you access currently open orders that are open as a result of GenerateProfitTarget() and GenerateStopLoss() ?

For example, if I do this:

Code: Select all

buyLimitOrder.Send(Bars.Close[0],1);
GenerateProfitTarget(.25);
GenerateStopLoss(.25);
How can I access the open orders generated by the GenerateProfitTarget(.25) and GenerateStopLoss(.25)?

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

Re: Access GenerateProfitTarget() and GenerateStopLoss() Ord

Postby Henry MultiСharts » 11 May 2016

Hello JohnR,

Direct order access is available using TradeManger() only.
Please study the following information:
viewtopic.php?f=19&t=45848#p100799

Here is how to check the status of a specific order (filled, pending, working, cancelled, etc.):
viewtopic.php?f=19&t=46241&p=103087#p103087


Return to “MultiCharts .NET”