SmartQuant Discussion

Automated Quantitative Strategy Development, SmartQuant Product Discussion and Technical Support Forums
It is currently Thu May 28, 2020 1:14 am

All times are UTC + 3 hours




Post new topic Reply to topic  [ 1 post ] 
Author Message
PostPosted: Thu Oct 08, 2015 6:19 pm 
Offline

Joined: Fri Apr 25, 2014 10:56 am
Posts: 9
Hello,

In my strategy I like to work with the stops level created by the Stop class:

Code:
Stop stopLvl = new Stop(this, position, StopLevelPct, stopType, StopMode.Percent);
AddStop(stopLvl);

protected override void OnStopExecuted(Stop stop)
{
    ClosePosition("stop reached");
}




Is there a way to create an equivalent Limit level?
If looked at using a negative level number, but that does not work, the stop will get triggered immediately.
Another Idea was to first create a reverse position, put I don't think I can construct one.

Regards,

Frank


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

All times are UTC + 3 hours


Who is online

Users browsing this forum: No registered users and 2 guests


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:  
Powered by phpBB® Forum Software © phpBB Group