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

REalTime plotting not showing history in A1MarketREminders

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

    REalTime plotting not showing history in A1MarketREminders

    Ecosystem has A1MarketREminders that works well. But it starts by showing the historic alerts on the chart that can be a LOT of old posts not needed for go forward trading.

    May I request advice on how to only go forward with new alerts and not post the historic info? Looks like the author Ninjatrader_Paul is not active.

    A1Marketreminders - NinjaTrader Ecosystem

    #2
    Hello JMont1,

    Thank you for the post.

    From what I can see the easiest way would be to add a realtime check to the alert condition.

    The following code is at line 366:

    Code:
    if (!String.IsNullOrEmpty(SoundFile) && liveMarket && EnableSound)
    {
    PlaySound(@""+SoundFile);
    alert(eventList.Keys[i] +" " +eventList.Values[i]);
    }
    Code:
    if (!String.IsNullOrEmpty(SoundFile) && liveMarket && EnableSound[B] && State == State.Realtime[/B])
    {
    PlaySound(@""+SoundFile);
    alert(eventList.Keys[i] +" " +eventList.Values[i]);
    }
    JesseNinjaTrader Customer Service

    Comment


      #3
      NinjaTrader_Jesse Worked perfect. Thank you.
      Is there a way to stop it from forcing the screen down to the zero price line at initiation? Then it has to wait for an event to trigger to move back up to the visible price area OR user has to scroll all the way up to current price. Then has to adjust the price section for full visibility. This especially sucks for moving all the way up to the over 10,000 area of NQ.

      A solution would be appreciated.

      Comment


        #4
        Hello JMont1,

        I looked at the indicator code but I don't see that it uses plots, are you seeing that a drawing object is being drawn at a 0 price? You can use the Right click -> Drawing tools -> Drawing objects menu to view any applied objects.

        JesseNinjaTrader Customer Service

        Comment


          #5
          NinjaTrader_Jesse I think it is being pushed down there from these lines:

          private MyTextLocation userListPosition = MyTextLocation.None;
          private TextPosition listPosition = TextPosition.BottomLeft;

          I can the first to none as seen, but the second will not accept none. So I seem to have resolved by adding Autoscale = none.

          Thank you for the assistance. Perhaps it would be worthwhile updating that ecosystem version to add the autoscale.

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by Shai Samuel, 07-02-2022, 02:46 PM
          4 responses
          92 views
          0 likes
          Last Post Bidder
          by Bidder
           
          Started by DJ888, Yesterday, 10:57 PM
          0 responses
          6 views
          0 likes
          Last Post DJ888
          by DJ888
           
          Started by MacDad, 02-25-2024, 11:48 PM
          7 responses
          158 views
          0 likes
          Last Post loganjarosz123  
          Started by Belfortbucks, Yesterday, 09:29 PM
          0 responses
          7 views
          0 likes
          Last Post Belfortbucks  
          Started by zstheorist, Yesterday, 07:52 PM
          0 responses
          7 views
          0 likes
          Last Post zstheorist  
          Working...
          X