Monday, December 01, 2008     | Register
TradersStudio Forums
Subject: Implementing IF DONE orders

You are not authorized to post a reply.   
Author Messages
hjelliott
Posts:1

03-19-2007 11:19 PM Alert 

Hi,

Can anyone tell me the best way to implement an IF DONE order.

For example, consider the following order:

BUY 1 contracts ON STOP 0.8550
IF DONE BUY 2 contracts ON STOP 0.8530

EXITALL LONG ON STOP 0.8510

Basically the system enters long 1 contract on a set of criteria (this part is done). If the price falls to a certain level, I want to average down. If it falls further, to another level, then I exit all longs.

Thanks,

Howard

 

quest
Posts:11

03-28-2007 7:05 PM Alert 

Hi,

The first way that springs to mind is to track the value of the marketposition variable. If it rises by one, ie. your buy stop was filled, place two more buy stops etc.

This depends on marketposition being incremented immediately rather than at the end of the bar of course.

 

Thx

D

You are not authorized to post a reply.
Forums > Technical Trading > Developing Trading Systems > Implementing IF DONE orders



ActiveForums 3.6
TradersStudio® Copyright 2004-2008 All Rights Reserved   |  Privacy Statement  |  Terms Of Use