Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Change value risk on AdvancedRiskReward Add

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

    Change value risk on AdvancedRiskReward Add

    Hi, sorry for my English first because i'm French.

    I just donwload AdvancedRiskReward add on NT8, this is a very good tool !
    Can i change RiskPercent value ? I mean i want to use 0.3% or 0.7% Or something under 1% but i can't.

    Do you think it's possible to change something on the code ?

    Thanks

    Ricked

    #2
    Hi Ricked, thanks for posting. You will need to edit the Range of the public property. On line 1949, change it to this:

    [Range(0, double.MaxValue)]

    Comment


      #3
      Click image for larger version  Name:	Capture d’écran 2022-09-02 182444.jpg Views:	0 Size:	27.5 KB ID:	1214172
      Thank you ChrisL, i juste chance value to 0 but nothing better. I suppose i need to restart NT8.

      There is an other problem, When i draw RR with AdvancedRiskReward for exemple SL 30 pts, in réality is 60 pts. Any idéa ?
      Last edited by Ricked; 09-02-2022, 10:25 AM.

      Comment


        #4
        Doesn't works Chris with for exemple 0,3% risk. under 1% it's impossible

        Click image for larger version

Name:	Capture d’écran 2022-09-02 183028.jpg
Views:	152
Size:	19.4 KB
ID:	1214174

        Comment


          #5

          I tried to figure out today why the point value displayed on the SL and TP is half of the actual value. But I do not understand.
          Last edited by Ricked; 09-06-2022, 11:28 AM.

          Comment


            #6
            Hello Ricked,

            I had a look here since I had converted the script, but I do not have too much else to add. Since the script is a conversion it was built to match the NinjaTrader 7 version, it is not an original script of our own.

            I can comment that changing the Range attribute will allow saving a smaller value than 1 saved as the RiskPercent property, and this value does not get overwritten by the indicator.

            The script then uses the RiskPercent in various parts of the code. For example:

            Contracts = (int)( ((AccountSize * RiskPercent)/100) /PotentialProfit);

            Contracts = (int)(((AccountSize * RiskPercent)/100) /PotentialLoss);

            If you find that changing the Range attribute to allow values less than 1, and inputting values less than 1 does not give you the result you are looking for, the next step is to then see how that property is used to derive the calculation.

            Prints can be used to track what a specific property is when a calculation is being made, so you can break down that calculation and make adjustments if desired.



            Let us know if you have any additional questions.

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by Geovanny Suaza, 02-11-2026, 06:32 PM
            0 responses
            646 views
            0 likes
            Last Post Geovanny Suaza  
            Started by Geovanny Suaza, 02-11-2026, 05:51 PM
            0 responses
            367 views
            1 like
            Last Post Geovanny Suaza  
            Started by Mindset, 02-09-2026, 11:44 AM
            0 responses
            107 views
            0 likes
            Last Post Mindset
            by Mindset
             
            Started by Geovanny Suaza, 02-02-2026, 12:30 PM
            0 responses
            569 views
            1 like
            Last Post Geovanny Suaza  
            Started by RFrosty, 01-28-2026, 06:49 PM
            0 responses
            573 views
            1 like
            Last Post RFrosty
            by RFrosty
             
            Working...
            X