Jump to content
Balazs Horvath

DAS hotkey script fo fixed entry amount with fixed stop loss

Recommended Posts

Hi,

I am a newby and trying to write scripts in my DAS pro trial version (14-day trial). I went through the DAS video series on BBT site and downloaded a couple of the scripts available, but I haven’t found the one I was really looking for: fixed entry amount (like $10,000) at ask +0.05 with a fixed amont of stop-loss (like $100). I made a script with ChatGPT and tested it in the replay mode but it didn’t work properly. Chat GPT says it’s because the replay mode doesn’t support trigger orders.

Anyways, here is the script I tried:

Price=Ask+0.05;
DefShare=10000/Price;
Share=DefShare;
RiskPerShare=100/Share;
StopPrice=Price - RiskPerShare;
ROUTE=LIMIT;
TIF=DAY+;
BUY=Send;
TriggerOrder=RT:STOP STOPTYPE:MARKET PX:StopPrice ACT:SELL QTY=Share TIF:DAY+ WAIT=Send

Can anyone help what is wrong with it? (Or there is no problem, just DAS replay mode doesn’t support trigger orders as Chat GPT said)

 

Thanks for your reply!

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...

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.