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 AaronKoRn, Today, 09:49 PM
    0 responses
    7 views
    0 likes
    Last Post AaronKoRn  
    Started by carnitron, Today, 08:42 PM
    0 responses
    9 views
    0 likes
    Last Post carnitron  
    Started by strategist007, Today, 07:51 PM
    0 responses
    10 views
    0 likes
    Last Post strategist007  
    Started by StockTrader88, 03-06-2021, 08:58 AM
    44 responses
    3,978 views
    3 likes
    Last Post jhudas88  
    Started by rbeckmann05, Today, 06:48 PM
    0 responses
    9 views
    0 likes
    Last Post rbeckmann05  
    Working...
    X