Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Custom Tick Sizes for TrailStop

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

    #16
    Cal, I think you figured it out and it looks like it is working as intended now!

    The values in the output window were very small, ranging from 0.17 to around 4.09. This value needed to be multiplied by 100 to produce the desired results. I changed the code to

    Code:
    SetTrailStop("Long1b", CalculationMode.Ticks, ((PriorDayOHLC().PriorHigh[0] - PriorDayOHLC().PriorLow[0]) *100), false);
    I can't thank you enough for your help in fixing this!!!

    Comment


      #17
      IFT20,

      Glad to hear it!

      Let me know if I can be of further assistance.
      Cal H.NinjaTrader Customer Service

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by argusthome, 03-08-2026, 10:06 AM
      0 responses
      81 views
      0 likes
      Last Post argusthome  
      Started by NabilKhattabi, 03-06-2026, 11:18 AM
      0 responses
      46 views
      0 likes
      Last Post NabilKhattabi  
      Started by Deep42, 03-06-2026, 12:28 AM
      0 responses
      29 views
      0 likes
      Last Post Deep42
      by Deep42
       
      Started by TheRealMorford, 03-05-2026, 06:15 PM
      0 responses
      32 views
      0 likes
      Last Post TheRealMorford  
      Started by Mindset, 02-28-2026, 06:16 AM
      0 responses
      66 views
      0 likes
      Last Post Mindset
      by Mindset
       
      Working...
      X