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

TCTrending TSF

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

    TCTrending TSF

    I'm trying to code a strategy using this indicator which is in NT8 indicator list, can someone tell me what makes the indicator change color from red to blue? I would like to go long with blue and short with red or use it as a filter, thanks

    #2
    Hello futuros,

    If TCTrendingTSF is something you have the code for you may be able to review it to check that. You would want to follow the steps below to check if you have the code to this indicator, TCTrendingTSF is not an included with NinjaTrader indicator so I would not be able to tell you without seeing the code first.
    1. From the control center click New -> NinjaScript Editor
    2. In the editor expand the Indicators folder and look for TCTrendingTSF, is it listed?

    If the file is listed, you can look at its code to see what logic is used to color the bar blue/red.
    If the file is not listed you do not have the source code so you would need to refer back to the source where you had downloaded this item.


    I look forward to being of further assistance.
    JesseNinjaTrader Customer Service

    Comment


      #3
      TrendChange may be of interest to you as a strategy trigger.
      TrendFlag, when true, trend is up. When false, Trend is down.

      Code:
      if ((Close[0] > TSFValue) && (TSFValue > TSFValueMem))
                      {
                          if (!TrendFlag) // TrendFlag
                              TrendChange = true;
                          TrendFlag = true;
      
                      }
                      else if ((Close[0] < TSFValue) && (TSFValue < TSFValueMem))
                      {
                          if (TrendFlag) //(TrendFlag)
                              TrendChange = true;
                          TrendFlag = false;
      
                      }

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by cre8able, Yesterday, 09:15 PM
      2 responses
      14 views
      0 likes
      Last Post cre8able  
      Started by Trader146, Today, 09:17 PM
      0 responses
      6 views
      0 likes
      Last Post Trader146  
      Started by ttrader23, 05-08-2024, 09:04 AM
      9 responses
      43 views
      0 likes
      Last Post ttrader23  
      Started by ZeroKuhl, Yesterday, 04:31 PM
      8 responses
      46 views
      0 likes
      Last Post ZeroKuhl  
      Started by reynoldsn, Today, 07:04 PM
      0 responses
      11 views
      0 likes
      Last Post reynoldsn  
      Working...
      X