• 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

Strategy wizard coding question

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

    Strategy wizard coding question

    If I wanted to put into Strategy Wizard a 1 Bar trailing stop(which would be a stop and reverse) based off of the present live bar for the exit of present open position and simultaneous entry of a position in the opposite direction.

    The description is if I am in a "short position" and the present live bar breaks by one tenth of a pip the high of the previous 1 bar ago, Strategy Wizard would than immediately close the present open short position and simultaneously open a long position, with for example 20,000 units. The stop for the new long position would than be a break of any following price bar that would be the previous 1 bar ago, where the live bar breaks the low of that 1 bar ago by one tenth of a pip. And depending where price moved to this stop may be another stop and reverse 1 bar trailing stop on this long position for to close this long position and simultaneously open a short position for 30,000 units.

    The opposite of this would be if this strategy wizard was just started in a trade that was a long position

    Hope this makes sense. Thanks!

    #2
    Hello abikambic,

    Thanks for your post.

    If you want to create this yourself in the NT7 strategy wizard then to get started please review the helpguide link on the strategy wizard here: http://ninjatrader.com/support/helpG...egy_wizard.htm Make sure to follow all the links, especially to the condition builder where you will find examples of how to compare price and place orders. In addition, here is a link to a recorded session of the strategy wizard training: https://www.youtube.com/watch?v=FmBi...D7105&index=10

    In general, from your description, in the conditions builder you would test the market position to see if you are "short", you would test that the High of the current bar High[0] is greater than the previous bar Higher[1]. For the action you would then use enterlong which will close your short position and automatically put you in a long position. This would be the idea to get you started which you would need to work through and adjust as needed.

    NinjaTrader does not provide coding services. If you would like someone to code your strategy for you we can provide references to 3rd party coders.
    Paul H.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by jayfutures23, Today, 09:32 AM
    0 responses
    2 views
    0 likes
    Last Post jayfutures23  
    Started by dshalom9, Today, 08:36 AM
    9 responses
    17 views
    0 likes
    Last Post NinjaTrader_PatrickG  
    Started by stock_wizard_49, 07-11-2020, 06:57 PM
    1 response
    16 views
    0 likes
    Last Post NinjaTrader_PaulH  
    Started by asmmbillah, Yesterday, 03:03 PM
    1 response
    9 views
    0 likes
    Last Post NinjaTrader_Jesse  
    Started by AspenHiker, Today, 08:37 AM
    0 responses
    7 views
    0 likes
    Last Post AspenHiker  
    Working...
    X