• 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

  • BIGRED
    started a topic Auto Execution Pause

    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

  • NinjaTrader_Dierk
    replied
    - 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

    Leave a comment:


  • BIGRED
    replied
    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

    Leave a comment:


  • NinjaTrader_Dierk
    replied
    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.

    Leave a comment:

Latest Posts

Collapse

Topics Statistics Last Post
Started by pitifak, Today, 01:01 AM
0 responses
3 views
0 likes
Last Post pitifak
by pitifak
 
Started by rjafcv, Yesterday, 10:40 PM
0 responses
4 views
0 likes
Last Post rjafcv
by rjafcv
 
Started by JAtrades, Yesterday, 07:38 PM
0 responses
3 views
0 likes
Last Post JAtrades  
Started by bouncetherubble, Yesterday, 07:07 PM
0 responses
3 views
0 likes
Last Post bouncetherubble  
Started by bouncetherubble, Yesterday, 06:12 PM
0 responses
6 views
0 likes
Last Post bouncetherubble  
Working...
X