SmartQuant Discussion

Automated Quantitative Strategy Development, SmartQuant Product Discussion and Technical Support Forums
It is currently Mon Sep 23, 2019 2:32 pm

All times are UTC + 3 hours




Post new topic Reply to topic  [ 4 posts ] 
Author Message
PostPosted: Thu Jan 07, 2010 1:07 pm 
Offline

Joined: Mon Mar 09, 2009 3:49 pm
Posts: 42
Hi,
I would like to generate a file showing current trailing stop levels (I'm working with daily bars, so no intraday levels needed). I couldn't figure out how to do it. Any help or hints would be very much appreciated.
Bill


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jan 08, 2010 6:19 am 
Offline

Joined: Thu Jun 08, 2006 3:56 pm
Posts: 537
Location: BC Canada
I'm just guessing, but when you create the stop object, do you save it in a variable, so you can look at the properties of the stop object later? (same way you cancel a stop). Something like this:
Code:
        Stop foo = new Stop ();
        Console.WriteLine ("Trailing stop level= {0:F4}", foo.StopPrice)
        Console.WriteLine ("Trailing stop level= {0:F4}", foo.Level)


It seems to me there are some good stop loss articles in the forum somewhere.


Top
 Profile  
 
 Post subject:
PostPosted: Mon Jan 11, 2010 4:36 pm 
Offline

Joined: Mon Mar 09, 2009 3:49 pm
Posts: 42
Thanks kkwj.
The problem is, that I would like the price level for the day. With your example I can only see the trailing level, or did I get that wron?
However, I would like to see the current stop price levels.


Top
 Profile  
 
 Post subject:
PostPosted: Mon Jan 11, 2010 6:32 pm 
Offline

Joined: Wed Oct 08, 2003 1:06 pm
Posts: 833
Hi,

Perhaps StopPrice is what you are looking for. It shows the current level at which the stop will be triggered.

Regards,
Sergey.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 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