Thread: How to code?
View Single Post
  #964 (permalink)  
Old 05-27-2008, 10:30 PM
matrixebiz's Avatar
matrixebiz matrixebiz is offline
Senior Member
 
Join Date: Oct 2006
Posts: 1,218
matrixebiz is on a distinguished road
Thanks Big Be for your help but I just realized that my old code does work but I have to enable the use of a StopLoss for SELL orders to get modified..

Wierd, that I don't need to enable a TakeProfit for MoveStopOnce to work with a BUY order but I have to enable a StopLoss for MoveStopOnce to modify the SELL order.

Oh, well, I'll have to look at the code a little deeper to figure that one out unless you know why.


EDIT: if you change to;
Code:
if(0 < OrderOpenPrice() - Point * MoveStopTo) {
instead of;
Code:
if(OrderStopLoss() < OrderOpenPrice() - Point * MoveStopTo) {
Seems to work good.

Thanks

Last edited by matrixebiz; 05-27-2008 at 11:11 PM.
Reply With Quote