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.

vivek.lr

DAS Hotkey: Add Position to winning trade

Recommended Posts

vivek.lr

Hi All,

I have copied the below hotkeys from the DAS Video series document.  I can able to add shares to the winning Long position, but for the winning short position getting "Error: Can't get valid price!" error.

Can anyone share a hotkey script please? Appreciate your help.

 

Add To A Winning Position Script (Free Roll)
Long Position
CXL ALLSYMB;StopPrice =
Price;Share=Price*100;Price=AvgCost;SShare=Price*100;Share=Share-SShare;Price=Share;Pr
ice=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+;

Short Position
CXL ALLSYMB;StopPrice =
Price;Share=Price*100;Price=AvgCost;SShare=Price*100;Share=Share-SShare;Price=Share;Pr
ice=Share/100;Share=Pos * Price;Price=StopPrice-Bid;SShare=Share /
Price;DefShare=BP*0.97;Share=DefShare-SShare;DefShare=DefShare+SShare;SShare=Share
;SShare=DefShare-SShare;Share=0.5*SShare;Price=Bid-0.05;TogSShare;TIF=DAY+;ROUTE=
SMRTL;SELL=SEND;DefShare=10; TriggerOrder=RT:STOP STOPTYPE:MARKET
PX:StopPrice ACT:BUY STOPPRICE:StopPrice QTY:Pos TIF:DAY+;

 

Thanks,

Vivek

image.png

Share this post


Link to post
Share on other sites
Uriel
On 2/7/2023 at 11:43 AM, vivek.lr said:

Hi All,

I have copied the below hotkeys from the DAS Video series document.  I can able to add shares to the winning Long position, but for the winning short position getting "Error: Can't get valid price!" error.

Can anyone share a hotkey script please? Appreciate your help.

 

Add To A Winning Position Script (Free Roll)
Long Position
CXL ALLSYMB;StopPrice =
Price;Share=Price*100;Price=AvgCost;SShare=Price*100;Share=Share-SShare;Price=Share;Pr
ice=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+;

Short Position
CXL ALLSYMB;StopPrice =
Price;Share=Price*100;Price=AvgCost;SShare=Price*100;Share=Share-SShare;Price=Share;Pr
ice=Share/100;Share=Pos * Price;Price=StopPrice-Bid;SShare=Share /
Price;DefShare=BP*0.97;Share=DefShare-SShare;DefShare=DefShare+SShare;SShare=Share
;SShare=DefShare-SShare;Share=0.5*SShare;Price=Bid-0.05;TogSShare;TIF=DAY+;ROUTE=
SMRTL;SELL=SEND;DefShare=10; TriggerOrder=RT:STOP STOPTYPE:MARKET
PX:StopPrice ACT:BUY STOPPRICE:StopPrice QTY:Pos TIF:DAY+;

 

Thanks,

Vivek

image.png

Hi

I am having the same issue, did you find any help for short positions?' 😞

Uriel

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.