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 Cross161, Yesterday, 10:33 PM
0 responses
8 views
0 likes
Last Post Cross161  
Started by neilzep, Yesterday, 08:55 PM
0 responses
7 views
0 likes
Last Post neilzep
by neilzep
 
Started by javier.filgueira, Yesterday, 03:29 PM
3 responses
11 views
0 likes
Last Post javier.filgueira  
Started by Da vinci, Yesterday, 03:15 PM
1 response
8 views
0 likes
Last Post NinjaTrader_ChrisL  
Started by Da vinci, Yesterday, 02:51 PM
1 response
14 views
0 likes
Last Post NinjaTrader_ChrisL  
Working...
X