• 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

  • NinjaTrader_ShawnB
    replied


    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.

    Leave a comment:


  • Giorrgi
    started a topic Newbie - need help with simple strategy

    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.

Latest Posts

Collapse

Topics Statistics Last Post
Started by rwilliam, Today, 03:14 PM
0 responses
3 views
0 likes
Last Post rwilliam  
Started by rwilliam, Today, 03:10 PM
1 response
4 views
0 likes
Last Post NinjaTrader_ChelseaB  
Started by rontronimous, Today, 03:04 PM
2 responses
5 views
0 likes
Last Post rontronimous  
Started by zacharydw00, Today, 03:14 PM
0 responses
4 views
0 likes
Last Post zacharydw00  
Started by junkone, 09-12-2019, 07:10 PM
11 responses
82 views
0 likes
Last Post cnecorp
by cnecorp
 
Working...
X