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 CarlTrading, 03-31-2026, 09:41 PM
    1 response
    72 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by CarlTrading, 04-01-2026, 02:41 AM
    0 responses
    39 views
    0 likes
    Last Post CarlTrading  
    Started by CaptainJack, 03-31-2026, 11:44 PM
    0 responses
    63 views
    2 likes
    Last Post CaptainJack  
    Started by CarlTrading, 03-30-2026, 11:51 AM
    0 responses
    63 views
    0 likes
    Last Post CarlTrading  
    Started by CarlTrading, 03-30-2026, 11:48 AM
    0 responses
    53 views
    0 likes
    Last Post CarlTrading  
    Working...
    X