Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

Partner 728x90

Collapse

Button for buy and sell

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

    Button for buy and sell

    Hi,

    I'd like to make two buttons (a buy and a sell button) that, preferably, would toggle, and that would place a buy/sell stop order in a specific place once a setup occurs. I'd like it to toggle, so that once I see a setup forming, I could click it and it starts looking for my setup, and if it never comes, I'd like to be able to turn off the toggle. What I'm looking for before I hit the toggle is pretty hard to code, so I want to do the hard work of seeing something form, and then have the button place the stop orders when a fairly basic setup occurs that is easily programmable. Also, I'd like it to toggle itself off if an order gets placed, so that it would put multiple orders out if another similar setup occurs.

    Is that something that is easily made? Two buttons (a buy and a sell) that look for a simple setup that can be manually turned on and off and would turn itself off once an order is placed?

    Thanks!
    Jack

    #2
    You can refer the the link below :


    You can learn from how to create button.
    However you have to put in some variable / condition so that you can pass it to trigger but / sell.

    Comment


      #3
      If you wish to automatically sell and buy button with function
      then either you know the code or you can pay the vendor ninjatrader to create 1 for you.

      Comment


        #4
        Hi Cincai,

        Thank you for that link. I believe that is exactly what I'm looking for!

        Cheers,
        Jack

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by yertle, Today, 08:38 AM
        4 responses
        10 views
        0 likes
        Last Post yertle
        by yertle
         
        Started by bill2023, Yesterday, 08:51 AM
        6 responses
        27 views
        0 likes
        Last Post NinjaTrader_Erick  
        Started by NinjaTrader_ChelseaB, 01-08-2017, 06:59 PM
        80 responses
        19,667 views
        5 likes
        Last Post NinjaTrader_ChelseaB  
        Started by adeelshahzad, Today, 03:54 AM
        2 responses
        16 views
        0 likes
        Last Post adeelshahzad  
        Started by dappa, Today, 09:18 AM
        1 response
        6 views
        0 likes
        Last Post NinjaTrader_ChelseaB  
        Working...
        X