Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

TS8.3 to NT to MBT ?

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

    #16
    New problem

    TS 8.3 and or the servers have a bug. That bug causes Forex mini's to change to full contracts without warning. Therefore I have begun to look at writing into the EL code, that which is necessary to use the NT DLL.

    I have to go this route over the email one, because there is no way within TS to control the trade size. I want to write the EL code to generate the trades in 8.3.

    I copied the following and have tried various changes to it, in an effort to both produce signals on the TS chart and automated trades happen through NT without success.

    Any help appreciated (or if you have a sample EL that generates both chart signals and trades) I would really appreciate it!!

    Thanks
    Don

    { Copyright (c) 2005, NinjaTrader LLC [email protected] }
    inputs: FastLength(9), SlowLength(18) ;
    variables: FastAvg(0), SlowAvg(0), Success(0);
    if LastBarOnChart and NTConnected(1) then begin
    if NTMarketPosition("") = 0 then begin
    { place an order, if there is no position yet }
    if AverageFC(Close, FastLength) > AverageFC(Close, SlowLength) then begin
    Success = NTBuyMarket("MyOrderId", 1); { buy 1 unit at market, assign order id (optionally) }
    end else begin
    Success = NTSellMarket("MyOrderId", 1); { sell 1 unit at market, assign order id (optionally) }
    end;
    end else begin
    { print some information on the current position and order }
    Print("Position size: " + NumToStr(NTMarketPosition(""), 0));
    Print("AvgEntryPrice: " + NumToStr(NTAvgEntryPrice(""), 2));
    Print("OrderStatus: " + NTOrderStatus("MyOrderId"));
    Print("Filled #: " + NumToStr(NTFilled("MyOrderId"), 0));
    Print("AvgFillPrice: " + NumToStr(NTAvgFillPrice("MyOrderId"), 2));
    end;
    end;

    Comment


      #17
      In the next 6.5 beta we have introduced the ability to set a multiplier value in the TS workspace name.

      Thus, an EL trade value size of "1" which now is translated to 100,000 when TS sends out the email notification can be reduced back to 1 in NT by including a multiplier value of 0.00001.
      RayNinjaTrader Customer Service

      Comment


        #18
        Ray,

        2 things...

        1st - Can 8.3/EL code be written that will work with the NT DLL in a strategy?

        2nd - When do you anticipate the release of next beta?

        Thank you for your help,
        Don

        Comment


          #19
          Hi BIGRED,

          For 1) I believe so though I am not intimiately familiar with TS8.3.
          Josh P.NinjaTrader Customer Service

          Comment


            #20
            Next beta should be out by next week.

            Comment


              #21
              The new beta will only work, if the bug at TS gets handled. If the position size flip flops at their end between 10,000 and 100,000, then setting the multiplier will either change my position size from 10,000 to 1,000 or 100,000 to 10,000.

              IF I could get any type of EL strategy code that generates TS signals that makes use of the NT dll, I would be grateful!.

              Thank you
              Don

              Comment

              Latest Posts

              Collapse

              Topics Statistics Last Post
              Started by Geovanny Suaza, 02-11-2026, 06:32 PM
              0 responses
              603 views
              0 likes
              Last Post Geovanny Suaza  
              Started by Geovanny Suaza, 02-11-2026, 05:51 PM
              0 responses
              349 views
              1 like
              Last Post Geovanny Suaza  
              Started by Mindset, 02-09-2026, 11:44 AM
              0 responses
              104 views
              0 likes
              Last Post Mindset
              by Mindset
               
              Started by Geovanny Suaza, 02-02-2026, 12:30 PM
              0 responses
              560 views
              1 like
              Last Post Geovanny Suaza  
              Started by RFrosty, 01-28-2026, 06:49 PM
              0 responses
              560 views
              1 like
              Last Post RFrosty
              by RFrosty
               
              Working...
              X