Announcement

Collapse
No announcement yet.

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.

    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 CarlTrading, 03-31-2026, 09:41 PM
      1 response
      81 views
      1 like
      Last Post NinjaTrader_ChelseaB  
      Started by CarlTrading, 04-01-2026, 02:41 AM
      0 responses
      42 views
      0 likes
      Last Post CarlTrading  
      Started by CaptainJack, 03-31-2026, 11:44 PM
      0 responses
      64 views
      2 likes
      Last Post CaptainJack  
      Started by CarlTrading, 03-30-2026, 11:51 AM
      0 responses
      68 views
      0 likes
      Last Post CarlTrading  
      Started by CarlTrading, 03-30-2026, 11:48 AM
      0 responses
      55 views
      0 likes
      Last Post CarlTrading  
      Working...
      X