• 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 Lancer, Today, 10:39 AM
    1 response
    6 views
    0 likes
    Last Post NinjaTrader_Kate  
    Started by koganam, Today, 10:33 AM
    1 response
    4 views
    0 likes
    Last Post NinjaTrader_PatrickG  
    Started by FREEN, Today, 10:17 AM
    2 responses
    7 views
    0 likes
    Last Post FREEN
    by FREEN
     
    Started by stoner, Today, 08:38 AM
    3 responses
    15 views
    0 likes
    Last Post NinjaTrader_PatrickG  
    Started by retrobeast, Today, 08:13 AM
    1 response
    10 views
    0 likes
    Last Post NinjaTrader_Melissa  
    Working...
    X