Go Back   NinjaTrader Support Forum > NinjaTrader 8 > Add-On Development

Add-On Development General NinjaScript development questions.

NinjaTrader
Reply
 
Thread Tools Display Modes
Old 11-17-2017, 08:37 AM   #16
soulfx
Senior Member
 
Join Date: Mar 2011
Posts: 365
Thanks: 46
Thanked 28 times in 27 posts
Default

OK great now we are getting somewhere.

My tests so far have involved the quantity being changed or not - and this i was tracking in onorderupdate after a change.

Is it stated in help that .... patrick wrote ....

Using Order.LimitPriceChanged or Order.StopPriceChanged has no event triggered in my tests whether the price is the same or not. In fact these two values are not supported and should not be used to change orders. Are you seeing these two values actually work to change orders?

Or are you just informing me from internal checks with development?
The only thing i see in help is in reference transitioning from historical orders which is not the case here.

So are the planned to be supported or ? Are you saying if the entry price changes i need to cancel the order and resubmit fresh ./ anew?

look forward to update as i was about to test the change of entry price (limit or MIT)

thanks
soulfx is offline  
Reply With Quote
Old 11-17-2017, 10:15 AM   #17
soulfx
Senior Member
 
Join Date: Mar 2011
Posts: 365
Thanks: 46
Thanked 28 times in 27 posts
Default

Hello just to clarify and confirm as per my original post
.....
Hello, I am using the Change method within the Addon->Account section of methods....

so NOT the strategy link you posted in your reply

but this one ....

Navigation: NinjaScript > Language Reference > Add On > Account >
Change()
Previous page Return to chapter overview Next page
Definition
Changes specified Order object(s).

Syntax
Change(IEnumerable<Order> orders)

so does this change your response?

look forward to your response
thanks
soulfx is offline  
Reply With Quote
Old 11-17-2017, 12:35 PM   #18
soulfx
Senior Member
 
Join Date: Mar 2011
Posts: 365
Thanks: 46
Thanked 28 times in 27 posts
Default

Hello there, not sure if gone for the day or attending to other matters / testing & checking this ; are you able to respond on this before the weekend?
thanks
soulfx is offline  
Reply With Quote
Old 11-17-2017, 02:53 PM   #19
NinjaTrader_PatrickH
NinjaTrader Customer Service
 
NinjaTrader_PatrickH's Avatar
 
Join Date: Jul 2011
Location: Denver, CO
Posts: 10,866
Thanks: 764
Thanked 1,868 times in 1,798 posts
Default

Hello soulfx,

Thank you for the additional details.

Change() will not see any state occur if only the price or quantity is submitted for the same value it currently is.

I was incorrect on Order.StopPriceChanged and Order.LimitPriceChanged. This are intended for the Change() function and do not perform an action alone.

Please let me know if you have any questions.
NinjaTrader_PatrickH is offline  
Reply With Quote
Old 11-20-2017, 08:14 AM   #20
soulfx
Senior Member
 
Join Date: Mar 2011
Posts: 365
Thanks: 46
Thanked 28 times in 27 posts
Default

Hello, I am not clear on your response ... considering how clear i have tried to be this is a vague response ...

Patrick wrote ...

Change() will not see any state occur if only the price or quantity is submitted for the same value it currently is.

I was incorrect on Order.StopPriceChanged and Order.LimitPriceChanged. This are intended for the Change() function and do not perform an action alone.

....

So the first part you are now confirming what i asked all along in this thread - there is no state if the quantity or price is the same value it currently is? I was VERY clear on this i just re read why only now after all these posts do you confirm it?

so to confirm stoppricechanged and limitpricechanged DO work and ARE supported for the Change() function within the Account-.Addon ?

What do you mean by they do not perform an action alone .. ???

thanks
soulfx is offline  
Reply With Quote
Old 11-20-2017, 09:39 AM   #21
NinjaTrader_PatrickH
NinjaTrader Customer Service
 
NinjaTrader_PatrickH's Avatar
 
Join Date: Jul 2011
Location: Denver, CO
Posts: 10,866
Thanks: 764
Thanked 1,868 times in 1,798 posts
Default

Hello soulfx,

Thank you for your response.

To elaborate on my last response Change() will not see any state occur if only the price or quantity is submitted for the same value it currently is for that order.

Order.StopPriceChanged and Order.LimitPriceChanged are supported and intended for the Change() function. The action they perform is changing the price but that does not go into effect until the Change() function is called.

Please let me know if you have any further questions.
NinjaTrader_PatrickH is offline  
Reply With Quote
Old 11-20-2017, 11:10 AM   #22
soulfx
Senior Member
 
Join Date: Mar 2011
Posts: 365
Thanks: 46
Thanked 28 times in 27 posts
Default

Hello, thanks for confirming :

I guess what in general i would like to know is that i appreciate it wasnt until post 4 or 5 you took over and from post 8 i specifically asked on quantity or price not changing : AND the title of this thread was clear on the Change() within Addon -> Account : why we are at post 21 to get this straight? Were you operating on the presumption it was in a strategy and those methods are not supported ? If they are not supported for the benefit of fellow users would it not be in order to update the managed help pages for this ?

Point being alot of time elapsed and unnecessary repetition of the same - whilst i appreciate support handle multiple inquiries it seems 'at times' a quick read and reply by support and not fully answering the context of the question can end up taking more time from both parties to resolve back and forth.
just my 2cents

thanks
soulfx is offline  
Reply With Quote
Old 11-20-2017, 11:20 AM   #23
NinjaTrader_PatrickH
NinjaTrader Customer Service
 
NinjaTrader_PatrickH's Avatar
 
Join Date: Jul 2011
Location: Denver, CO
Posts: 10,866
Thanks: 764
Thanked 1,868 times in 1,798 posts
Default

Hello soulfx,

Thank you for your feedback.

I will make sure to take note of this moving forward.
NinjaTrader_PatrickH is offline  
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Order repriced -> Order rejected -> strategy disabled -> overfill error with IB mic414 Platform Technical Support 12 09-19-2017 02:36 PM
Account Performance > Trades > Right Click > Chart cipher4d Platform Technical Support 4 11-15-2011 08:43 AM
NT > IB Order TIF change when chart trading TraderJesse Platform Technical Support 5 09-16-2009 12:57 PM
Ticket #36818]: URGENT>>help me activate my account ASAP tailgunner Platform Technical Support 1 10-29-2007 01:23 AM
Code->test/debug->change code->retest ... cycle process bbarroux Strategy Development 3 10-02-2007 12:44 PM


All times are GMT -6. The time now is 06:38 PM.

Futures, foreign currency and options trading contains substantial risk and is not for every investor. An investor could potentially lose all or more than the initial investment. Risk capital is money that can be lost without jeopardizing ones financial security or lifestyle. Only risk capital should be used for trading and only those with sufficient risk capital should consider trading. Past performance is not necessarily indicative of future results. View Full Risk Disclosure.

CFTC Rules 4.41 - Hypothetical or Simulated performance results have certain limitations, unlike an actual performance record, simulated results do not represent actual trading. Also, since the trades have not been executed, the results may have under-or-over compensated for the impact, if any, of certain market factors, such as lack of liquidity. Simulated trading programs in general are also subject to the fact that they are designed with the benefit of hindsight. No representation is being made that any account will or is likely to achieve profit or losses similar to those shown.

This website is hosted and operated by NinjaTrader, LLC (“NT”), a software development company which owns and supports all proprietary technology relating to and including the NinjaTrader trading platform. NT is an affiliated company to NinjaTrader Brokerage (“NTB”), which is a NFA registered introducing broker (NFA #0339976) providing brokerage services to traders of futures and foreign exchange products. This website is intended for educational and informational purposes only and should not be viewed as a solicitation or recommendation of any product, service or trading strategy. No offer or solicitation to buy or sell securities, securities derivative or futures products of any kind, or any type of trading or investment advice, recommendation or strategy, is made, given, or in any manner endorsed by any NT affiliate and the information made available on this Web site is not an offer or solicitation of any kind. Specific questions related to a brokerage account should be sent to your broker directly. The content and opinions expressed on this website are those of the authors and do not necessarily reflect the official policy or position of NT or any of its affiliates. 

Vendors along with their websites, products and services, collectively referred to as (“Vendor Content”), are independent persons or companies that are in no manner affiliated with NT or any if its affiliates. NT or any of its affiliates are not responsible for, do not approve, recommend or endorse any Vendor Content referenced on this website and it’s your sole responsibility to evaluate Vendor Content. Please be aware that any performance information provided by a vendor should be considered hypothetical and must contain the disclosures required by NFA Rule 2-29(c). If you are interested in learning more about, or investigating the quality of, any such Vendor Content you must contact the vendor, provider or seller of such Vendor Content. No person employed by, or associated with, NT or any of its affiliates is authorized to provide any information about any such Vendor Content.