MarketPosition=2?  [SOLVED]

Questions about MultiCharts and user contributed studies.
kernel
Posts: 91
Joined: 19 Feb 2013
Has thanked: 21 times
Been thanked: 4 times

MarketPosition=2?

Postby kernel » 17 Apr 2015

Isn't it true that MarketPosition returns only 1, indicating long, -1, indicating short, or 0, indicting flat?
wiki:
https://www.multicharts.com/trading-sof ... etPosition

What does it mean by MarketPosition returning 2 as in the following example then?
https://www.multicharts.com/trading-sof ... arketOrder

orion
Posts: 250
Joined: 01 Oct 2014
Has thanked: 65 times
Been thanked: 104 times

Re: MarketPosition=2?

Postby orion » 17 Apr 2015

Isn't it true that MarketPosition returns only 1, indicating long, -1, indicating short, or 0, indicting flat?
Yes.
What does it mean by MarketPosition returning 2 as in the following example then?
https://www.multicharts.com/trading-sof ... arketOrder
That is a typo. However, there are two related keywords:
MarketPosition_at_Broker
MarketPosition_at_Broker_for_the_Strategy.

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

Re: MarketPosition=2?  [SOLVED]

Postby Henry MultiСharts » 23 Apr 2015

I have fixed the error in the example in both Wiki and prebuilt PLEditor help file.


Return to “MultiCharts”