Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

I would like to ask for your help to create an automatic strategy.

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

    I would like to ask for your help to create an automatic strategy.

    I would like to ask for your help to create an automatic strategy.

    the strategy I need to create is based on New York's opening range.
    it is a range from 8:30 am to 9:00 am,

    the entries are:

    Long:
    when the price crosses above the range, a market entry (long) is made when the bar closes above,
    with a stoploss at the bottom of the range,
    for the target a fibonacci retracement is drawn from the bottom of the range to the top of the range with the configuration that I attach in the image, and when the price touches 40% of the fibonacci would be the first target, when the price reaches the first target it is put in (breakeven) and the second target would be at 90% of the fibonacci.









    Short:
    when the price crosses below the range, a short entry is made when the bar closes below,
    with a stoploss at the top of the range,
    for the target is drawn a fibonacci retracement from the top of the range to the bottom of the range with the configuration that I attach in the image, and when the price touches 40% of the fibonacci would be the first target, when the price reaches the first target is put in (breakeven) and the second target would be at 90% of the fibonacci.













    for the range I found an indicator that draws it automatically called RepeaterV2.2 attached file of the indicator: Repeater.zip


    I would be very grateful if you can help me to create the strategy because I have tried many ways and I have not succeeded I do not have much knowledge in programming.

    Thanks for your help
    Attached Files
    Last edited by Miguelcuello16; 04-24-2022, 06:57 PM.

    #2
    Setting of the indicator that draws the RepeaterV2.2 range


    Click image for larger version

Name:	Captura de pantalla (194).png
Views:	165
Size:	80.5 KB
ID:	1198637



    drawing configuration fibonacci retracements



    Click image for larger version

Name:	Captura de pantalla (193).png
Views:	133
Size:	46.6 KB
ID:	1198638


    Click image for larger version

Name:	Captura de pantalla (186).png
Views:	144
Size:	77.3 KB
ID:	1198639

    Thanks for your help


    Comment


      #3
      Hello Miguelcuello16,

      Below is a link to a forum post with helpful resources on learning C# and NinjaScript.
      https://ninjatrader.com/support/foru...040#post786040

      You can also contact a professional NinjaScript Consultant who would be eager to create or modify this script at your request or assist you with your script. The NinjaTrader Ecosystem has affiliate contacts who provide educational as well as consulting services. Please let me know if you would like our NinjaTrader Ecosystem team follow up with you with a list of affiliate consultants who would be happy to create this script or any others at your request or provide one on one educational services.


      Below are links to the resources for items you have mentioned in your post.
      Time conditions - https://ninjatrader.com/support/help...to_limit_t.htm
      ToTime() - https://ninjatrader.com/support/help...nt8/totime.htm
      Time zone colors - https://ninjatraderecosystem.com/use...ezonecolors-2/
      CrossAbove() - https://ninjatrader.com/support/help...crossabove.htm
      EnterLong() - https://ninjatrader.com/support/help.../enterlong.htm
      Fibonacci Pivots - https://ninjatrader.com/support/help...cci_pivots.htm
      Draw.FibonacciRetracements() - https://ninjatrader.com/support/help...tracements.htm
      SetTriggerForLaterConditionUsingBoolsBuilderExampl e_NT8 - https://ninjatrader.com/support/foru...72#post1131172
      BreakEvenBuilderExample_NT8 - https://ninjatrader.com/support/foru...596#post806596
      Last edited by NinjaTrader_ChelseaB; 04-25-2022, 09:43 AM.
      Chelsea B.NinjaTrader Customer Service

      Comment


        #4
        Thank you for your response, I will study the resource links sent

        Comment


          #5
          can you send me a resource to create a range from 8:30am to 9am inside the automatic strategy please

          Comment


            #6
            Hello Miguelcuello16,

            Code:
            if (ToTime(Time[0]) >= 83000 && ToTime(Time[0]) < 90000)
            Chelsea B.NinjaTrader Customer Service

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by NullPointStrategies, Yesterday, 05:17 AM
            0 responses
            65 views
            0 likes
            Last Post NullPointStrategies  
            Started by argusthome, 03-08-2026, 10:06 AM
            0 responses
            139 views
            0 likes
            Last Post argusthome  
            Started by NabilKhattabi, 03-06-2026, 11:18 AM
            0 responses
            75 views
            0 likes
            Last Post NabilKhattabi  
            Started by Deep42, 03-06-2026, 12:28 AM
            0 responses
            45 views
            0 likes
            Last Post Deep42
            by Deep42
             
            Started by TheRealMorford, 03-05-2026, 06:15 PM
            0 responses
            50 views
            0 likes
            Last Post TheRealMorford  
            Working...
            X