Manual Trading: How Best To Close All (Selected) Positions
Author: StratMan
Creation Date: 2/16/2017 6:42 AM
profile picture

StratMan

#1
Hey there...

New to WLP and truly could use some help in order to know what to study after downloading and scanning through most of the UserGuides and doing numerous forum searches on "manual", "discretion", "close all" and similar keywords looking for info on how to create and use very basic manual trading methods and scripts so that I don't have to use Fidelity's website for entering/exiting equities.

This is the second topic on this subject from the first one:
https://www.wealth-lab.com/Forum/Posts/Manual-Trading-GoLong-How-To-Stage-Orders-38693

Ideally, it would be great if one simply could select/highlight some/all live positions in the Account Balances/Positions window, right-click on a selected line-item to then queue those symbols as staged Sell orders in the Orders window as I described in Topic#38693. IOW, how can multiple symbols be queued to Sell that then are submitted all at once?

Since that doesn't happen, shall it be assumed WLP does not have any feature/function that allows one simply to click on a live position to then close it as other trading platforms have in their feature-sets?

If so, then I sure would appreciate some help and guidance on these tidbits of info that sound like they might be the "components" for creating some kind of method or script that would allow for a simple "select and sell" process to trigger and send.

1) How To Close All Positions?...
https://www.wealth-lab.com/Forum/Posts/How-to-Close-All-Active-Positions-at-15-55-EST-36714
Which lead to: Discretionary entries: How and what to use in the Community Components Extension?
https://www.wealth-lab.com/Forum/Posts/Discretionary-entries-38163

How might this code concept just below be used and where might the How-To info be for learning more on how to implement such a method? Forgive me, but the learning curve is quite steep and I'm not sure where to set my sights in the "right direction".
CODE:
Please log in to see this code.



2) Can some kind of Exit-Only Semi-AutoStrat be created? If so, does WLP have the ability to run a script that "assumes real-world positions" for the selected account(s) and selected positions in order to then "Close All Positions" selected?


Aside from trying to describe what is being visualized, I've hit a wall on not finding much info on this and am wondering if anyone can please help with ideas or existing solutions that might be worthwhile to investigate and test.

I truly would appreciate any and all ideas or comments on an approach for achieving this "Close All Selected Positions" goal.

Thank you so much!
profile picture

Eugene

#2
QUOTE:
2) Can some kind of Exit-Only Semi-AutoStrat be created?

You might find related information and some ideas here, for example: Exit Only Strategy
profile picture

Cone

#3
QUOTE:
IOW, how can multiple symbols be queued to Sell that then are submitted all at once?
The Accounts tool in WL Pro is more of a register and can't help you with managing trading positions. Also, strategy code always runs hypothetically and never has knowledge of your actual live positions, however the Orders tool does have a way to synchronize shares in exit orders created by strategies.

QUOTE:
Since that doesn't happen, shall it be assumed WLP does not have any feature/function that allows one simply to click on a live position to then close it as other trading platforms have in their feature-sets?
Right. If you just want to click on a live position and trade with discretion, use AT Pro instead. That's what that platform is for. If you want to backtest and trade a real strategy that you've code, Wealth-Lab is the tool for that objective.

QUOTE:
Can some kind of Exit-Only Semi-AutoStrat be created?.. does WLP have the ability to run a script that "assumes real-world positions" ... ?
Yes, but before I create something that might work for you...

1. what's your motivation for wanting an "exit all" feature? panic button? or is it something you will use everyday?
2. how exactly do you want to exit all positions? AtMarket? Stops? Trailing Stop? Limit?
profile picture

StratMan

#4
QUOTE:
2) Can some kind of Exit-Only Semi-AutoStrat be created?[quote]You might find related information and some ideas here, for example: (Exit Only Strategy)
Thanks, Eugene. Yes, it certainly appears to have lots of ideas to explore once I can determine the best approach to take with this Manual Exit Only method, which I'll now describe in more detail in follow-up to Cone's post.
profile picture

StratMan

#5
QUOTE:
StratMan: Since that doesn't happen, shall it be assumed WLP does not have any feature/function that allows one simply to click on a live position to then close it as other trading platforms have in their feature-sets?

Cone: Right. If you just want to click on a live position and trade with discretion, use AT Pro instead. That's what that platform is for. If you want to backtest and trade a real strategy that you've code, Wealth-Lab is the tool for that objective.
Thank you for that helpful reply!

Having never investigated ATP, I did so this afternoon by watching some of the videos and reading up on its feature set and UI.

Out of the gate, it appears to have the entry / exit functionality I'm looking for as described above where I probably should give it a test drive.

While it's assumed ATP is not officially supported on this forum, don't suppose you, Eugene or anyone else might be willing to comment on my concerns about its "heavy" system requirements compared to WLP's very low overhead processing load and "thin" install.

https://www.fidelity.com/trading/advanced-trading-tools/active-trader-pro/system-requirements

Win10 is preferred but Win7 Pro (that's my OS) is acceptable
While my system meets the preferred i7 CPU 3.4 GHz Intel chip spec, it only has 8 GB RAM installed and uses Intel's onboard HD Graphics
And .NET Framework v4.5.1 and Adobe Flash are required and packaged with ATP

Man, my "knee-jerk-reaction" is... Wow, ATP sounds like a "processor-hog" that will slow to a crawl if the hardware doesn't meet those required specs.

This WLP/ATP Newbie sincerely could use some "real-world" feedback on just how fast or slow and reliable ATP actually might be on a custom, Win7 Pro SP1, thin install from bare metal where only 29 processes load at boot-time and nothing runs automatically.

Again, thank you all very much for your replies! :)
profile picture

Eugene

#6
<Offtopic>

IMHO, ATP's processor requirements are relaxed enough considering that first gen dual core CPUs from a decade ago also qualify:

Active Trader Pro: Intel Core i5/i7 or equivalent dual or quad core 3.0 GHz
Active Trader Pro: Dual Core Processor 2.53 GHz or faster

Like I once said about the 3GHz CPU minimum requirement, it reminds me more of a hot 90-nm Pentium 4 or the like. The 82W P4 @ 3GHz is slower than today's 4W Atom PC on a USB stick.

</Offtopic>
profile picture

StratMan

#7
<Offtopic>

Appreciate the input on the ATP hardware requirements, Eugene. Kindly forgive the sidebar as I only was replying to Cone's suggestion where some additional feedback truly is needed to make some platform decisions since both clearly have their dramatic pros/cons.

My suspicions were correct: WLP = approx 124000K ram and ATP = 410000k+ ram where its load continues to increase the longer its been running to the point where ATP then impedes the operations of my other trading platform where time doesn't avail to deal with new/upgraded hardware.

Are many users on this forum familiar with ATP? Any "converts"?

If so, it would be tremendously helpful to know where I could get some high-level, "real-world", User feedback and guidance on ATP as a platform and on WLP as related to this topic for how to easily "Exit/Close" Multiple Symbols at once (like with Staged Orders that can be queued up)... As that is the primary goal; even though ATP has some very cool "heavy load" features.

Thank you again...

<Offtopic>
This website uses cookies to improve your experience. We'll assume you're ok with that, but you can opt-out if you wish (Read more).