Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Auto Execution Pause

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Auto Execution Pause

    I have assembled a functioning trade automation EL code that woks with the NT dll which has one element that leaves me a bit uncomfortable (that is before I add risk controls). I am planning to trade Forex.

    What takes place.
    Assume that I will get a visual buy signal on a chart at the price of 123.456.

    The market trades up to and at that price and therefore the signal appears on the chart. Trading pauses after the one trade that caused the signal.

    Trade automation waits for the very next tick before submitting the order.

    I have 2 concerns....

    1. I could find myself with a chart signal going short and the next trade could be in the reverse direction, causing a buy. In this case I believe I will find my chart position to be out of sync with my brokerage position.
    2. That I sit with a chart signal being opposite of my brokerage position when a lot of power comes in and blows through my price. Something I think is likely if trading gets tight.

    Has anyone got an idea about how to approach this?

    Part of the code follows...

    Thanks!
    Don


    If Sellfilled=0 then begin;
    If Close >= SellNT[1] then sellshort next bar at SELLNT STOP;
    Sellfilled=1;Buyfilled=0;
    If marketposition = -1 and barssinceentry=0 and lastbaronchart then begin;
    if Sellfirstorder=0 then begin;
    Success = NTSellMarket("MyOrderId", 20000);
    Sellfirstorder=1;Buyfirstorder=0;
    Last edited by BIGRED; 03-04-2008, 12:43 AM. Reason: Clarification

    #2
    Sorry, not sure I follow. NT executes what ever order you submit from TS to NT via the ATI.

    -> you would need to address your concern in your TS EasyLanguage script.

    Unfortunately we are no experts in EasyLanguage. Thus we could not provide advise.

    Comment


      #3
      Agreed this is a TS / EL issue. The order is held by TS until the a tick that cause the signal on the chart.

      1. If there is anything you have in Ninja Script, it might help.

      2. Another option might be.. going to stop orders. Does NT to MBT support that type of order?

      Thank you
      Don

      Comment


        #4
        - you do have full control of your orders in NinjaScript. You may place/cancel them at any time even based on order status change events
        - yes, MBT supports stops orders

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by Kaledus, Today, 01:29 PM
        0 responses
        3 views
        0 likes
        Last Post Kaledus
        by Kaledus
         
        Started by PaulMohn, Today, 12:36 PM
        1 response
        16 views
        0 likes
        Last Post NinjaTrader_Gaby  
        Started by yertle, Yesterday, 08:38 AM
        8 responses
        37 views
        0 likes
        Last Post ryjoga
        by ryjoga
         
        Started by rdtdale, Today, 01:02 PM
        1 response
        6 views
        0 likes
        Last Post NinjaTrader_LuisH  
        Started by alifarahani, Today, 09:40 AM
        3 responses
        19 views
        0 likes
        Last Post NinjaTrader_Jesse  
        Working...
        X