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 RookieTrader, Today, 07:41 AM
        1 response
        4 views
        0 likes
        Last Post NinjaTrader_ChelseaB  
        Started by kujista, Today, 05:44 AM
        1 response
        9 views
        0 likes
        Last Post NinjaTrader_ChelseaB  
        Started by elderan, Yesterday, 08:03 PM
        1 response
        12 views
        0 likes
        Last Post NinjaTrader_BrandonH  
        Started by samish18, Yesterday, 08:57 AM
        8 responses
        25 views
        0 likes
        Last Post samish18  
        Started by DJ888, 04-16-2024, 06:09 PM
        3 responses
        10 views
        0 likes
        Last Post NinjaTrader_Erick  
        Working...
        X