SmartQuant Discussion

Automated Quantitative Strategy Development, SmartQuant Product Discussion and Technical Support Forums
It is currently Fri Oct 23, 2020 2:43 pm

All times are UTC + 3 hours




Post new topic Reply to topic  [ 3 posts ] 
Author Message
PostPosted: Wed Sep 15, 2010 10:55 pm 
Offline

Joined: Fri Aug 20, 2010 12:12 am
Posts: 5
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.


Top
 Profile  
 
 Post subject:
PostPosted: Thu Sep 16, 2010 2:05 am 
Offline

Joined: Tue Aug 05, 2003 3:43 pm
Posts: 6817
Hi,

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)
Buy(...);
}

Regards,
Anton


Top
 Profile  
 
 Post subject:
PostPosted: Thu Sep 16, 2010 9:34 pm 
Offline

Joined: Fri Aug 20, 2010 12:12 am
Posts: 5
thanks. that's what i was looking for. :)


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC + 3 hours


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group