Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

ATM in ninja script strategy

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

    #61
    Then what will be I am going to use in the ATM exit and reverse? Will you please help me Bertran. Or any ideas for this. Thanks in advance.

    Comment


      #62
      You could for example create a new ATM to trade the reversal, since this would use a fresh order and strategy id it would not need to wait until those are in reset state from the 'old' running one.

      Comment


        #63
        The same the open position will not close if I will use new ATM ID's. We need to exit the open position to minimize the loss. Is there other way to exit the open position aside from AtmStrategyClose() method. Why is it will close the open in the next bar?

        Comment


          #64
          The quickest way to exit would be modifying the stop or the target so the position is closed, for example modifying a target limit buy order above the market would immediately fill you.

          Comment


            #65
            That's it, yes that's what I did and it works well. Thank you Bertran. More power to you.

            Comment


              #66
              Hello Bertran, I would like to ask your idea about on how to declare a DayOfWeek so that I could change or type it in the main strategy whatever what day of the week I want the trade to pause on that day?. Is there a way on that? I tried to declare it as a string just like the ATM strategy template but it will make an error on the comparison of the string and the DayOfWeek when compiling. Please help on this.
              Last edited by luxurious_04; 11-14-2010, 09:23 PM.

              Comment


                #67
                You would need to convert the output to a string first, please see for example the snippet below (no Monday trading here) -

                if (Time[0].DayOfWeek.ToString() == "Monday")
                return;

                Comment


                  #68
                  Thanks again Bertran, it solves the problem on the DayOfWeek.

                  Comment


                    #69
                    Bertran here I come again need your help. I want to lock my ninja script so that no one could edit it. How to lock my ninja script or code? Give me idea on this please.

                    Comment


                      #70
                      Unfortunately there's no password protection available, but you could export it as assembly so source code will not be editable on the PC where you import it then -

                      Comment


                        #71
                        Thanks again Bertran.

                        Comment


                          #72
                          Hello Bertran please help me on these do you have any idea on the setup builder for the exported ninja script or dll? If we are going to run it then it will directly added to the ninja custom strategies or indicator just like importing a custom indicator?

                          Comment


                            #73
                            Also how to disable plot marker? I have added a new plot to a custom indicator and set it to transparent but it will still plot the marker?

                            Comment


                              #74
                              Originally posted by luxurious_04 View Post
                              Hello Bertran please help me on these do you have any idea on the setup builder for the exported ninja script or dll? If we are going to run it then it will directly added to the ninja custom strategies or indicator just like importing a custom indicator?
                              Yes, there are 2 options - the first would export the source code, while the second (as compiled assembly) would be locked from any editing (you can only use it on the imported PC).

                              Comment


                                #75
                                Originally posted by luxurious_04 View Post
                                Also how to disable plot marker? I have added a new plot to a custom indicator and set it to transparent but it will still plot the marker?
                                You can set the PriceMarkers to false in the indicators properties or directly in the indicators Initialize().

                                Comment

                                Latest Posts

                                Collapse

                                Topics Statistics Last Post
                                Started by Geovanny Suaza, 02-11-2026, 06:32 PM
                                0 responses
                                652 views
                                0 likes
                                Last Post Geovanny Suaza  
                                Started by Geovanny Suaza, 02-11-2026, 05:51 PM
                                0 responses
                                370 views
                                1 like
                                Last Post Geovanny Suaza  
                                Started by Mindset, 02-09-2026, 11:44 AM
                                0 responses
                                109 views
                                0 likes
                                Last Post Mindset
                                by Mindset
                                 
                                Started by Geovanny Suaza, 02-02-2026, 12:30 PM
                                0 responses
                                574 views
                                1 like
                                Last Post Geovanny Suaza  
                                Started by RFrosty, 01-28-2026, 06:49 PM
                                0 responses
                                577 views
                                1 like
                                Last Post RFrosty
                                by RFrosty
                                 
                                Working...
                                X