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.

Stephen Warren

Help with Account BP % Trading

Recommended Posts

Stephen Warren

Hi Everyone,

I am looking for a Das script used to take long or shorts based on account percentage. Example buy 50% Buying power. Das trader system has some scripts that are similar but do not calculate the exact amount and I get a lot of rejected orders. This is the script I use now and it works for 50% (ROUTE=SMRTM;Share=BP*0.5;TIF=DAY+;HANDINST=ANY;BUY=Send) but I need 75% and 100%. A script that calculates daily account BP would be great. Thanks in Advance

Share this post


Link to post
Share on other sites
peterB

75% is 0.75 and 100% is 1.00 instead of 0.5

anyway checkout these https://traderpeter.substack.com/s/dastrader-hotkeys it is covered there in part 4 - how to do it properly with initial equity as the BP changes with opened positions

also note that the reason why your order is declined can vary. with IB very often the margin requirements are more than 4 times on what your cash is so if you have 10k account you can trade only 2500k worth of stock.

Edited by peterB

Share this post


Link to post
Share on other sites
Stephen Warren

Hey Peter,

Thanks for the follow up on the issue. The problem was my hotkey not calculating my equity then filling my order based on percentage. I needed something that could calculate the equity margin and then apply that to my current buying power. If I wanted to utilize 75% buying power, I need a hotkey to calculate the amount I could take because the hot key I am currently using rejects the order at BP*0.75. Do you have a hotkey with no auto risk calculation and just the buy or short function with calculating current equity to margin? Thanks

Edited by Stephen Warren

Share this post


Link to post
Share on other sites
peterB

having hard time to understand the request. can you be more specific with an example?

Share this post


Link to post
Share on other sites
Stephen Warren

ROUTE=SMRTM;Share=BP*0.5;TIF=DAY+;HANDINST=ANY;BUY=Send = Order gets sent successfully

ROUTE=SMRTM;Share=BP*0.75;TIF=DAY+;HANDINST=ANY;BUY=Send = Intermittently rejects the order. Reason - Not enough equity in margin account.

ROUTE=SMRTM;Share=BP*1.0;TIF=DAY+;HANDINST=ANY;BUY=Send = Mostly rejects order due to not enough equity in margin account. 

 

Pulled this from another question someone had but it seems this is the issue I am having. 

"Your order is not accepted. In order to obtain the desired position, the equity with loan value (number) must exceed the initial margin (bigger number)." The position size I'm trying to take is less than my equity let alone my buying power with margin. Anyone know what is gong on?

 

I was looking for a script that would always calculate my equity/margin ratio to fill my account at 75% or 100% buying power. According to the message above, someone mentioned the broker adjusting these margin limits per ticker but not sure. Thanks

Share this post


Link to post
Share on other sites
peterB

the problem here is the margin requirement we do not know, it should be in future versions of DAStrader but today we just can work only with reading the initial equity as described here

anyway you are trying to buy too many shares so you can just lower your risk or raise your account balance to solve that

sometimes just setting wider stop is the quick solution so if it does not want to buy you 100 shares for $1 risk then you widen the stop to $2 and it will try to buy you 50 shares instead - this applies to static risk hotkeys.

if you always want to go full boat load that is a gambling category not a risk management

Share this post


Link to post
Share on other sites
Stephen Warren

Hey Peter, thanks for the info. I only use manual stops. The stocks I trade are high value on a 30k initial account size. I mainly trade NVDA, TSLA, AAPL, and AMD. These stocks are over $100 and are hard to manage share size because of the higher values and somewhat lower equity margins. Not NVDA since the split but the others are relatively higher. I usually like to take around 150 or 500 shares per trade and I will risk only about 100 to 150 per trade. So, that's why the hotkeys are so important because I have lost a lot of opportunities with order rejections. I just really need to hone in on the order execution. When an order gets rejected, I am forced to immediately terminate engaging the trade because my plan essentially failed and entry is a key component of my strategy. Hopefully Das will fix it soon and I really appreciate you taking the time to help. If you find out anything else about these hotkeys please tag me or let me know. Thanks Peter and take care,

Stephen 

Share this post


Link to post
Share on other sites
peterB

i might have a solution for you if you are trading only specific stocks. we can have conditional BP for each symbol ticker so if you trade TSLA you know you can take 350 shares then it would take you 350 shares

you can do it even without any scripting just make hot buttons with the corresponging share size for each symbol...

Share this post


Link to post
Share on other sites
Paul aka Aurbano

hi @Stephen Warren , did you consider moving to options and reduce your equity needs ?? as it happens, peterB is 100% right with the margin requeriments. They are quite different often between stocks, ETFs, etc. Those requirements are public and there are tons of places to be found. More over, sometimes you can leverage 6:1 with AMD or TSLA but only 1:1 with NIO, MARA or ETFs ... (every ticker has its own requeriments) ...

 

Share this post


Link to post
Share on other sites

[[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.