Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Pop up window

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

    Hi Brett,

    Thanks for replay.
    I wanted to ask how can I get mising data for Replay or full set of replay data?

    Thanks
    Peter

    Comment


      Peter, you would need to download missing days via File > Utilities > Download Replay data.

      Comment


        Thanks Bertrand,

        Thanks for info.
        I was checking LineBreak bar type and I am trying to find line break with the wing ,because of the nature of Line Break. Is the way around that I can see on the chart how far the price retraced in oposite direction?

        Thanks
        Peter

        Comment


          Hi Peter, I was then correlate simply the LineBreak based chart to a regular one - this way you could see the 'normal' price action in between.

          Comment


            Thanks Bertrand,

            I am trying to use SetStopLoss for long and short separately..
            if (Position.MarketPosition == MarketPosition.Flat)
            {
            SetStopLoss(CalculationMode.Ticks, stoplossticks);
            }
            Now it looks like this. I want to initialize it separate for long and short .How can I do it?

            Thanks
            peter

            Comment


              Peter,

              This is matched based on entry signal name. You have to use the overload that allows you to tie stop losses with a specific fromEntrySignal. Then provide the same name there as your entries.

              SetStopLoss("myLongSignal", CalculationMode.Ticks, stoplossticks, false);
              EnterLong("myLongSignal");
              Ryan M.NinjaTrader Customer Service

              Comment


                Thanks Ryan,

                1) I am trying to find the way how to print during backtest where SL is .
                The best would be short line(length like candle) and it would show where SL is on every candle.

                2) I am able to optimize the strategy but in Forward test the same strategy showing error that stragy has no parameters. What is the difference in set-up for Forward testing?

                Thanks
                Peter

                Comment


                  Peter, the easiest would be keeping track of your stoploss value used in a variable for example, you can then print this value or draw an object like a dot at this point in your chart to get the stop level visualized.

                  Do you mean in walk forward testing or live trading the strategy then on a chart?

                  Comment


                    Thanks Bertrand,

                    Originally posted by NinjaTrader_Bertrand View Post
                    Peter, the easiest would be keeping track of your stoploss value used in a variable for example, you can then print this value or draw an object like a dot at this point in your chart to get the stop level visualized.
                    CAN YOU SHOW ME SOME EXAMPLE. I DONT KNOW HOW TO START.

                    Do you mean in walk forward testing or live trading the strategy then on a chart?
                    WALK FORWARD TESTING.

                    Thanks
                    Peter

                    Comment


                      Hello,

                      Thanks for help
                      1) I noticed that Walk Forward testing taparameters values king variables/integers values directly from strategy and not from parameters from Strategy analyzer. Am I doing something wrong?
                      2) I would like to take entry in one type of chart Renko and all SL management and exit in Tick chart. I use Renko as Primary Bar chart.
                      Secondary bar type will be Tick50 declared in Initialize()
                      and in area of Stop lose I would use
                      if (BarsInProgress == 0)
                      { ......stop loss set-ups
                      }
                      else
                      {
                      return;
                      }
                      The same I would use in exit.
                      Is this approach correct?

                      Thanks
                      Peter

                      Comment


                        Peter, can you please post the parameters you attempt using in your WFO testing? Please also try with the SampleMACrossOver strategy to rule out any custom code issues.

                        For the stoploss, I would not have a dedicated example - you would for example store your intended stop value in double variable and then you could draw at this value and also use it as price in your SetStopLoss / Exit methods.

                        Comment


                          Thanks Bertrand.

                          I wanted to ask if it is possible to use indicator or other type of script as Trailing stop in manual trading?

                          Thanks
                          Peter

                          Comment


                            This is unfortunately not possible Peter, for the manual trade / ATM entry mode you can use the AutoTrail options to set things up as you need - http://www.ninjatrader.com/support/h...auto_trail.htm

                            If you trade completely mechanically, you could modify those ATM generated from code - please see the SampleAtmStrategy() installed per default as example.

                            Comment


                              Hi Bertrand,

                              Thanks for replay. I was thinking about Trailing stop which will follow MA or percent of the price. Something smooth which will follow the trade. I saw some commercial products which evidently follow smooth curve in Trailing stop. Do you know how can I develop this?

                              Thanks
                              Peter

                              Comment


                                Hello Bertrand,

                                I wanted to ask if you can help me to find example of indicator script which will call other indicators and his function will be to display just signal.

                                Thanks
                                Peter

                                Comment

                                Latest Posts

                                Collapse

                                Topics Statistics Last Post
                                Started by argusthome, 03-08-2026, 10:06 AM
                                0 responses
                                88 views
                                0 likes
                                Last Post argusthome  
                                Started by NabilKhattabi, 03-06-2026, 11:18 AM
                                0 responses
                                48 views
                                0 likes
                                Last Post NabilKhattabi  
                                Started by Deep42, 03-06-2026, 12:28 AM
                                0 responses
                                30 views
                                0 likes
                                Last Post Deep42
                                by Deep42
                                 
                                Started by TheRealMorford, 03-05-2026, 06:15 PM
                                0 responses
                                34 views
                                0 likes
                                Last Post TheRealMorford  
                                Started by Mindset, 02-28-2026, 06:16 AM
                                0 responses
                                68 views
                                0 likes
                                Last Post Mindset
                                by Mindset
                                 
                                Working...
                                X