Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

optimize for consecutive losses

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

    optimize for consecutive losses

    hi
    is there a way to optimize for minimum consecutive losses, I have checked all the options on the optimizer engine, but couldn't find anything for it or anything similar.

    i found a method for consecutive losses.
    Code:
    SystemPerformance.AllTrades.TradesPerformance.MaxConsecutiveLoser
    how would I go about to create a new optimizer factor (Min consecutive losses)

    #2
    Hello maaz1598,

    What you could do is open the NinjaScript Editor under the Control Center >New>NinjaScript Editor, scroll down to Optimization Fitness foulder, double click on any existing file within the folder. Then right click in the editor>save as, and select a name.

    Within the code you would comment out the existing value= line and write a new Value= line, in your case you could swap out,

    Code:
    Value = strategy.SystemPerformance.AllTrades.TradesPerformance.Percent.Drawdown;
    With,

    Code:
    Value = strategy.SystemPerformance.AllTrades.TradesPerformance.MaxConsecutiveLoser;
    Then right click and compile.

    Please let us know if you need further assistance.
    Alan P.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Leeroy_Jenkins, 01-23-2021, 03:00 AM
    1 response
    23 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by vantojo, Today, 09:32 AM
    1 response
    6 views
    0 likes
    Last Post NinjaTrader_Kate  
    Started by FelipeRXP, Today, 08:40 AM
    2 responses
    13 views
    0 likes
    Last Post FelipeRXP  
    Started by petedian, Today, 08:44 AM
    0 responses
    16 views
    0 likes
    Last Post petedian  
    Started by J0shTrader, Yesterday, 12:29 PM
    1 response
    3 views
    0 likes
    Last Post NinjaTrader_ChrisL  
    Working...
    X