SmartQuant Discussion

placing orders when a certain price is hit?
Page 1 of 1

Author:  tomba12 [ Wed Sep 15, 2010 10:55 pm ]
Post subject:  placing orders when a certain price is hit?

Is there anyway to place an order to the provided ONLY when a certain price is hit. For example, if i got a signal to place a BUY order on STOCK A at 50, i want to place the order when it hits 49?. Is it possible to do this?

I want to get the signal on a daily bar. When i receive a signal on on daily analysis, I need to check the price every single second to see if the price reaches 49. Is there a way to do this on OQ?

Thank you for your time.

Author:  Dr. Anton Fokin [ Thu Sep 16, 2010 2:05 am ]
Post subject: 


I am not sure if this is what you want to do, but you can check intraday prices in OnTrade and OnQuote event handlers

OnTrade(Trade trade)
if (trade.Price <= 49 && EntrySignal)


Author:  tomba12 [ Thu Sep 16, 2010 9:34 pm ]
Post subject: 

thanks. that's what i was looking for. :)

Page 1 of 1 All times are UTC + 3 hours
Powered by phpBB® Forum Software © phpBB Group