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

Sell signals, no Buy signals and v v ???

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

    Sell signals, no Buy signals and v v ???

    hi, would someone be good enough to look at this code and see if it's incorrect as the
    signals seem inconsistent, lots of Sell arrows but no offsetting Buy arrows, then the
    reverse happens with a lot of Buy arrows but no Sell arrows

    also, is there a way to have the signals on the chart but not display the macd window ?

    thanks
    Attached Files

    #2
    Hello tradr,
    Thanks for writing in and I am happy to assist you.

    The condition you have set does not necessarily mean that the next signal will be always a reverse. This is particularly true since your code filters it with SMA 89 which is pretty smooth and doest changes/reverses easily particularly if the price is in a strong trend.


    To remove the MACD from the chart please delete the Plots in the initialize section of the code along with its corresponding properties.

    You are calculating the Macd and Ema in your code. Instead of calculating it you can simply call them as
    Code:
    //call ema
    double fastEma = EMA(fast)[0];
    //call macd dif
    double macdDiff= MACD(macdFast, macdSlow, macdSmooth).Diff[0];
    Please let me know if I can assist you any further.
    JoydeepNinjaTrader Customer Service

    Comment


      #3
      hi Joydeep, thanks for your fast reply

      should have stated I'm Not a coder and not the author of the indicator

      besides what you've already answered, and thanks for that, how could the indicator be
      improved to provide better signals, and would you please provide the code I'd need to
      change, and please explain where I'd need to change it

      thanks

      Comment


        #4
        Hello tradr,
        The code is not meant to do what you are trying to do.

        Unfortunately we do not do custom coding. I would suggest you contact the original developer to further customize it as per your requirement.

        You can also contact any of our NinjaScript consultants to do it. You can get the list of our NinjaScript consultants from here http://www.ninjatrader.com/partners#...pt-Consultants
        JoydeepNinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by alifarahani, Today, 09:40 AM
        6 responses
        36 views
        0 likes
        Last Post alifarahani  
        Started by Waxavi, Today, 02:10 AM
        1 response
        17 views
        0 likes
        Last Post NinjaTrader_LuisH  
        Started by Kaledus, Today, 01:29 PM
        5 responses
        14 views
        0 likes
        Last Post NinjaTrader_Jesse  
        Started by Waxavi, Today, 02:00 AM
        1 response
        12 views
        0 likes
        Last Post NinjaTrader_LuisH  
        Started by gentlebenthebear, Today, 01:30 AM
        3 responses
        17 views
        0 likes
        Last Post NinjaTrader_Jesse  
        Working...
        X