• If this is your first visit, you will have to register before you can post. To view messages, please scroll below and select the forum that you would like to visits. Questions? Be sure to check out the Forum FAQ.

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:
    if(Close[ 0] < Low[ 1] && Position.MarketPosition == MarketPosition.Long) {ExitLong();} if(Close[ 0] > High[ 1]&& Position.MarketPosition == MarketPosition.Short ) {EnterLong();}



    Rising() and Falling() Help Guides to assist your further.
    Shawn B.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by aslane, Today, 02:31 PM
    0 responses
    8 views
    0 likes
    Last Post aslane
    by aslane
     
    Started by stoner, 10-16-2019, 01:38 PM
    5 responses
    47 views
    0 likes
    Last Post sledge
    by sledge
     
    Started by music_p13, Today, 12:04 PM
    1 response
    23 views
    0 likes
    Last Post NinjaTrader_Kate  
    Started by zaro33, Today, 10:55 AM
    1 response
    7 views
    0 likes
    Last Post NinjaTrader_Heath  
    Started by itrader46, Today, 10:16 AM
    5 responses
    11 views
    0 likes
    Last Post NinjaTrader_Jesse  
    Working...
    X