Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Arrow Entries

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

    Arrow Entries

    I am wondering if it possible to program a simple strategy that will place a buy or sell order whenever an arrow is plotted from a different indicator.

    In other words, I have an indicator that plots arrows and I want to program a strategy to buy on an up and sell on a down so that I can backtest it.

    Please advise...

    Thanks,
    Fib

    #2
    Hello fibbee,
    You would have to copy or recreate the conditions in the indicator that draws the arrows, in a new strategy. This would require manual programming to accomplish.


    To find and copy the conditions that draw the arrows in the indicator.
    Go to Tools > Edit NinjaScript > Indicator > Select your indicator and press OK to view the code of your indicator.


    Then, you can open a new Strategy editor by clicking on Tools > New NinjaScript > Strategy > Next > Give the Strategy a name > Click Unlock Code to view the NinjaScript Editor. From here, you can begin coding your script.


    Copy the necessary portions of the code from the indicator and paste it in the Strategy editor. Then you could use order entry methods such as EnterLong() and EnterShort() to submit your orders.


    Here are the EnterLong() and EnterShort() Help Guides to assist with configuring your order entry methods.

    If you would like to have a 3rd party develop this for you, please let me know and I will have our business development team contact you.
    Shawn B.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Balage0922, Today, 07:38 AM
    0 responses
    1 view
    0 likes
    Last Post Balage0922  
    Started by JoMoon2024, Today, 06:56 AM
    0 responses
    6 views
    0 likes
    Last Post JoMoon2024  
    Started by Haiasi, 04-25-2024, 06:53 PM
    2 responses
    19 views
    0 likes
    Last Post Massinisa  
    Started by Creamers, Today, 05:32 AM
    0 responses
    6 views
    0 likes
    Last Post Creamers  
    Started by Segwin, 05-07-2018, 02:15 PM
    12 responses
    1,786 views
    0 likes
    Last Post Leafcutter  
    Working...
    X