Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

Partner 728x90

Collapse

Currency trading enterlonglimit issue

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

    Currency trading enterlonglimit issue

    I try to using EnterLongLimit(0, true, 1, Price, "long"); in my Currency trading strategy. There are some error popup. Do I need change quantity 1 to something else?

    Many thanks,

    #2
    Hello Thomson,

    Thank you for your note.

    What error are you receiving? Would you be able to provide a screen shot?

    To send a screenshot with Windows 7 or newer I would recommend using Window's Snipping Tool.
    Click here for instructions

    Alternatively to send a screenshot press Alt + PRINT SCREEN to take a screenshot of the selected window. Then go to Start--> Accessories--> Paint, and press CTRL + V to paste the image. Lastly, save as a jpeg file and send the file as an attachment.
    Click here for detailed instruction

    I look forward to your reply.
    Alan P.NinjaTrader Customer Service

    Comment


      #3
      Please see my attached image. BTW, EnterLongLimit(0, true, 1, Price, "long"); Price I am using this.GetCurrentAsk()-3*this.TickSize;
      Free image hosting and sharing service, upload pictures, photo host. Offers integration solutions for uploading images to forums.


      Thanks,

      Comment


        #4
        Hello thomson,

        EnterLongLimit orders need to be submitted below the current ask. Its likley you received this error due to the offer quickly jumping down 3 ticks thus making this offer no longer valid.

        It would be suggested you work your limits further than 3 ticks from the current ask or write logic which would submit a market order rather than a limit order should the offer price be less than say, 5 ticks.

        If you pull up a EURUSD pair in the Superdom, you'll see that the market often trades 3 ticks wide, thus you could expect this error with such a small offset from the current ask.

        Please let us know if you need further assistance.
        Alan P.NinjaTrader Customer Service

        Comment


          #5
          What is the 1 contract quantity in currency trading strategy?Is there any samples for currency auto trading strategy which using enterlonglimit?

          Thanks,

          Comment


            #6
            Hello Thomson,

            What a 1 lot is in FX equivalent is covered at the following section our helpguide,


            I don't have any strategies written for FX specifically however you may find some on the forum at the link below,


            Please let us know if you need further assistance.
            Alan P.NinjaTrader Customer Service

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by usazencort, Today, 01:16 AM
            0 responses
            1 view
            0 likes
            Last Post usazencort  
            Started by kaywai, 09-01-2023, 08:44 PM
            5 responses
            603 views
            0 likes
            Last Post NinjaTrader_Jason  
            Started by xiinteractive, 04-09-2024, 08:08 AM
            6 responses
            22 views
            0 likes
            Last Post xiinteractive  
            Started by Pattontje, Yesterday, 02:10 PM
            2 responses
            21 views
            0 likes
            Last Post Pattontje  
            Started by flybuzz, 04-21-2024, 04:07 PM
            17 responses
            230 views
            0 likes
            Last Post TradingLoss  
            Working...
            X