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

    Good afternoon

    I succeeded in migrating to Platform 7 .. smile .. Have started to learn how to add some alerts to my indicators. Is it possible to include an entry price to a SendMail alert within an indicator?

    My indicator currently draws text (the entry price) on my chart. Appreciate your guidance in including a SendMail alert with an entry price. Thank you.

    Comment


      Hi belecona,

      Great to see you posting and getting continued benefit from NinaScript!

      If you already have entry price in a variable, then you can just add that as part of your email text. This is only available in a strategy because the indicator cannot reference strategy properties like entry price.

      Below is an example SendMail() command. myEntryPrice would be the variable you use for your entry.

      Code:
      SendMail("[email protected]", "[email protected]", "my Subject", "I entered at " + myEntryPrice);
      Last edited by NinjaTrader_RyanM1; 02-08-2011, 04:43 PM.
      Ryan M.NinjaTrader Customer Service

      Comment


        Hi Ryan

        Your prompt response has made my evening .. Thank You! With your kind suggestion, I just compiled my indicator successfully. Will have it on a chart and see if the entry price will be included in the email. FYI: My MailAlert worked while I was waiting for your guidance lol.

        Happy Chinese New Year! Wishing you and your family a Healthy & Prosperous Year of the Rabbit!

        Comment


          My MailAlert with entry price is 1,000,000,...% working .. hooray! Thank You Thank You Ryan!

          Night-night.

          Comment


            .. knock .. knock ..

            Hi Ryan

            Believe you're enjoying a warm spring .. ditto here. Can't believe we have +2-digit temperature in Apr .. haha ..

            Need to pick your brains please. I have an indicator that will plot Sell and Buy dots. Unfortunately, it does not have plots on them which I can use for creating a strategy. Appreciate your guidance on how to create plots and would be great if you have a sample. Thank you.

            Comment


              Hey belecona,

              Yes, so far no complaints with this Colorado spring. Glad yours is going well.

              There's no supported way of exposing when objects are drawn by the indicator from another script. What you need to be able to do is edit the indicator code, and copy the conditions for drawing the signals. Then use these same conditions to determine when to enter or exit the strategy.
              Ryan M.NinjaTrader Customer Service

              Comment


                Thanks Ryan for your prompt response. Seemed more advanced than I thought . I will read more indicators with plots and get some ideas ..

                Comment


                  Hi Ryan

                  I searched the NT support forum and located a strategy script for the indicator Brain Trend in question. When I tried to adapt the codes for my strategy, I got the following error:

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


                  Appreciate your tips on how to fix it. Thank you.

                  Comment


                    I'm not sure what that is. BrainTrendNT is a custom type and there's a custom class there as well. We have no knowledge of their usage so best is to contact the author or vendor of the script for help resolving the programming errors.
                    Ryan M.NinjaTrader Customer Service

                    Comment


                      Funny that I finally compiled the strategy successfully (used the creator's original script except removal of the Add script as it caused system shutdown). It has not triggered any trades though .. sigh ..

                      Luckily, I located a revised indicator that offers me plots on the Buy/Sell dots. I maybe able to create a strategy .. Will see. Thanks Ryan.

                      Have a Nice evening.

                      Comment


                        Hi Ryan

                        I need your tips on how to remove the parameters display on a chart please (per enclosed). Thank you.
                        Attached Files

                        Comment


                          This is the label. We have a sample available here that shows how to custom format a label:
                          Ryan M.NinjaTrader Customer Service

                          Comment


                            Big Big Thank You to you Ryan for your prompt response. I will go through the suggested sample and hopefully can create a custom label. Wish me luck! Smile.

                            Have a Nice evening.

                            Beth (Here is sunny and no more rain.)

                            Comment


                              No problem. If they're not designed to be used as inputs, you can also remove this functionality. Remove the upper-case properties section for these, and then replace all your references in code to the lower case, private one.
                              Ryan M.NinjaTrader Customer Service

                              Comment


                                Thanks Ryan for the additional tips!

                                After going through the sample, I am able to remove the display from an indicator. Will work on the remaining ones now and hopefully they're all smooth sails. My trillion thanks again.

                                Night-night.

                                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