Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Strategy Wizard: simple MA cross over

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

    Strategy Wizard: simple MA cross over

    I am starting to use the Strategy wizard as I am not a programmer yet. I have watched the basic videos but do not seem to get it together. Help please.

    What I was trying to do is very simple: A fast Moving average crosses above a slow one, and I want it to place a drawing (diamond) in the chart at the cross over.

    Attached images show what I put into the ConditionBuilder and the StrategyAction. The third image shows the strategy installed in the chart.

    Could you please review this and tell me what I missed to do (as the diamond does not show up in the chart), what else I need to change exactly so that this diamond does show up in the chart.

    sandman
    Attached Files

    #2
    sandman, the issue very likely is your Y value set for the drawing method, try to place this at an actual price value, so for example the Low[0] value. Your is set at -3, which would not be visualized then on your chart where the strategy is being run.

    Comment


      #3
      Thanks Bertrand. That fixed it

      Comment


        #4
        Sorry. One more question: How do I make the resultant signal/diamond larger than it currently is?

        sandman

        Comment


          #5
          Originally posted by sandman View Post
          Sorry. One more question: How do I make the resultant signal/diamond larger than it currently is?

          sandman
          You could unfortunately not control it's size, a way around would be for example drawing 2 diamonds at different Y values (for example with a difference of 1 tick) to make the visualization larger.

          We have this on our feedback list as enhancement request for future consideration.

          Comment


            #6
            Got it - thank you.

            sandman

            Comment


              #7
              Allow me another question:

              Is it possible to create one strategy using two different DataSeries using the Strategy Wizard? If so, how? Or where can I find some instructions for that?

              (Specifically what I am trying to do is give me a signal/drawing when two moving averages cross. I know how to do that now. Now I want to add that two other moving averages but from a higher time chart/a different DataSeries must have crossed already).

              sandman

              Comment


                #8
                Hi again sandman, that's unfortunately not possible via the wizard interface - but would be doable via custom coding in our NinjaScript editor.

                As an example you could check into the per default installed 'SampleMultiTimeFrame' strategy that ships with NT.

                Comment


                  #9
                  Thanks for the information.

                  Comment


                    #10
                    And a new question:

                    I created a simple strategy that draws a vertical line in the chart when two moving averages cross. The strategy does not place any orders. It is purely for my visual help. (I don´t know - yet - how to write the code as an indicator and am using the wizard.)

                    But every time I place and exit an order, it disables this strategy and I have to enable it again. That`s obviously quite cumbersome. I tried changing it from Order Handling, Exit on Close: True to False - but that does not handle it. I also changed Order Properties, Time in Force from gtc to All Day but that also did not change it.

                    What setting do I have to change so that the strategy remains enabled all the time?

                    sandman

                    Comment


                      #11
                      Correct, that would be unfortunately expected for a strategy if you exit a position manually through the 'Close' button on that instrument, it would disable running strategies.

                      An alternative is middle mouse button clicking it to close the selected ATM strategy only.

                      Comment


                        #12
                        Thanks Bertrand.

                        (I guess I will have to start learning the indicator coding.)

                        Comment


                          #13
                          If you have the strategy conditions code done by the wizard, it should be relatively easy to port to an indicator, as the core logic is defined by the wizard interface, so you could take most parts over.

                          Comment


                            #14
                            Thanks Bertrand. I looked at the coding ... and had cold shivers run down my back One misplaced comma and I end up with a dog`s breakfast. I have put a request elsewhere in the forum. Perhaps one of the specialists can do it for me. But thank you for the suggestion.

                            sandman

                            Comment

                            Latest Posts

                            Collapse

                            Topics Statistics Last Post
                            Started by Geovanny Suaza, 02-11-2026, 06:32 PM
                            0 responses
                            646 views
                            0 likes
                            Last Post Geovanny Suaza  
                            Started by Geovanny Suaza, 02-11-2026, 05:51 PM
                            0 responses
                            367 views
                            1 like
                            Last Post Geovanny Suaza  
                            Started by Mindset, 02-09-2026, 11:44 AM
                            0 responses
                            107 views
                            0 likes
                            Last Post Mindset
                            by Mindset
                             
                            Started by Geovanny Suaza, 02-02-2026, 12:30 PM
                            0 responses
                            569 views
                            1 like
                            Last Post Geovanny Suaza  
                            Started by RFrosty, 01-28-2026, 06:49 PM
                            0 responses
                            573 views
                            1 like
                            Last Post RFrosty
                            by RFrosty
                             
                            Working...
                            X