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

Point and Figure New Column Alerts

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

    Point and Figure New Column Alerts

    Hello,

    Initially I tried to program double top and double bottom signals on P&F charts, but then
    I decided just to set an alert if a new column in Point and Figure forms but nothing worked. I used several methods like turning on CalculateOnBarClose and making Alert in OnBarUpdate method. I tried to use FirstTickOfBar in OnBarUpdate still no result.
    I wonder if it is possible to make alerts based on P&F charts?
    Thank for your answer.
    Best regards

    #2
    Hello mikhailov_ruslan,

    Attached is a simple indicator I have created to test your alerts.

    Alerts will go to the Alerts window, open a new Alerts window by clicking File -> New -> Alerts.

    After importing please add this to a chart or to the Market Analyzer. Do not change any settings.

    Follow these steps to import the NinjaScript:

    1. Download the script to your desktop, keep it in the compressed .zip file.
    2. From the Control Center window select the menu File > Utilities > Import NinjaScript
    3. Select the downloaded .zip file
    4. NinjaTrader will then confirm if the import has been successful.

    Critical *Note that on any files that say "File already exists on your PC" that start with an "@" symbol are the ones that came preloaded inside of NinjaTrader so you would say "No" so that you do not override those files.



    After adding to a chart or Market Analyzer and opening a new Alerts window, if the alerts are not appearing, please ensure that you are connected to a live data feed and then send a screenshot of the Alerts window.
    Attached Files
    Chelsea B.NinjaTrader Customer Service

    Comment


      #3
      Hello Chelsea,

      Thank you for this Alert. Now I have an indicator for new column with the help of the file you sent (Though I still didn't get what was wrong with my initial attempt).
      However, I still struggle to make an alert for double top or double bottom. Can you please find a mistake in my logic:

      CalculateOnBarClose = false;

      if (FirstTickOfBar) ResetAlerts();
      if (Close[0]>Open[0] && Close[0]>Close[2]) //Checks whether the new column is X column and whether current X column is higher than the previous one.
      Alert("New Double Top"....);

      Best regards

      Comment


        #4
        Hello,

        I just wanted to mention that ResetAlerts() will remove all alerts from the Alerts window. Is this what you are trying to do?

        Are all of the alerts not being removed?


        What do you mean by double top? Does this reflect the code of the current bar's close being greater than the current bar's close and the current bar's close being greater than the open of two bars ago?
        Chelsea B.NinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by PaulMohn, Today, 03:49 AM
        0 responses
        3 views
        0 likes
        Last Post PaulMohn  
        Started by inanazsocial, Today, 01:15 AM
        1 response
        7 views
        0 likes
        Last Post NinjaTrader_Jason  
        Started by rocketman7, Today, 02:12 AM
        0 responses
        10 views
        0 likes
        Last Post rocketman7  
        Started by dustydbayer, Today, 01:59 AM
        0 responses
        2 views
        0 likes
        Last Post dustydbayer  
        Started by trilliantrader, 04-18-2024, 08:16 AM
        5 responses
        23 views
        0 likes
        Last Post trilliantrader  
        Working...
        X