| TradeStation Custom Programming Discuss projects, ideas, obstacles in programming with TradeStation. |
![]() | | Tweet | |
| | #1 | ||
![]() | Quantity of Position Open, Position Quantity GetPositionQuantity(GetSy mbolName, GetAccountID) Short Positions are designated by a negative number. This code displays the quantity open on the chart. Code: var: QtyOpen(0); Once begin Value1 = Text_new( D, T, H, "x"); end; QtyOpen = GetPositionQuantity(GetSymbolName, GetAccountID); Text_SetString(Value1, " Positions: " + NumToStr(QtyOpen,0)); Text_SetLocation(Value1, D, T, H + 0.02 ); Text_setcolor(Value1, Black);
__________________ Precise, "dialed-in", targeted combination setups, like opening a combination lock; is the experience you should be having while trading. Dial left, right, left, . . . click - the lock opens. | ||
| |
|
| | #2 | ||
![]() | Re: Quantity of Position Open, Position Quantity Code: If HigherHigh and QtyOpen > 0 then begin
value1 = MarketOrder("OncePerBar", GetAccountID(), "Sell", "Future", GetSymbolName, QtyOpen);
Condition1 = (PlaySound("c:\Wave\CloseLong.wav"));
End;
__________________ Precise, "dialed-in", targeted combination setups, like opening a combination lock; is the experience you should be having while trading. Dial left, right, left, . . . click - the lock opens. | ||
| |
|
| The Following 2 Users Say Thank You to Tradewinds For This Useful Post: | ||
MadMarketScientist (10-26-2011), zdo (10-26-2011) | ||
![]() |
| Tags |
| position quantity, quantity open |
| Thread Tools | |
| Display Modes | Help Others By Rating This Thread |
| |
| ∧ Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Position Sizing | carltonp | Beginners Forum | 22 | 04-28-2012 09:09 AM |
| When Do You Add to a Position? | mslk | Trading and the Markets | 7 | 10-27-2011 08:13 AM |
| Reversing Position Help | rickek | Coding Forum | 0 | 03-19-2009 03:53 PM |
| Trading Around a Position | RobinHood | Beginners Forum | 9 | 09-05-2008 03:01 PM |
| Exit a Position | 156 | Beginners Forum | 5 | 07-29-2008 01:10 PM |