Jump to content

Balazs Horvath

Lifetime Members
  • Content Count

    4
  • Joined

  • Last visited

Everything posted by Balazs Horvath

  1. Thanks Peter but here it is what I dont understand: I reset my account size and BP to $60,000 (I used the DEMO version and in this case Replay mode) and set the cap to 0,99 both for my first long entry and the second adding entry (I use "Equalized Risk" script for going long (and short also) and the above mentioned "Adding to winning position" scripts, both from the DAS video series). Below are the screenshots of the result. After adding to my position I ended up having 562 shares at $164 which gives a $92,000 position which is a way above my BP ($60,000). How is it possible? I have to add that I have reset my account just before taking this test trade, so maybe I have to wait one day for DAS to process this new setup? (My previous BP was $100,000 by default) Sorry for bothering you with this staff, but it annoys me.... Thanks again for the previous answer, I will check out the links you have provided!
  2. Hi, I have an issue with the following script which comes from the DAS video series: CXL ALLSYMB;StopPrice = Price;Share=Price*100;Price=AvgCost;SShare=Price*100;Share=Share-SShare;Price=Share;Price=Share/100;Share=Pos * Price;Price=Ask-StopPrice;SShare=Share / Price;DefShare=BP*0.97;Share=DefShare-SShare;DefShare=DefShare+SShare;SShare=Share;SShare=DefShare-SShare;Share=0.5*SShare;Price=Ask+0.05;TogSShare;TIF=DAY+;ROUTE=SMRTL;BUY=SEND;DefShare=10; TriggerOrder=RT:STOP STOPTYPE:MARKET PX:StopPrice ACT:SELL STOPPRICE:StopPrice QTY:Pos TIF:DAY+; It calculates the number of shares and risk perfectly fine, my only problem is with the set condition of capping the position size of 97% of the Buying Power. Actually I modified it to 60%, but when I use the script, every time my unrealized profit allows to buy more shares than the capping, the script doesn’t work properly as it ignores the cap and I end up having a much larger position than 60% of my buying power. It just ignores this cap. Has anyone experienced the same? Any solution for that?
  3. 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!
×
×
  • 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.