Jump to content

We have moved to Discord. Please click here to join us in the Trading Terminal Discord server.



These forums are read-only.

Sign in to follow this  
Anthony1231

Automating stop loss based on account percentage

Recommended Posts

Anthony1231

Hey everyone,

The general rule is to never risk more than 2% of your account value on any trade. Is there a way to automate DAS to trigger a stop loss based on a 2% loss of account value, but still be able to manually stop out prior to the 2% being hit, with a marketable limit order if you feel like the trade is going against you? 

Share this post


Link to post
Share on other sites
KyleK29

For being able to remove the STOP automatically, you can add this to the end of your SELL ALL (or COVER ALL) hotkeys: ; CXL ALLSYMB;  --> That clears any open orders for the selected symbol. I use it on all of mine because there were times where I forgot I set price-orders and exited the position. 

Example for my SELL ALL (Long) Hotkey:
 

;Share=Pos;Price=Bid-.05;TIF=DAY+;SELL=Send;CXL ALLSYMB

DAS's scripting is very very limited. You *can* make a hotkey that would send  a STOP order at 2% account value, but it's complex. The 2% account value (some have it as 1%, which is what I think Andrew has in the books) is setup dependent. It should be calculated on your stop distance, which changes with every setup (might be .10 back or .30 back).

Fjmocke has a hotkey here: 

 

If you see my comments at the bottom, there's a version that uses account risk % (original version uses a $dollar amount). I'm working on a new version that will include the Buying Power offset (e.g. if calculated shares is > than buying power available, use lower value). The commands for are very eye-gouging because of DAS's lack of scripting, so I'm also building a tool for the community to set up their hotkeys via a GUI.

I hope to have those out shortly and I'll post back here to let you know.

 

Edited by KyleK29

---------------------------------------------------------
Profile / Project Pages (Dynamic Hotkeys, StreamDeck Files, and other contributions are located here)

Share this post


Link to post
Share on other sites
Sign in to follow this  

[[Template core/front/global/mobileNavigation is throwing an error. This theme may be out of date. Run the support tool in the AdminCP to restore the default theme.]]

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.