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 StockTrader88, 03-06-2021, 08:58 AM
        45 responses
        3,992 views
        3 likes
        Last Post johntraderuser2  
        Started by TAJTrades, Today, 09:46 AM
        0 responses
        7 views
        0 likes
        Last Post TAJTrades  
        Started by rhyminkevin, Yesterday, 04:58 PM
        5 responses
        62 views
        0 likes
        Last Post dp8282
        by dp8282
         
        Started by realblubb, Today, 09:28 AM
        0 responses
        8 views
        0 likes
        Last Post realblubb  
        Started by AaronKoRn, Yesterday, 09:49 PM
        1 response
        19 views
        0 likes
        Last Post Rikazkhan007  
        Working...
        X