• 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

order ID changed?

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

    order ID changed?

    Hello,

    I'm trying to code my trading plan with Esignal and I've got the following problem.

    Here is a part of my code:

    if ( NTConnected() && NTMarketPosition("Sim101") == 0 && isLastBarOnChart())
    {
    orderID = NTNewOrderId();

    NTCommand("Place","Sim101","Sell",size,"STOPLIMIT" , low()-0.0001, low()-0.0001,"","",orderID, "EUROFUTURES","");
    }

    orderID is a global variable.

    Later I'm trying to change this order:

    if ( NTConnected() && NTMarketPosition("Sim101") == 0 && isLastBarOnChart()) {
    NTChange(orderID,size,low()-0.0001, low()-0.0001);
    }

    However, I've got an error in my log:

    PM,AutoTrade,OIF, 'Change;;6E 03-06;;1;;1.1888;1.1888;;;08B9117857A54E9DB357DDFB8EB 9DA67;;' order with ID/Name'08B9117857A54E9DB357DDFB8EB9DA67' does not exist,

    I think it was change from 08B9117857A54E9DB357DDFB8EB9DA67 to something like '84670cf7aea247b5abc167491221a8af/Sim101'

    PM,Order,Order='84670cf7aea247b5abc167491221a8af/Sim101' Name='Entry' New State=PendingSubmit Instrument='6E 03-06' Action=Sell Limit price=1.1887 Stop price=1.1887 Quantity=1 Type=StopLimit Filled=0 Fill price=0 Error=NoError Native error='',

    Where am I wrong?

    Thanks!


    #2
    imported post

    This is a bug that will be fixed in the next update due out tomorrow. Just to eloborate, this only happens when placing an order and referencing a strategy template to execute.
    RayNinjaTrader Customer Service

    Comment


      #3
      imported post

      Howcan activate\change a strategy not using the NTCommand? In other words, how can I solve the problem below under current NT version.

      Thank you!

      Comment


        #4
        imported post

        You can't. Tomorrow we will release an update that will resolve the issue.
        RayNinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by sgordet, Today, 10:31 PM
        0 responses
        1 view
        0 likes
        Last Post sgordet
        by sgordet
         
        Started by Ilpropio, Today, 09:45 PM
        0 responses
        2 views
        0 likes
        Last Post Ilpropio  
        Started by Revan, Today, 05:44 PM
        1 response
        14 views
        0 likes
        Last Post NinjaTrader_Marco  
        Started by superg3, Today, 07:57 PM
        0 responses
        3 views
        0 likes
        Last Post superg3
        by superg3
         
        Started by Longhornmark, Today, 07:06 AM
        5 responses
        35 views
        0 likes
        Last Post nkhoi
        by nkhoi
         
        Working...
        X