Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

CalculationMode.Price

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

    CalculationMode.Price

    Can I use CalculationMode.Price with currencies when calling SetStopLimit or SetProfitTarget? Or do I have to use CalculationMode.Pips?

    What is the best method of performing pip math in Ninja? Example:

    Open: 1.3550
    Stop: 1.3500

    The bar closes @ 1.3675 and I want to move the stop to 1.3625.

    Thanks!!
    Last edited by mrmistermike2016; 03-28-2017, 04:34 AM.

    #2
    Hello mrmistermike2016,

    Thanks for your post.

    Yes, you can use any of the CalculationModes.

    I'm not sure I understand your question regarding pip math but if you want the stop to be at 1.3625 then you can use SetStopLoss (CalculationMode.Price, 1.3625);

    Comment


      #3
      I thought I had to use TickSize in order to derive the new prices. So, this works with currencies? Does it work when the TickSize is .00001?

      Thanks in advance.
      Last edited by mrmistermike2016; 03-28-2017, 09:33 AM.

      Comment


        #4
        Hello mrmistermike2016,

        Thanks for your reply.

        When you use Mode.Price you specify the price

        When you use Mode.Ticks, you specify the number of Ticks

        When you use Mode.Pips, you specify the number of Pips

        Examples

        SetStopLoss (CalculationMode.Price, 1.3625); // sets stop at a specific price value

        SetStopLoss (CalculationMode.Ticks, 20); // sets a 20 tick stop loss from the entry.

        SetStopLoss (CalculationMode.Pips, 2); // sets a 2 Pip stop loss from the entry.

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by CarlTrading, 03-31-2026, 09:41 PM
        1 response
        81 views
        1 like
        Last Post NinjaTrader_ChelseaB  
        Started by CarlTrading, 04-01-2026, 02:41 AM
        0 responses
        42 views
        0 likes
        Last Post CarlTrading  
        Started by CaptainJack, 03-31-2026, 11:44 PM
        0 responses
        64 views
        2 likes
        Last Post CaptainJack  
        Started by CarlTrading, 03-30-2026, 11:51 AM
        0 responses
        68 views
        0 likes
        Last Post CarlTrading  
        Started by CarlTrading, 03-30-2026, 11:48 AM
        0 responses
        55 views
        0 likes
        Last Post CarlTrading  
        Working...
        X