Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Auto Bar size calculation for Forex?

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

    Auto Bar size calculation for Forex?

    Hi,

    I would like some help on how to implement this tool to work with Forex. The indicator basically auto calculates the size based on dollar risk and the last bar that plotted. Currently works well for futures and stocks. I would like it to display size for forex as well. Any help is much appreciated. Here is the code and have attached what the indicator looks like in both futures and stocks.

    thanks

    qi
    Attached Files

    #2
    Thanks for sharing your work, I'll leave this open for the community.

    If you wish to get this professionally modified for you, then you can consider contacting a certified NinjaScript consultant as well -

    Comment


      #3
      OK, nevermind. It works for forex too via lot sizes of 100K. If someone wants to use less, then they will have to change the point value to say 25K as that is the minimum for major brokers.

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by Geovanny Suaza, 02-11-2026, 06:32 PM
      0 responses
      589 views
      0 likes
      Last Post Geovanny Suaza  
      Started by Geovanny Suaza, 02-11-2026, 05:51 PM
      0 responses
      342 views
      1 like
      Last Post Geovanny Suaza  
      Started by Mindset, 02-09-2026, 11:44 AM
      0 responses
      103 views
      0 likes
      Last Post Mindset
      by Mindset
       
      Started by Geovanny Suaza, 02-02-2026, 12:30 PM
      0 responses
      555 views
      1 like
      Last Post Geovanny Suaza  
      Started by RFrosty, 01-28-2026, 06:49 PM
      0 responses
      552 views
      1 like
      Last Post RFrosty
      by RFrosty
       
      Working...
      X