Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

synthax pour programmer des ordres sur ninja

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

    synthax pour programmer des ordres sur ninja

    Bonjour,

    voila je cherche a faire un ordre un peu spécial et il me faudrait la syntax à utiliser dans ninja pour avoir :

    1. le cours à l'instant t qui résulte du bid et du ask
    En fait c'est le cours qui est en jaune quand on est dans le static dom par exemple pour un contrat future

    2. quelle syntax pour placer un ordre de vente ou d'achat à cours limité ?

    3. quelle syntax pour placer un ordre de vente ou d'achat au marché ?

    4. une fois le programme fait peut on le tester sur la version demo ?

    5. comment fait on pour utiliser cette ordre programmé avec ninja ?

    Merci

    Merci d'avance

    #2
    Hello,


    Thank you for your note.


    Unfortunately we only provide support in English. If you resubmit in English I will be able to further assist.

    I look forward to assisting you further.
    BrettNinjaTrader Product Management

    Comment


      #3
      hello,

      but we told me to post it in french ??

      "
      Bonjour,
      poste ton message ici en Français :

      http://www.ninjatrader.com/support/forum/forumdisplay.php?f=16

      ainsi plusieurs autres parlant Français peuvent aussi t'aider.
      Je te répondrais dans ce forum.
      cordialement"

      Comment


        #4
        but i can tell you in english i am looking for the synthax for programmation for :

        1. the quotation price (not the bid or the ask price) . it is the cotation we can see when we look in a static dom in yellow.

        2. the synthax for a market order

        3. the synthax for a limit order.

        thanks

        Comment


          #5
          bernic,

          1. the quotation price (not the bid or the ask price) . it is the cotation we can see when we look in a static dom in yellow.

          2. the synthax for a market order

          3. the synthax for a limit order.
          I am happy to assist you.

          1. You can use OnMarketData() to retrieve this information.

          Code:
          protected override void OnMarketData(MarketDataEventArgs e)
          {
              // Print some data to the Output window
              if (e.MarketDataType == MarketDataType.Last) 
                    Print("Last = " + e.Price + " " + e.Volume);
          }
          Please find more information on it at the link provided below.



          2. The correct syntax for entering a Market order is below :

          Code:
          EnterLong(); // submits a long market order.
          
          EnterShort(); // submits a short market order.
          3. The correct syntax for entering a Limit order is below :

          Code:
          EnterLongLimit(quantity, limitPrice, signalName) //submits a Long limit at the limitPrice
          
          EnterShortLimit(quantity, limitPrice, signalName) //submits a Short limit at the limitPrice
          For more information on submitting orders, please see the link below.



          Please let me know if I may assist further.
          Adam P.NinjaTrader Customer Service

          Comment


            #6
            Bonjour,
            je viens de voir ton message.... un peu tard.
            AdamP a répondu à ton message; je pense que tu as compris.
            D'autre part c'est le service client de NT qui ne parle pas le Français mais qui, il me semble, comprends tès bien; rien à voir avec les membres.
            N'hésite pas à poser tes questions même si on te répond en Anglais.
            Cordialement
            Last edited by mate41; 11-09-2011, 03:58 PM.

            Comment


              #7
              ninja script strategy

              Bonjour,

              j'ai programmer une ninja script strategy pour passer plusieurs ordres d'achat ou de ventes suivant des paramètres particulier (s'apparente aux atm strategy, mais les paramètres que j'utilise ne son pas disponibles avec atm). J'ai deux questions :

              1. Ma stratégie (qui consiste à passer plusieurs ordres à différents niveaux, avec des paramètres non dispo via ATM stratégy, c'est pourquoi j'ai ecrit un script). Comment faire pour activer cette stratégie via directement le superdom ou staticdom ? C'est à dire que je voudrais cliquer au bid ou ask pour passer mon ordre programmer, exactement comme on peut le faire en utilisant une ATM strategy custom.

              2. Quand je test ma stratégie en allant dans l'onglet stratégie puis en cochant "enable" les cours d'achats et de vente n'ont rien à voir avec le cours de la journée on dirai qu'il utilise des données de l'historique... comment faire pour tester sa stratégy en live ?

              Merci pour votre aide

              Nicolas

              Comment


                #8
                bernic4,

                I programmed a script ninja strategy to spend more purchase orders or sales following parameters particular (similar to ATM strategy, but the settings I use only available with the atm). I have two questions:

                1. My strategy (which is to pass several orders at various levels, with parameters not available via ATM strategy, so I wrote a script). How to enable this strategy directly via the Superdome or staticdom? That is, I would click to bid or ask to change my order schedule, just as it can be done using a custom ATM strategy.

                2. When I test my strategy going in Policy tab and checking "enable" the buying and selling has nothing to do with the day we say that it uses historical data ... how to test the strategy live?

                Apologies, I don't speak French however I did do a Google translate of what you wrote me.

                Essentially, you can attach strategies to charts by right clicking the chart > go to "Strategy" > Select your strategy > Ensure that "Enabled" is set to "True" if you want it to start trading live. It will also show historical trades it would have made should it have been active from before, but these "historical" trades are not actual trades.

                Only ATM strategies can be attached to the SuperDOM, its not possible to attach an Automated Strategy to it.

                Alternatively you can use the "Strategies" tab to get strategies trading live.
                Adam P.NinjaTrader Customer Service

                Comment


                  #9
                  bernic4,
                  bon, adamP a déjà répondu. On ne peut attacher une strategie à un super-dom, seulement des ATM. Pour la question 2; d'après ce que j'ai compris tu vois des transactions qui ont été faites quelque temps avant (historique). Cela est tout à fait normal. Cependant tu peux les supprimer en allent dans le 'properties' de ton graphique.
                  Pour tester une strategie tu peux le faire avec un backtest en allent dans File/New/Strategy Analyzer. C'est ce que je fais.
                  Si tu veux le faire en live, il faut dans ton graphique déactiver le 'chart trader' et ensuite aller dans l'onglet Strategies et y activer la startegie que tu veux.
                  Last edited by mate41; 12-02-2011, 05:01 PM.

                  Comment


                    #10
                    mate41,

                    good adamP has already answered. You can not attach a policy to a super-dom, only ATM. For question 2, from what I understood you see transactions that have been made some time before (history). This is quite normal. However you can delete them Allent in the 'properties' of your graph.
                    To test a strategy you can do with a backtest in Allent to File / New / Strategy Analyzer. This is what I do.
                    Thanks for your note Mate14.

                    Please don't hesitate to contact us should you require additional assistance.
                    Adam P.NinjaTrader Customer Service

                    Comment


                      #11
                      strategy script

                      Hello,

                      I have made a ninja strategy (buy and sell automaticly) but i would like to know how :

                      1. to write in the script to liquidate all position if the profit and loss of the day is underdand -1000 euros for exemple and once i am flat how to STOP (disable) all strategy.

                      2. how to write in the script that i want to disable temporarily all strategy between 09h30 am and 09h45 am for exemple and between 14h00 pm and 14h06 pm as well. i mean if i am not flat at this time (i enter long at 09h25 am for exemple and i am still in position, i continue the strategy up to be flat, but i do not want to start an other trade between the hours above.

                      thanks

                      Comment


                        #12
                        Hello bernic4,

                        You can see our reference samples for help on how to accomplish a lot of this.
                        See here for a sample on checking session PnL

                        See here for a sample on halting a strategy after defined conditions.

                        See here for help setting up a time filter.
                        Ryan M.NinjaTrader Customer Service

                        Comment


                          #13
                          Thanks for your answer,

                          about this order we can use in ninja script : EnterLongStopLimit() we have to define the limit price and stop price, what is it ? do you have a document that explain how are working the differente type of order

                          thanks

                          Comment


                            #14
                            bernic,

                            I am happy to assist you.

                            Please find a link to the help guide entry below.



                            Please let me know if I may assist further.
                            Adam P.NinjaTrader Customer Service

                            Comment


                              #15
                              ninja script problem

                              hello,

                              i have a ninja script strategy witch is running with a enterlong() and exitlong () and the script is running well. i can see on the chart the buy ans sell points

                              Now i have modified the strategy and i have a enterlonglimit (close[0]) and an exitlonglimit (.....) but when i am connected to simulation data feed it is no working, no buy and no sell WHY ??

                              Thanks for your help iti is urgent please;

                              Nicolas

                              Comment

                              Latest Posts

                              Collapse

                              Topics Statistics Last Post
                              Started by Geovanny Suaza, 02-11-2026, 06:32 PM
                              0 responses
                              657 views
                              0 likes
                              Last Post Geovanny Suaza  
                              Started by Geovanny Suaza, 02-11-2026, 05:51 PM
                              0 responses
                              373 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
                              579 views
                              1 like
                              Last Post RFrosty
                              by RFrosty
                               
                              Working...
                              X