Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Can't change EMA value

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • NinjaTrader_JoshP
    replied
    philxhong,

    You need to understand what 3 bars ago means. 3 bars ago means it will look at the value of 3 bars ago counting from the current bar. You look at the 4th latest bar. It does not mean trade 3 bars into the past. It evaluates the condition based on the data from that bar and makes the trade on the current bar. You cannot trade in the past. If you wanted to trade back then you need to place the trade back then.

    Leave a comment:


  • philxhong
    replied
    Hi Bertrand,
    Yes, exactly like the screenshot but 3 bars ago dit not get me in a trade sonner than 0 bars ago.

    Leave a comment:


  • NinjaTrader_Bertrand
    replied
    Hi philxhong, you mean like in the attached screenshot? Bars ago set to 3 for your condition...
    Attached Files

    Leave a comment:


  • philxhong
    replied
    Josh,
    I am trying to make a trade when the EMA(5) displaced -3 crossover SMA(15).
    Inside the wizard the EMA does not have the option for displacement. So how can I
    make this happen? Thanks,

    Leave a comment:


  • NinjaTrader_JoshP
    replied
    philxhong,

    I am not sure what you are trying to do. The condition you are outlining right now takes the EMA(5) of 3 bars ago and compares it to the SMA(15) of the current bar. If a cross above of such a condition happens then it will trade. If not then it will not.

    Leave a comment:


  • philxhong
    replied
    Bertrand, I used 3 bars ago on EMA(5) crossover SMA(15) EnterLongPosition
    0 bars ago on EMA(5) crossover SMA(15) EnterLongPosition
    I got the same result. I need one EnterLongPosition earlier than the other.
    Thanks for you help.

    Leave a comment:


  • NinjaTrader_Bertrand
    replied
    Hi philxhong, correct - please use the 'Bars ago' instead for your crossover condition.

    Leave a comment:


  • philxhong
    replied
    Can't set EMA displaced value in wizard

    The EMA indicator inside the wizard does not display the displaced value.
    I tried to create EMA(5) displaced -3 Cross-over SMA(15).
    Please help. Thanks

    Leave a comment:


  • bkout
    replied
    ah -- OK -- doh! I thought Min. stood for MINUTE as in the bar interval -- thx!

    Leave a comment:


  • NinjaTrader_RJ
    replied
    Yes, you have your minimum set to 15.
    You must lower your minimum below 9.

    Leave a comment:


  • bkout
    replied
    RJ, Thanks for the response however I think something else is going on as I have the value set to 9 see below. When I change the 15 value to 9 in the Parameters area it pops back to 15 as soon as I click in another field. BTW using your existing SMA crossover I was able to change the SMA period values and have it hold. Strangely enough if I change the EMA9 to a value larger than 15 it holds,, but any value less than 15 pops back to 15 --- weird!
    Click image for larger version

Name:	n3.JPG
Views:	1
Size:	49.8 KB
ID:	849953


    Originally posted by NinjaTrader_RJStein View Post
    Hello Bkout,

    Thank you for your post.

    You need to change the default value under the "user defined inputs" page of the Strategy Wizard.

    In the strategy parameters, you can also change the 15 to a 9 to change the period.

    You need to change the chart time period from a 15 min chart to whatever time period you want before you set up the strategy.
    RJ,

    Thanks for the reply, however I think something else is going on as I had the value se to 9 -- see below

    Leave a comment:


  • NinjaTrader_RJ
    replied
    Hello Bkout,

    Thank you for your post.

    You need to change the default value under the "user defined inputs" page of the Strategy Wizard.

    In the strategy parameters, you can also change the 15 to a 9 to change the period.

    You need to change the chart time period from a 15 min chart to whatever time period you want before you set up the strategy.

    Leave a comment:


  • bkout
    started a topic Can't change EMA value

    Can't change EMA value

    I'm having a problem with a EMA crossover strategy. I created User defined inputs EMA9 and EMA39 with those periods and 15 min intervals. I set up the Strategy and it looks right as far as this newbie can tell (I followed along with the video), however when I put it into my 15 min chart and run it the EMA9 changes to 15 period and tests with that value and puts a 15 EMA on the chart. I'm not able to change it back so that it stays at 9. How can I prevent that from changing and keep the 9 value I want? I'm hoping I attached two screen captures.
    Click image for larger version

Name:	n1.JPG
Views:	1
Size:	51.8 KB
ID:	890887

    Click image for larger version

Name:	n2.JPG
Views:	1
Size:	86.7 KB
ID:	890888

Latest Posts

Collapse

Topics Statistics Last Post
Started by bmaltz, Yesterday, 07:15 PM
2 responses
13 views
0 likes
Last Post bmaltz
by bmaltz
 
Started by iceman600, Yesterday, 01:51 PM
4 responses
25 views
0 likes
Last Post iceman600  
Started by NinjaTrader_ChelseaB, 01-08-2017, 06:59 PM
55 responses
13,424 views
3 likes
Last Post grimes12  
Started by Mindset, Yesterday, 05:43 AM
4 responses
36 views
0 likes
Last Post Mindset
by Mindset
 
Started by brenton, Today, 08:31 PM
0 responses
15 views
0 likes
Last Post brenton
by brenton
 
Working...
X