Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

EMA, Strong close strategy question

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

    EMA, Strong close strategy question

    Hello,

    I am trying to figure out how to make a simple strategy that I can backtest that uses the 20 period EMA and a custom indicator I found called Colored Scalp bar NT8 which simply colors bars that close within a certain % of the range of the bar.

    The strategy I would like to make simply checks with the ema so (buy when above sell when below) and enters the position when a bar closes within the %(75, 85, 90 ect) indicated in the other indicator. Stoploss at High/low of signal bar with the TP the same distance in the other direction.

    One problem is that the colored scalp bar indicator doesn't even show up in the strategy builder please help. Thanks in advance.

    #2
    Hello Schwez25,

    Thank you for your post.

    Indicators will only be accessible in the Strategy Builder if the indicator contains a plot and a value is assigned to that plot. The Strategy Builder would then be able access that plot's value in the Conditions and Actions screen.

    The AddPlot() method can be used to add a plot to the script. Then, you could assign a value to that plot by calling Value[0] = 'x', where x is the value you are assigning.

    See this help guide page for more information about AddPlot() and sample code: https://ninjatrader.com/support/help...t8/addplot.htm

    Let me know if I may assist further.

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by NullPointStrategies, Today, 05:17 AM
    0 responses
    43 views
    0 likes
    Last Post NullPointStrategies  
    Started by argusthome, 03-08-2026, 10:06 AM
    0 responses
    124 views
    0 likes
    Last Post argusthome  
    Started by NabilKhattabi, 03-06-2026, 11:18 AM
    0 responses
    65 views
    0 likes
    Last Post NabilKhattabi  
    Started by Deep42, 03-06-2026, 12:28 AM
    0 responses
    42 views
    0 likes
    Last Post Deep42
    by Deep42
     
    Started by TheRealMorford, 03-05-2026, 06:15 PM
    0 responses
    46 views
    0 likes
    Last Post TheRealMorford  
    Working...
    X