Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

strategy not work

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

    strategy not work

    I think that the backtest and my strategy in general does not work, you could tell me because in the backtest it does not give data, and when executing the live strategy it does not open any trade

    #2
    Hello pedro132,

    Thanks for your post.

    It looks like you are using a very high value for your percent in both the stop loss and profit target so please change from the values you have to smaller values. From the help guide is this note: "Please note in percentage calculation mode a value of 1 is equal to 100%, a value of 0.1 is equal to 10%, and a value of 0.01 will be 1%"
    References:



    Next, please run the strategy Sample MA Crossover using the same strategy analyzer settings. This strategy will always place trades and is a good check as this verifies that you have the data needed to run the backtest.

    If, after adjusting your strategy exits and verifying you have the backtest data, you would need to debug your strategy to understand why it is not performing as expected. In the strategy builder you can debug by having each set draw a marker on the chart when the set is true. Here is a short video that shows how to display markers: https://paul-ninjatrader.tinytake.co...MF8xMTMwNTc0MA

    If the drawings do not help then the next step would be to print out the actual values being used by the conditions. Here is a short video on how to construct a print statement to view the values of variables used in conditions: https://paul-ninjatrader.tinytake.co...NV8xMDk5MDc5Nw

    With those two debugging tools, you should be able to sort out what conditions are not being met.

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by NullPointStrategies, Today, 05:17 AM
    0 responses
    50 views
    0 likes
    Last Post NullPointStrategies  
    Started by argusthome, 03-08-2026, 10:06 AM
    0 responses
    127 views
    0 likes
    Last Post argusthome  
    Started by NabilKhattabi, 03-06-2026, 11:18 AM
    0 responses
    69 views
    0 likes
    Last Post NabilKhattabi  
    Started by Deep42, 03-06-2026, 12:28 AM
    0 responses
    42 views
    0 likes
    Last Post Deep42
    by Deep42
     
    Started by TheRealMorford, 03-05-2026, 06:15 PM
    0 responses
    46 views
    0 likes
    Last Post TheRealMorford  
    Working...
    X