Author |
Topic: Problem with OnOrderPriceChanged events (2 messages, Page 1 of 1) |
||||
---|---|---|---|---|---|
Moderators: VPfau | |||||
HKusumakar79 Posts: 21 Joined: Feb 18, 2008 |
hi,
i have made some calculation in OnOrderPriceChanged events and i have made one order for one contract. Now i want to check price of the contracts so i have subscribed in quotes, it is working properly at this point. Now i have subscribed in quotes for another contracts. Now price changes for any contract this event is fire and i am getting wrong value for calculation so what i have to do? Actually what i am doing is, when this event is fire i am storing last trade price in one varialbe and doing some calculation on it but now i have subscribed 2 contracts and price change in any contract this event will fire and it is giving wrong like other contract value for calculation And if i will restrict with making contraction validation then also its not working properly bcoz if price change same time then this event fire for only one contract. tell me is there any thing like OnOrderPriceChanged event for perticular contract? and also tell me how i can come out from this? Edited by HKusumakar79 on Apr 7, 2008 at 09:58 AM |
||||
SergeK -Developer- Posts: 475 Joined: Jan 26, 2007 |
public delegate void OnPriceChangedEvent(Contract Contract, Price Price);
just check the Contract parameter of the event. |
||||