• If this is your first visit, you will have to register before you can post. To view messages, please scroll below and select the forum that you would like to visits. Questions? Be sure to check out the Forum FAQ.

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.
    DierkNinjaTrader Customer Service

    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
        DierkNinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by ahadari28, Today, 04:01 PM
        0 responses
        1 view
        0 likes
        Last Post ahadari28  
        Started by TazoTodua, Today, 06:00 AM
        1 response
        12 views
        0 likes
        Last Post NinjaTrader_ChelseaB  
        Started by TazoTodua, Today, 09:06 AM
        1 response
        10 views
        0 likes
        Last Post NinjaTrader_ChelseaB  
        Started by gbux11, Today, 02:36 AM
        1 response
        13 views
        0 likes
        Last Post NinjaTrader_ChelseaB  
        Started by NinjaCustomer, 05-09-2019, 08:54 AM
        4 responses
        67 views
        0 likes
        Last Post Harry
        by Harry
         
        Working...
        X