Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Chart trader customization

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

    #16
    yes mine shows orders on chart as well. you can place/change/cancel any orders. i will release my share in userapp soon for others to collaborate as i believe it will become easier.

    Comment


      #17
      I have found that setting ChartTraderVisibility in an AddOn changes the Visibility of ChartTrader as expected, but it seems to have the side-effect of "locking" the ChartTrader menu icon in such a way that even though it can be clicked and a different ChartTrader Visibility chosen, ChartTrader does not change to that selected Visibility. I suspect this relates to the warning highlighted here by NinjaTrader_ChelseaB that these UI properties are designed to be set by a user and attempting to modify them through a custom script is NOT guaranteed to take effect.

      If that is so, I would request that these Properties, ChartTraderVisibility at least, be supported for programmatic usage.

      Thanks.

      Comment


        #18
        Hello jeronymite,

        I have submitted your request to our development for consideration.

        Once I have a tracking ID for this request I will post in this thread for future reference.

        I appreciate your patience.
        Chelsea B.NinjaTrader Customer Service

        Comment


          #19
          Hello jeronymite,

          This request is being tracked with ID# SFT-5023.

          As with all feature requests, interest is tracked before implementation is considered, so we cannot offer an ETA or promise of fulfillment. If implemented, it will be noted in the Release Notes page of the Help Guide.

          Release Notes — https://ninjatrader.com/support/help...ease_notes.htm
          Chelsea B.NinjaTrader Customer Service

          Comment


            #20
            Originally posted by [email protected] View Post
            thanks Chelsea, this has been helpful, i actuall used the "Add on Framework" example to build my own chart trader.. was able to incorporate validation before placing orders. Two new things i am now stuck at:
            1. Attaching to the chart window; a individual chart can have its own TradeManager add on just like default ChartTrader. Need to be able to attach to the chart it should be on top of chart or side by side to the chart(ust like default chart trader is positioned).
            2. Need some guidance on placing limit order ; need some help on how to get last bid or last ask price. not sure how to access last bid/ask in the order place scenario from add on.
            entryOrder = accountSelector.SelectedAccount.CreateOrder(Instru ment, OrderAction.Buy, OrderType.Limit, tifSelector.SelectedTif, qudSelector.Value, <GetLastBid>, 0, string.Empty, "Manish-CT-"+btnBuyMarket.Content.ToString(), null);
            Hi Manish,

            Please I have similar issues on an Addon... can you share the correct code for <GetLastBid> and as shown in the below script;

            entryOrder = accountSelector.SelectedAccount.CreateOrder(Instru ment, OrderAction.Buy, OrderType.Limit, tifSelector.SelectedTif, qudSelector.Value, <GetLastBid>, 0, string.Empty, "Manish-CT-"+btnBuyMarket.Content.ToString(), null);

            Regards.


            Omololu

            Comment


              #21
              Hello Omololu,

              The GetCurrentAsk()/GetCurrentBid() methods are available to scripts that have an internal data series such as indicators and strategies.
              Through the addon approach a BarsRequest must be used to get any data.

              Below is a link to the help guide.
              https://ninjatrader.com/support/help...arsrequest.htm

              The BarsPeriod would need to use MarketDataType.Ask or MarketDataType.Bid.
              https://ninjatrader.com/support/help...barsperiod.htm

              Once a subscription stream is established for the instrument, you can add an event handler to the .Update event to continue getting ask (or bid) streaming prices.
              Chelsea B.NinjaTrader Customer Service

              Comment

              Latest Posts

              Collapse

              Topics Statistics Last Post
              Started by Tradexxx, Today, 12:19 AM
              1 response
              4 views
              0 likes
              Last Post NinjaTrader_Jason  
              Started by [email protected], Yesterday, 04:49 PM
              1 response
              14 views
              0 likes
              Last Post NinjaTrader_ChrisSch  
              Started by Oracletrades, Yesterday, 09:10 PM
              0 responses
              3 views
              0 likes
              Last Post Oracletrades  
              Started by SteveAU, Yesterday, 08:35 PM
              0 responses
              8 views
              0 likes
              Last Post SteveAU
              by SteveAU
               
              Started by Lloyd143, Yesterday, 05:24 PM
              1 response
              22 views
              0 likes
              Last Post NinjaTrader_ShawnB  
              Working...
              X