• 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

EMA Cloud High Low

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

    EMA Cloud High Low

    I am trying to develop a strategy from what I trade manually its pretty simple I use an EMA cloud on range bar charts and I just wait for a pullback into the moving averages after they have started to fan out and entering if it breaks the high or low created from the pullback I've got the major parts but I'm struggling with the swing indicator because I want it to close above that high and then open a long trade and vice versa for going short when but I put it simply as crosses above high or crosses below low it wont take any trades.

    I'm guessing I am going to have to tel it to pull the actual value from the indicator and then tell it that if it closes above that price to open a long. How would I go about this in with the coding used in NT8?

    I know I will have to find a way to tell it when the moving averages are at a certain distance from each other so that it will know when to take trades. Is this something that is possible in ninja script?

    is their any resources on making the trade size be based off of using a % of the account and having it recalculate between trades?

    Ive used some pine script and and think script and I'm trying to get used to ninja trader so i can use it for live trading what is the best resource for a visual learner to learn C# when it comes to ninja trader? I searched and didn't find a ton of videos in you tube are their other search terms i can try? like is NT8 that big of a difference than NT7 when it comes to the code?

    #2
    Hi mike09, thanks for your post.

    The project you describe would be best done by an experienced C# programmer that knows NinjaScript well. For a good intro to NinjaScript see this post from our colleague Chelsea:

    https://ninjatrader.com/support/foru...sample-scripts

    All of the indicators in the platform by default are available to view from the NinjaScript editor.

    To get account data, you will need to set up an account object, there is an example on this page:

    https://ninjatrader.com/support/help...ccountitem.htm

    NT8 and NT7 are not too different from each other, but they are different enough so I would recommend just learning NT8 code style. If there is some example in NT7 you were looking at, we have a code-breaking table between NT7 and NT8 here:

    https://ninjatrader.com/support/help...ng_changes.htm

    Please let me know if I can assist any further.
    Chris L.NinjaTrader Customer Service

    Comment


      #3
      Originally posted by mike09 View Post
      I am trying to develop a strategy from what I trade manually its pretty simple I use an EMA cloud on range bar charts and I just wait for a pullback into the moving averages after they have started to fan out and entering if it breaks the high or low created from the pullback I've got the major parts but I'm struggling with the swing indicator because I want it to close above that high and then open a long trade and vice versa for going short when but I put it simply as crosses above high or crosses below low it wont take any trades.

      I'm guessing I am going to have to tel it to pull the actual value from the indicator and then tell it that if it closes above that price to open a long. How would I go about this in with the coding used in NT8?

      I know I will have to find a way to tell it when the moving averages are at a certain distance from each other so that it will know when to take trades. Is this something that is possible in ninja script?

      is their any resources on making the trade size be based off of using a % of the account and having it recalculate between trades?

      Ive used some pine script and and think script and I'm trying to get used to ninja trader so i can use it for live trading what is the best resource for a visual learner to learn C# when it comes to ninja trader? I searched and didn't find a ton of videos in you tube are their other search terms i can try? like is NT8 that big of a difference than NT7 when it comes to the code?
      You will need to know the Swing High or Low price, and check for it to be exceeded. the information is in the documentation.

      ref: https://ninjatrader.com/support/help.../nt8/swing.htm

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by [email protected], Today, 10:54 AM
      1 response
      10 views
      0 likes
      Last Post NinjaTrader_ShawnB  
      Started by wbennettjr, Today, 11:18 AM
      1 response
      3 views
      0 likes
      Last Post NinjaTrader_ChrisL  
      Started by Induna, Today, 05:38 AM
      1 response
      6 views
      0 likes
      Last Post NinjaTrader_Kate  
      Started by Alfred, Today, 10:20 AM
      1 response
      11 views
      0 likes
      Last Post NinjaTrader_PatrickG  
      Started by emuns, Today, 10:34 AM
      1 response
      4 views
      0 likes
      Last Post NinjaTrader_ChelseaB  
      Working...
      X