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 Perr0Grande, Today, 08:16 PM
            0 responses
            2 views
            0 likes
            Last Post Perr0Grande  
            Started by elderan, Today, 08:03 PM
            0 responses
            5 views
            0 likes
            Last Post elderan
            by elderan
             
            Started by algospoke, Today, 06:40 PM
            0 responses
            10 views
            0 likes
            Last Post algospoke  
            Started by maybeimnotrader, Today, 05:46 PM
            0 responses
            11 views
            0 likes
            Last Post maybeimnotrader  
            Started by quantismo, Today, 05:13 PM
            0 responses
            7 views
            0 likes
            Last Post quantismo  
            Working...
            X