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 argusthome, 03-08-2026, 10:06 AM
    0 responses
    77 views
    0 likes
    Last Post argusthome  
    Started by NabilKhattabi, 03-06-2026, 11:18 AM
    0 responses
    45 views
    0 likes
    Last Post NabilKhattabi  
    Started by Deep42, 03-06-2026, 12:28 AM
    0 responses
    26 views
    0 likes
    Last Post Deep42
    by Deep42
     
    Started by TheRealMorford, 03-05-2026, 06:15 PM
    0 responses
    32 views
    0 likes
    Last Post TheRealMorford  
    Started by Mindset, 02-28-2026, 06:16 AM
    0 responses
    62 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Working...
    X