• If this is your first visit, you will have to register before you can post. To view messages, please scroll below and select the forum that you would like to visits. Questions? Be sure to check out the Forum FAQ.

Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Indicator using fishertransform

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

    Indicator using fishertransform

    I am a novice with the Strategy Builder. It has been suggested that I join education webinars but I am at work during the presentations. Are these recorded for playback later?
    I have also read through the Strategy Builder user guide.

    I only want to paint an arrow at the high and low bars a swing using the Fishertransform with thresholds.
    I have attached a chart, Strategy Builder and script to explain.

    Attached Files

    #2
    Hello Stuhr,

    Thanks for your post.

    Here is a link to a recording of the strategy builder webinar for your convenience: https://www.youtube.com/watch?v=HCyt...ZmVnauWXkWe0Nf

    Regarding the strategy, keep in mind that when you apply the script that it will process the code from the very beginning of your data to the right edge which means it will mark your conditions as it finds them going left to right. To then paint only the highest or lowest you would need to add further logic to the strategy that would allow you to compare the previously marked locations and if the newer one should be marked then you would need to remove the previous draw object. You can do this by using the method RemoveDrawObject available in the "actions" under the "Misc> folder and you would need to provide the "tagname" of the previous object to be removed. You would likely need to simplify the tag name to something like "Up" and "Down" and add the CurrentBars[0]. This means you would also need to save the CurrentBars[0] to an int variable when you draw the arrow so that if you need to remove the previous instance of the arrow you can use the simplified tag name + the variable in the remove drawobject. Just doing this though you would only end up with just the latest arrow on each side which would not meet your needs so you would need to add additional bool based logic to say it is okay to remove the previous arrow or not and this could be the difficult part where your code would need to know if it is okay to remove the previous instance or not. As the fisher transform seems to be an oscillator you may be able to use that as the differentiation on keeping an arrow or not. There may be other ways to accomplish your goal and what I've provided has not been tested.


    Paul H.NinjaTrader Customer Service

    Comment


      #3
      Paul Thank you for the reply.

      I have watched the video that you sent the link to a few times now and will keep watching for more clarity. For me and my eyes, the color of NinjaTrader makes it hard for me to see it clearly, I also learn by doing. I have tested many of the suggestions you have given and will test the new suggestions also.

      Thanks again,

      Mike

      Comment


        #4
        Hello Mike,

        Thanks for your reply.

        Thanks for your feedback concerning the video, we appreciate it.

        Paul H.NinjaTrader Customer Service

        Comment


          #5
          Her is how I limit my indicator to one trade per direction:

          Variables: Name: Type: Default:
          Trend int 1

          Conditions and Actions

          User variables
          For long
          Trend!=1 Trend not equal to 1

          Do the Following

          Misc.
          Set Trend
          Trend 1

          Trend = 1;

          For short use 2





          Comment


            #6
            It seems that webinars is a rather good idea. Where will you apply them?

            Comment


              #7
              Ninjatrader has many instructional webinars relating to the use of NinjaTrader.

              Comment


                #8
                Hello JordanWyatt,

                Thanks for your post and welcome to the NinjaTrader forums!

                Here is a link to the current NinjaTrader webinars (free): https://ninjatrader.com/PlatformTraining

                Paul H.NinjaTrader Customer Service

                Comment

                Latest Posts

                Collapse

                Topics Statistics Last Post
                Started by FMtrader, 03-15-2019, 02:30 AM
                6 responses
                31 views
                0 likes
                Last Post James108  
                Started by timko, Today, 08:18 AM
                0 responses
                0 views
                0 likes
                Last Post timko
                by timko
                 
                Started by victorsmith, Today, 06:00 AM
                0 responses
                3 views
                0 likes
                Last Post victorsmith  
                Started by sohailashraf, Yesterday, 10:18 PM
                0 responses
                6 views
                0 likes
                Last Post sohailashraf  
                Started by jjnc2006, Yesterday, 07:36 PM
                0 responses
                15 views
                0 likes
                Last Post jjnc2006  
                Working...
                X