Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Parameter value showing as 1 in Backtest menu

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

    Parameter value showing as 1 in Backtest menu

    Hi,

    I have added a new parameter which takes values less than 1. However when I open the strategy in the Strategy Analyzer, under the BackTest pop out menu the parameter is shown as taking the value 1? For example, the default value for myParam = 0.15 in my strategy code but myParam displays as 1 under BackTest? myParam is a double and the strategy appears to be using 1 in the backtest instead of 0.15.

    Is there a reason for this?

    Thanks,
    darmbk.

    ANSWERED
    I was using set{ myParam = Math.Max(1, value);} under Properties. I have changed this to just value as I want values less than 1!
    Last edited by darmbk; 07-03-2013, 12:06 PM.

    #2
    ANSWERED
    I was using set{ myParam = Math.Max(1, value);} under Properties. I have changed this to just value as I want values less than 1!

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Mindset, 04-21-2026, 06:46 AM
    0 responses
    115 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by M4ndoo, 04-20-2026, 05:21 PM
    0 responses
    161 views
    0 likes
    Last Post M4ndoo
    by M4ndoo
     
    Started by M4ndoo, 04-19-2026, 05:54 PM
    0 responses
    83 views
    0 likes
    Last Post M4ndoo
    by M4ndoo
     
    Started by cmoran13, 04-16-2026, 01:02 PM
    0 responses
    127 views
    0 likes
    Last Post cmoran13  
    Started by PaulMohn, 04-10-2026, 11:11 AM
    0 responses
    87 views
    0 likes
    Last Post PaulMohn  
    Working...
    X