Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Where to start if I want to create a strategy on a trading set-up?

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

    Sure - please send and I'm happy to take a look to see how it should be referenced from a strategy.
    Ryan M.NinjaTrader Customer Service

    Comment


      Hi Ryan

      Your prompt yes has made my week. Just sent the indicator to you.

      Comment


        Good morning

        I have a baby breakthrough tonight. Finally succeeded in capturing the higher time frame conditions as a filter when triggering signals on a lower time frame. My trillion thanks to Ryan for his guidance this week.

        I estimate that my script has a minor bug as it's experiencing arrows' overlapping issue on the same candle. Appreciate any tips to fix it please.

        My filter codes:

        World's leading screen capture + recorder from Snagit + Screencast by Techsmith. Capture, edit and share professional-quality content seamlessly.


        Here it comes a screen shot on the current arrows' overlapping issue:

        World's leading screen capture + recorder from Snagit + Screencast by Techsmith. Capture, edit and share professional-quality content seamlessly.


        Thank you.

        Comment


          Your conditions are evaluated for every series, unless you filter these with BarsInProgress.

          You can add a statement like this that will exclude processing for all other series except for the primary.

          if (BarsInProgress != 0) return;

          Ryan M.NinjaTrader Customer Service

          Comment


            Your prompt suggestion works like a charm! Thanks Ryan. Now I will monitor my new-born baby for a few days before releasing it .. haha .. Have a nice weekend.

            Comment


              You're welcome, belecona. Glad that did the trick. Enjoy your weekend!
              Ryan M.NinjaTrader Customer Service

              Comment


                Good afternoon

                I modified my multi-time frame indicator (with bull and bear filters) over the weekend. Up/Down arrows and Green/Red diamonds have been plotting normal during Market replay and real-time environment. Unfortunately, the audio alerts have not been beeping most of the time when I have Up/Down arrows. Appreciate your suggestion to solve the audio myth. Here it comes my script:

                World's leading screen capture + recorder from Snagit + Screencast by Techsmith. Capture, edit and share professional-quality content seamlessly.


                Thank you.

                Comment


                  You should separate 1)troubleshooting sound playback by code and 2) evaluating the exact condition there.

                  You should first try with a simplified script that is made to only play sound with a simple condition. This is a real time only action. Once you verify it's working you can integrate it into your script.

                  If sound does not playback in a simple script, check that:
                  • File exists in folder C:\Program Files\NinjaTrader 7\sounds
                  • No error messages in log tab of control center.
                  • It triggers in real time.
                  • Can play the sound manually when clicking on it from Windows explorer / My computer.


                  To evaluate if the condition triggers in real time, use a simple print statement which will send to the Tools > Output Window.

                  if (myCondition && !Historical)
                  Print("This condition triggered in real time");
                  Ryan M.NinjaTrader Customer Service

                  Comment


                    Hi Ryan

                    Thanks for your prompt advice. I did more trouble-shooting incl market replay on different markets. I nailed down why the audio alert has not been beeping too often. FYI: It did beep .. just not very diligent lol!

                    Mystery solved and now I know exactly when it will beep. Thank you. Have a great week.

                    Comment


                      Good afternoon

                      I added a SendMail Alert to my indicator and it's working. Unfortunately, the suggested price has too many decimals lol. For example,

                      Sell 6E 1.36311820640099

                      I have the following Codes:

                      Under Variables

                      privatedouble longEntryPrice = 999999999;
                      privatedouble shortEntryPrice = 0;

                      Under protected override void OnBarUpdate()

                      SendMail("[email protected]","[email protected]","Alert:"+ "Buy 6E"+longEntryPrice,"Buy 6E"+longEntryPrice);

                      SendMail("[email protected]","[email protected]","Alert:"+ "Sell 6E"+shortEntryPrice,"Buy 6E"+shortEntryPrice);

                      Please help. Thank you.

                      Comment


                        Sos

                        My SendMail alert has sent me over a few hundreds alerts already for the past half hour. I was market replaying using 500 speed for some minutes. Believe my indicator has a looping code in it. Is there a way to stop the system so that it will stop sending us the remaining alerts? Or have to wait until all alerts dry up?? Please help!

                        Comment


                          You could try with this to format the number to 4 decimal places.

                          longEntryPrice.ToString("N4")

                          shortEntryPriceToString("N4")


                          Ryan M.NinjaTrader Customer Service

                          Comment


                            Originally posted by belecona View Post
                            Good afternoon

                            I added a SendMail Alert to my indicator and it's working. Unfortunately, the suggested price has too many decimals lol. For example,

                            Sell 6E 1.36311820640099

                            I have the following Codes:

                            Under Variables

                            privatedouble longEntryPrice = 999999999;
                            privatedouble shortEntryPrice = 0;

                            Under protected override void OnBarUpdate()

                            SendMail("[email protected]","[email protected]","Alert:"+ "Buy 6E"+longEntryPrice,"Buy 6E"+longEntryPrice);

                            SendMail("[email protected]","[email protected]","Alert:"+ "Sell 6E"+shortEntryPrice,"Buy 6E"+shortEntryPrice);

                            Please help. Thank you.
                            Use Round2TickSize to ensure that your prices print sensible values.

                            Code:
                            double RoundedLE = Instrument.MasterInstrument.Round2TickSize(longEntryPrice);
                            
                            SendMail("[email protected]","[email protected]","Alert:"+ "Buy 6E"+RoundedLE,"Buy 6E"+RoundedLE);
                            etc

                            Comment


                              Please suggest a way to stop the email alerts if there's a way. They're over-flooding my mailbox lol .. oh well ..

                              Comment


                                You'll have to stop running the scripts that are sending out email commands, or comment the SendMail() statements.
                                Ryan M.NinjaTrader Customer Service

                                Comment

                                Latest Posts

                                Collapse

                                Topics Statistics Last Post
                                Started by Geovanny Suaza, 02-11-2026, 06:32 PM
                                0 responses
                                651 views
                                0 likes
                                Last Post Geovanny Suaza  
                                Started by Geovanny Suaza, 02-11-2026, 05:51 PM
                                0 responses
                                370 views
                                1 like
                                Last Post Geovanny Suaza  
                                Started by Mindset, 02-09-2026, 11:44 AM
                                0 responses
                                109 views
                                0 likes
                                Last Post Mindset
                                by Mindset
                                 
                                Started by Geovanny Suaza, 02-02-2026, 12:30 PM
                                0 responses
                                574 views
                                1 like
                                Last Post Geovanny Suaza  
                                Started by RFrosty, 01-28-2026, 06:49 PM
                                0 responses
                                577 views
                                1 like
                                Last Post RFrosty
                                by RFrosty
                                 
                                Working...
                                X