Jump to content

salvador ramos

Lifetime Members
  • Content Count

    4
  • Joined

  • Last visited

Posts posted by salvador ramos


  1. On 10/10/2019 at 8:10 AM, KyleK29 said:

    Hey Lads and Lasses, apologize for the delay in replying .. I was on a vacation and then took some time to get back into the groove of things. I did find where they make those beautiful postcards (jk) ...

    1350044205_MVIMG_20190925_102918(Large).thumb.jpg.c0d6ec3a32f2bb9afe7baee6c5b529dc.jpg

    ^^^ Beautiful location ... the swim back to the boat was a tad much though.

    1348880992_IMG_20190927_175945(Large).thumb.jpg.eb389ea4264903b21f2828eb5be29164.jpg

     

    Anyways ...

     

    I missed this earlier. When you scale-in, are you using the scale-in version of the hotkeys or the original risk management version? You should use the scale-in versions if you aren't already.

     

    SwitchTWnd is for switching the Trade Window. You'd probably want FOCUSWINDOW. If you right click the titlebar of the Montage you want --> config and then give it a name .. you can then focus it. So the hotkey would be   FOCUSWINDOW MYWINDOWTITLE;    Just put that at the front of any hotkey you want. The double-click already does this though.

     

    Ok, thanks. I'll take a look at it.

     

    Usually the negative values are caused by the BP function not getting the correct equity for the calculation. If I had to guess, your Montage was set to the IBCO account that isn't funded yet (your LIVE account, which has $0 buying power). It begins with "U". Swap the Montage to the account that begins with "TR" and give it another try ... let me know if that fixes it for you.

     

     

    You'd likely have to do it with two different hotkeys and the Spreadsheet has a few examples of Range Orders with a 2:1.  The *ideal* way would be to modify the TriggerOrder, but I just tested it and DAS doesn't like the math at all. DAS has a very simplistic mathing engine, so you can't do the proper sequence like you could if it allowed HighPrice=(AvgCost-StopPrice)*3+AvgCost .

    If you're using the "StopType=Market" (as recommended), the Price will be 0. This is because DAS forces it to that value when you submit the order, the actual triggering price is stored in the "Type" column (e.g. "SM: 10.10"). It's also the reason the stop-order arrow doesn't show on the chart (because it's sitting at 0).

     

    For the 2:1 partial. You'd be better off doing a second hotkey that sets a partial limit order. Like:
    1) Double-click, hit normal "long" hotkey (for this example). It'll set the stop order when it's filled.
    2) Hit second hotkey that sets the partial take-profit .. like (assuming 25% partial): 

    
    SHARE=POS*0.25;SHARE=ROUND;ROUTE=LIMIT;PRICE=AVGCOST+AVGCOST-STOPPRICE;TIF=DAY+;Send=Reverse;

     

    Hi There. for this script above, can you set is to work for covering as well on short. or what do i need to change for it to work this way? thanks for your time.

     

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