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 funk10101, Today, 09:43 PM
              0 responses
              6 views
              0 likes
              Last Post funk10101  
              Started by pkefal, 04-11-2024, 07:39 AM
              11 responses
              37 views
              0 likes
              Last Post jeronymite  
              Started by bill2023, Yesterday, 08:51 AM
              8 responses
              44 views
              0 likes
              Last Post bill2023  
              Started by yertle, Today, 08:38 AM
              6 responses
              26 views
              0 likes
              Last Post ryjoga
              by ryjoga
               
              Started by algospoke, Yesterday, 06:40 PM
              2 responses
              24 views
              0 likes
              Last Post algospoke  
              Working...
              X