Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

Partner 728x90

Collapse

Scalper Indicator

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

    Scalper Indicator

    I am testing Gumphrie's Scalper Indicator. It would be really useful if an alert was sounded when the arrow on the trigger bar is printed. My own programming skills aren't up to it. Can anyone help please?

    #2
    You might consider contacting the author for support.

    Comment


      #3
      Captain ,open with edit and add this in red in the lines 124 ,160

      if
      ((Close[0] < TriggerBarLow) && (0!=ExtremeBar))
      {
      ExtremeBar = ExtremeBar + counter;
      HighPainted =
      true;
      counter=-
      1;
      scalpSeries.Set(CurrentBar-ExtremeBar);
      ExtremeBar=
      0;
      PlaySound(
      @"C:\Program Files\NinjaTrader 6.5\sounds\Reversing.wav");
      }
      and

      if ((Close[0] > TriggerBarHigh) && (0!=ExtremeBar))
      {
      ExtremeBar = ExtremeBar + counter;
      HighPainted =
      false;
      counter=-
      1;
      scalpSeries.Set(CurrentBar-ExtremeBar);
      ExtremeBar=
      0;
      PlaySound(
      @"C:\Program Files\NinjaTrader 6.5\sounds\Reversing.wav");
      }
      compile and enjoy

      Comment


        #4
        Cyborg, thanks for taking the time to help but I get the error message

        The name 'Playsound' does not exist in the current context

        Comment


          #5
          Maybe try something like this (although play sound should basically do the same thing):

          Code:
          Alert("Scalp Alert", Priority.High, "Scalp Alert", @"C:\Program Files\NinjaTrader 6.5\sounds\OrderPending.wav", 0, Color.White, Color.Red);

          Comment


            #6
            Many thanks Elliot Wave. That's compiled OK. I'll wait until Monday to test it.

            Comment


              #7
              Originally posted by captainquincy View Post
              Cyborg, thanks for taking the time to help but I get the error message

              The name 'Playsound' does not exist in the current context
              I just tried this on 6.5 and do NOT get any error messages. Of course I did a cut & paste, so it was entered as "PlaySound" instead of "Playsound".

              Originally posted by captainquincy View Post
              Many thanks Elliot Wave. That's compiled OK. I'll wait until Monday to test it.
              If you have saved data, you don't have to wait until Monday to test, you can use Market Replay to test it at any time.

              Comment


                #8
                With this indicator it doesnt update.But it seems to do this with other indicators to.
                Like if you leave the chart sitting come back an hour later it still has the same long bar signal printed and the price has moved down.Then you go to indicators click apply then 3 signals display since the last one.Anyway to fix this?Not updating refreshing?Starting to wonder if this is a bug in NT because its not just with this indicator.

                Comment

                Latest Posts

                Collapse

                Topics Statistics Last Post
                Started by cre8able, Today, 01:16 PM
                2 responses
                9 views
                0 likes
                Last Post cre8able  
                Started by chbruno, 04-24-2024, 04:10 PM
                3 responses
                48 views
                0 likes
                Last Post NinjaTrader_Gaby  
                Started by samish18, Today, 01:01 PM
                1 response
                7 views
                0 likes
                Last Post NinjaTrader_LuisH  
                Started by WHICKED, Today, 12:56 PM
                1 response
                9 views
                0 likes
                Last Post NinjaTrader_Gaby  
                Started by WHICKED, Today, 12:45 PM
                1 response
                11 views
                0 likes
                Last Post NinjaTrader_Gaby  
                Working...
                X