Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

Partner 728x90

Collapse

Supply & Demand / Price Action / Strategy Backtesting

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

    Supply & Demand / Price Action / Strategy Backtesting

    Hello, I am new to developing strategies for automated backtesting. I see a lot of backtesting for MA crosses or for the use of indicators but I am trying to develop Strategies for backtesting different supply and demand areas.

    For instance:
    Lets say I am working from the 1 hour chart for the EURUSD and I want to mark every group of bars of 3-6 or so that has an average bar volume of "X" Amount or maybe I want to set entries on a breakout bar after a range of consolidation Then set an entry signal somewhere in that range for the next time price comes into that range.

    Is something like this possible? Lets say price doesn't come into the range again for several days or longer. Would it be possible to back test a strategy like this. Or maybe stratagies based on VPOC? And if so could someone point me in the right direction.

    Thanks!

    #2
    Hello Rbruce,

    Thank you for your note.

    It would be possible to identify a range of bars that has a bar volume of X, is/was in price consolidation, and where price has broken out of that consolidation, at which point a good till canceled order limit order is submitted at a price somewhere in that range. You would be able to backtest this.

    The good till cancel order will work that order until the price returns down to that consolidation and you’re filled, or you or your strategy cancels that order.

    You would want to see the Syntax for submitting a limit order as LiveUntilCanceled,


    We do have resources to help you begin creating NinjaScript Strategies/Indicators.
    If you would like to take on learning NinjaScript, we have a fully documented help guide which will help you get started with Ninja Script. You will find language references to all of the methods and functions you will be using. You will also see a tutorial section which will help you create your first indicator and get you started with some of these concepts.

    A link to our Help Guide with tutorials can be found below: (For NT7, NT8 tutorials not released yet).


    The entire Alphabetical Reference can be found with the following link:


    The best way to begin learning NinjaScript is to use the Strategy Wizard. With the Strategy Wizard you can setup conditions and variables and then see the generated code in the NinjaScript Editor by clicking the View Code button.

    I'm also proving a link to a pre-recorded set of videos 'Strategy Wizard 301' and 'NinjaScript Editor 401' for you to view at your own convenience. These are for NT7 as NT8 videos have not been released yet.
    Strategy Wizard 301 - https://www.youtube.com/watch?v=FmBi...56536A44DD7105
    NinjaScript Editor 401 - https://www.youtube.com/watch?v=K8v_...56536A44DD7105

    If you are new to C#, to get a basic foundation for the concepts and syntax used in NinjaScript I would recommend this section of articles in our help guide first:


    I am also linking you to the Educational Resources section of the Help Guide to help you get started with NinjaScript: https://ninjatrader.com/support/help..._resources.htm

    You will find Reference Samples online as well as some Tips and Tricks for both indicators and strategies:
    Click here to see our NinjaScript Reference Samples: http://www.ninjatrader.com/support/f...splay.php?f=30
    Click here to see our NinjaScript Tips: http://www.ninjatrader.com/support/f...ead.php?t=3229

    These samples can be downloaded, installed and modified from NinjaTrader and hopefully serve as a good base for your custom works.

    There is a also a growing library of user submitted custom indicators (100+) that can be downloaded from our support form. Please look in the NinjaScript File Sharing section of our support forum as you may find what you are looking for there: http://www.ninjatrader.com/support/f...splay.php?f=37

    You can also contact one of our professional NinjaScript Consultants or Educators who would be eager to create or modify this script at your request or assist you with your script. Please let me know if you would like a list of professional NinjaScript Consultants or Educators who would be happy to create or modify any script at your request or assist you in learning NinjaScript.

    Please let me know if I may be of further assistance.
    Alan P.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by dustydbayer, Today, 01:59 AM
    0 responses
    1 view
    0 likes
    Last Post dustydbayer  
    Started by inanazsocial, Today, 01:15 AM
    0 responses
    3 views
    0 likes
    Last Post inanazsocial  
    Started by trilliantrader, 04-18-2024, 08:16 AM
    5 responses
    22 views
    0 likes
    Last Post trilliantrader  
    Started by Davidtowleii, Today, 12:15 AM
    0 responses
    3 views
    0 likes
    Last Post Davidtowleii  
    Started by guillembm, Yesterday, 11:25 AM
    2 responses
    10 views
    0 likes
    Last Post guillembm  
    Working...
    X