Jump to content

pjjsfv

*Subscriber*
  • Content Count

    16
  • Joined

  • Last visited

Posts posted by pjjsfv


  1. hello,

    I am using the following script to place a stop on a long position that I am already in by double clicking the chart and then pressing the hotkey. 

    Share=Pos;ROUTE=STOP;StopType=market;StopPrice=Price;TIF=DAY+;SELL=SEND

    My question is, would it be possible for the script to check if your open position is a long or a short and then according to your position insert the "SELL" or "BUY"

    Thank you

    Peter

     


  2. 12 hours ago, kimfarr83 said:

    Hello All,

    Hope all of you are well.

    I've got a hopefully easy fix question for those who might have it already. I would like to have a close and flip position hotkey please.

    Scenario:

    Step 1: Lets say I am short and want to cover my position and therefore I use the following hotkey from Kyle:

    CXL ALLSYMB;Route=SMRTM;Share=Pos;Price=Ask+0.05;TIF=DAY+;BUY=Send;

    Step 2: Now I would like to enter a long position with fixed risk, therefore I double click my stop loss price on the chart and use the following Kyle's hotkey:

    StopPrice=Price-0.01;DefShare=BP*0.97;Price=Ask-Price+0.01;SShare=75/Price;Share=DefShare-SShare;DefShare=DefShare+SShare;SShare=Share;Sshare=DefShare-SShare;Share=0.5*SShare;TogSShare;ROUTE=SMRTL;Price= Ask+0.05;TIF=DAY+;BUY=Send;DefShare=0;TriggerOrder=RT:STOP STOPTYPE:MARKET PX:StopPrice-0.05 ACT:SELL STOPPRICE:StopPrice QTY:Pos TIF:DAY+;

    Question: Is it possible to have the above 2 steps in one single hotkey please?

    Basically, I just need to get the amount of shares held in the current short, and add that number to the result of the long entry hotkey (step 2), before it is actually executed. That way the short is covered and a fixed risk long is opened.

    Appreciate all the help.

    Thanks in advance and good day,

    Kim

    Hi Kim,

    if you're looking to flip your short position to a long position (i wouldn't recommend it) but here is the code for it: 

    Flip SHORT to LONG position

    CXL ALLSYMB;ROUTE=SMRTL;Share=Pos*2;Price=Ask+.05;TIF=DAY+;BUY=Send

     

    Flip LONG to SHORT position

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

     

    I hope this helps.

    Peter

     


  3. This hotkey is amazing to say the least.. Hats off to Kyle and everyone else who contributed to this game changing script.

    I would like to know if it would be possible for the script to take the VWAP or any moving average variable and and automatically calculate shares based on BP and amount risk and insert stop loss say at 1% under vwap or said moving average all with one click of a hotkey. I know you can do this by double clicking into the chart, I was just hoping to save a step...

     

    Again, thank you for all you guys do for the trading/DAS community. Truly amazing.

    Peter


  4. Hi BBT, I am new to the forum and I am so impressed by the knowledge that is shared . Thank you

    My question is how could I take this script :Share=Pos;ROUTE=STOP;StopType=Market;StopPrice=AvgCost-0.10;TIF=DAY+;SELL=SEND   

     instead of a set amount of 0.10 , to have that minus an X% of AvgCost.  For example have it minus 5% of AvgCost.

    Thank you in advance

×
×
  • 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.