Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Forex Strategy not calculating TickSize

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

    Forex Strategy not calculating TickSize

    The settings for the respective Currency pairs seem to be correct but the results in Strategy Analyzer are not calculating P&L based on the correct ticksize. When I run the same strategy on a futures contract, the p&L is correct.

    #2
    Which calculation mode are you in? Maybe this information here could be leading to what you are experiencing? http://www.ninjatrader-support.com/H...tedProfit.html
    Josh P.NinjaTrader Customer Service

    Comment


      #3
      I've attached two screen caps.

      The first shows the results in points and the settings for the instrument, the second shows the same results selected to show currency. The tick amount is not being applied to the currency amount.

      The exact same strategy works perfectly for the Swiss Franc futures with the same settings in the Instrument manager for ticksize and pointvalue.
      Attached Files

      Comment


        #4
        a) which broker did you sim trade on?
        b) please see here to understand qty issues when (sim) trading FX: http://www.ninjatrader-support.com/H...trategies.html

        Comment


          #5
          Dierk,

          Once again, thank you all for your very prompt reply. I apologize that in my reading of the FX strategy section, I somehow missed the area you posted in your above link. Thank you for your resolution.

          For others that may read this at a later date, I will add a field to my strategy for lot size, this will default to 1 for Futures or 100,000 for FX.

          Comment


            #6
            NT Dierk,

            When setting a stop loss for FOREX, the ticksize parameter does not directly correlate to pips. I noticed that with sub-pip support, one ticksize = 10 sub pips.

            So to use ... SetStopLoss(CalculationMode.Ticks, 50);

            I must multiply the 50 by 10. How do you do this programmatically? There must be a system variable that detects whether sub-pip support is on or off.

            Thanks for your help.

            Comment


              #7
              You can use TickSize to determine what the tick is and do the math accordingly.
              Josh P.NinjaTrader Customer Service

              Comment

              Latest Posts

              Collapse

              Topics Statistics Last Post
              Started by helpwanted, Today, 03:06 AM
              1 response
              7 views
              0 likes
              Last Post sarafuenonly123  
              Started by Brevo, Today, 01:45 AM
              0 responses
              7 views
              0 likes
              Last Post Brevo
              by Brevo
               
              Started by aussugardefender, Today, 01:07 AM
              0 responses
              5 views
              0 likes
              Last Post aussugardefender  
              Started by pvincent, 06-23-2022, 12:53 PM
              14 responses
              242 views
              0 likes
              Last Post Nyman
              by Nyman
               
              Started by TraderG23, 12-08-2023, 07:56 AM
              9 responses
              384 views
              1 like
              Last Post Gavini
              by Gavini
               
              Working...
              X