Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Newbie - need help with simple strategy

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

    Newbie - need help with simple strategy

    Hey guys,

    Just started getting into NT. I want to creating some simple systems with the condition builder (no programming knowledge).

    Could you please advise on the following idea:

    - overall market up (current price X% above SMA)
    - previous X bars are all bullish/bearish

    - enter on break of previous bar
    - stop/take profit when prices dip below previous bar's low (when long)/go above the previous bar high (when short).

    Since I am very new to this I don't know which indicator to use for the rising bar pattern and how to define the break of the previous bar.

    Any help is welcome!

    Thanks.

    #2


    Hello Giorrgi,


    You would have to manually program your script to keep track of the prices of your input series and SMA value, and then calculate the price difference in percent.


    You can use the Rising() and Falling() to know if previous X bars are all bullish/bearish.


    Here is an example of a stop/take profit when prices dip below previous bar's low and when long, go above the previous bar high (when short).
    Code:
    [LEFT][FONT=Courier New][SIZE=2][COLOR=#0000FF]if[/SIZE][FONT=Courier New][SIZE=2](Close[[/SIZE][/FONT] [FONT=Courier New][SIZE=2][COLOR=#800080]0[/COLOR][/SIZE][/FONT][FONT=Courier New][SIZE=2]] < Low[[/SIZE][/FONT] [FONT=Courier New][SIZE=2][COLOR=#800080]1[/COLOR][/SIZE][/FONT][FONT=Courier New][SIZE=2]] && Position.MarketPosition == MarketPosition.Long)[/SIZE][/FONT]
    [FONT=Courier New][SIZE=2]                  {ExitLong();}[/SIZE][/FONT]
     [FONT=Courier New][SIZE=2][COLOR=#0000FF]if[/COLOR][/SIZE][/FONT][FONT=Courier New][SIZE=2](Close[[/SIZE][/FONT] [FONT=Courier New][SIZE=2][COLOR=#800080]0[/COLOR][/SIZE][/FONT][FONT=Courier New][SIZE=2]] > High[[/SIZE][/FONT] [FONT=Courier New][SIZE=2][COLOR=#800080]1[/COLOR][/SIZE][/FONT][FONT=Courier New][SIZE=2]]&& Position.MarketPosition == MarketPosition.Short )[/SIZE][/FONT]
    [FONT=Courier New][SIZE=2]                  {EnterLong();}[/SIZE][/FONT]
    [/LEFT]
    [/FONT][/COLOR]


    Rising() and Falling() Help Guides to assist your further.

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by CarlTrading, 03-31-2026, 09:41 PM
    1 response
    37 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by CarlTrading, 04-01-2026, 02:41 AM
    0 responses
    18 views
    0 likes
    Last Post CarlTrading  
    Started by CaptainJack, 03-31-2026, 11:44 PM
    0 responses
    25 views
    1 like
    Last Post CaptainJack  
    Started by CarlTrading, 03-30-2026, 11:51 AM
    0 responses
    40 views
    0 likes
    Last Post CarlTrading  
    Started by CarlTrading, 03-30-2026, 11:48 AM
    0 responses
    34 views
    0 likes
    Last Post CarlTrading  
    Working...
    X