Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

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 -

    BertrandNinjaTrader Customer Service

    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 kempotrader, Today, 08:56 AM
      0 responses
      7 views
      0 likes
      Last Post kempotrader  
      Started by kempotrader, Today, 08:54 AM
      0 responses
      4 views
      0 likes
      Last Post kempotrader  
      Started by mmenigma, Today, 08:54 AM
      0 responses
      2 views
      0 likes
      Last Post mmenigma  
      Started by halgo_boulder, Today, 08:44 AM
      0 responses
      2 views
      0 likes
      Last Post halgo_boulder  
      Started by drewski1980, Today, 08:24 AM
      0 responses
      4 views
      0 likes
      Last Post drewski1980  
      Working...
      X