Jump to content

bluethetien

Members+
  • Content Count

    5
  • Joined

  • Last visited

Posts posted by bluethetien


  1. 4 hours ago, peterB said:

    MSPOL is not a valid route. choose either MEMXL (limit order) or MEMXM (market order)

    or put your

    Price=Ask+0.05; before the ROUTE command. As it probably fails to be executed because of the non-existent route in your script so the Price variable is not set hence the error

    It actually works now.

    Thanks for the help though!


  2. 1 hour ago, zulkafil said:

    Hello,

    • Without a stop order how are you risking only $20? You are risking the total amount of an open position.
    • The initial script you provided "StopPrice=Price-0;DefShare=BP*0.925;Price=Ask-Price+0.00;SShare=1000/Price;Share=DefShare-SShare;DefShare=DefShare+SShare;SShare=Share;Sshare=DefShare-SShare;Share=0.5*SShare;TogSShare;ROUTE=MSPOL;Price=Ask+0.05;TIF=DAY+;BUY=Send;DefShare=200"
      • See the bold items in your script, 1000 means risking $1000 if you place an stop order when you open a long position
      • ROUTE=MSPOL , I didn't get it. It should be ROUTE=LIMIT (SMRTL for IB) if you are placing a limit order.

    Finally I will say that, someone should have basic knowledge of script when he/she uses any script.

    Always try your new scripts in sim first for safety.

    Best of luck..

    I'm referring to the youtube video.
    So in Das I have "Double-click to trade" enable.
    image.png.9c31497ee76ebe4b732530c41edeb39f.png
    For example, if the stock's current price is trading at $10 and i want to long the stock with a risk of $1000 per trade. Let's just say my "mental" stop loss level is at $9, then I will just double click $9 on the chart and press the hot key(script)
    It should auto calculate and give me 1000 shares since the distance between $10 to $9 is $1 which is 1000 shares
    as for MSPOL, It is a route that I use a lot which is "MEMX Post only"

    This script is for Das trader pro as the Youtube video stated. I don't use IB.

    I use the same kind of script for short and it's perfectly fine for over 6 months
    I just need this script to calculate the shares for me normally I have "BUY=Send" as "BUY=" so it doesn't send the order out.


  3. 1 hour ago, zulkafil said:

    Hello Bluethetien,

    As you said the script for long w/out stop, it doesn't make sense.  The script will open a long position but logically it is not accurate for opening only a long position or with a stop lose order.  I will suggest you to read this post from the very beginning, so you will understand how any script works.

    Best of luck.

     



    Long with $20 risk per trade WITHOUT Stop Order:
    StopPrice=Price-0;DefShare=BP*0.925;Price=Ask-Price+0.00;SShare=20/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=200;

    ---

    Short with $20 risk per trade WITHOUT Stop Order:
    StopPrice=Price+0;DefShare=BP*0.925;Price=Price-Bid+0.00;SShare=20/Price;Share=DefShare-SShare;DefShare=DefShare+SShare;SShare=Share;Sshare=DefShare-SShare;Share=0.5*SShare;TogSShare;ROUTE=SMRTL;Price=Bid-0.05;TIF=DAY+;SELL=Send;DefShare=200;

    ---

    I got the script from this Youtube video. The short side of the script has been working for me but not the long side


  4. Hi, the short hotkey has been working for me on the short side but the long hot key script hasn't been working at all
    I kept getting "ERROR: Can't get valid price!" message

    This is what I have for Long w/out Stop

    StopPrice=Price-0;DefShare=BP*0.925;Price=Ask-Price+0.00;SShare=1000/Price;Share=DefShare-SShare;DefShare=DefShare+SShare;SShare=Share;Sshare=DefShare-SShare;Share=0.5*SShare;TogSShare;ROUTE=MSPOL;Price=Ask+0.05;TIF=DAY+;BUY=Send;DefShare=200;

     

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