Logic help - page 2

 
2009.09.16 12:42:01 2009.01.02 10:02 NEW_Code Test 4_Working Lebeaus MA POS SIZE EURUSD,H1: OrderModify error 1
2009.09.16 12:42:01 2009.01.02 10:02 NEW_Code Test 4_Working Lebeaus MA POS SIZE EURUSD,H1: Bid - 1.3838 type - 1 stop - 1.3898 newstop - 1.4034
2009.09.16 12:42:01 2009.01.02 10:02 NEW_Code Test 4_Working Lebeaus MA POS SIZE EURUSD,H1: OrderModify error 1
2009.09.16 12:42:01 2009.01.02 10:02 NEW_Code Test 4_Working Lebeaus MA POS SIZE EURUSD,H1: Bid - 1.3838 type - 1 stop - 1.3898 newstop - 1.4034
2009.09.16 12:42:01 2009.01.02 10:02 NEW_Code Test 4_Working Lebeaus MA POS SIZE EURUSD,H1: OrderModify error 1
2009.09.16 12:42:01 2009.01.02 10:02 NEW_Code Test 4_Working Lebeaus MA POS SIZE EURUSD,H1: Bid - 1.3838 type - 1 stop - 1.3898 newstop - 1.4034
2009.09.16 12:42:01 2009.01.02 10:02 NEW_Code Test 4_Working Lebeaus MA POS SIZE EURUSD,H1: OrderModify error 1
2009.09.16 12:42:01 2009.01.02 10:02 NEW_Code Test 4_Working Lebeaus MA POS SIZE EURUSD,H1: Bid - 1.3838 type - 1 stop - 1.3898 newstop - 1.4034
2009.09.16 12:42:01 2009.01.02 10:02 NEW_Code Test 4_Working Lebeaus MA POS SIZE EURUSD,H1: OrderModify error 1
2009.09.16 12:42:01 2009.01.02 10:02 NEW_Code Test 4_Working Lebeaus MA POS SIZE EURUSD,H1: Bid - 1.3838 type - 1 stop - 1.3898 newstop - 1.4034
2009.09.16 12:42:01 2009.01.02 10:02 NEW_Code Test 4_Working Lebeaus MA POS SIZE EURUSD,H1: OrderModify error 1
2009.09.16 12:42:01 2009.01.02 10:02 NEW_Code Test 4_Working Lebeaus MA POS SIZE EURUSD,H1: Bid - 1.3838 type - 1 stop - 1.3898 newstop - 1.4034
2009.09.16 12:42:01 2009.01.02 10:02 NEW_Code Test 4_Working Lebeaus MA POS SIZE EURUSD,H1: OrderModify error 1
2009.09.16 12:42:01 2009.01.02 10:02 NEW_Code Test 4_Working Lebeaus MA POS SIZE EURUSD,H1: Bid - 1.3838 type - 1 stop - 1.3898 newstop - 1.4034
 

Can you post the precise piece of code that generated this - without first making any changes to it.

Additionally I notice you haven't output the Bid price, the OrderType() or the OrderSymbol() as requested. I'd also like to see Symbol(). Just checking its not something really straightforward like trying to modify an order from a different symbol to the one you've launched the strategy tester against.


CB

 

Very weird, it should work. Try to restart the terminal.

 

I've attached the code as a file. Please be aware i've been trying to fix this problem for some time and I now only change the first case when checking (so i'm not changing 5 others just to have it not work). So the one i'm concerned with is the first case in checking Short positions.

Thanks for the help,

BB

 
Bauer_Boy:
2009.09.16 12:42:01 2009.01.02 10:02 NEW_Code Test 4_Working Lebeaus MA POS SIZE EURUSD,H1: OrderModify error 1
2009.09.16 12:42:01 2009.01.02 10:02 NEW_Code Test 4_Working Lebeaus MA POS SIZE EURUSD,H1: Bid - 1.3838 type - 1 stop - 1.3898 newstop - 1.4034

You modifying a sell order and moving the stoploss further up. Is that really what you want? Perhaps the system rejects that.

 
WHRoeder wrote >>

You modifying a sell order and moving the stoploss further up. Is that really what you want? Perhaps the system rejects that.

Its moving it to follow the 55 Period Moving Average (which is optimizable) and the 55 just happens to be further than the initial, i'll look into it though thank you.

 

Look at this:

                            case 1 :                      
                                while(Bid > SOOP60 && OrdersTotal() > 0 && ma1 != ma1p)
                                 {
                                 checkstop1();
                                 
                                 }                                 
It's endless. You didn't fresh dates. Especially in tester it won't work.
 
Try this with my changes.
 
Same error, I'll have to mess around with something to get out of the while condition. Thanks for the help
 
What period did you test? I tested september-no errors.
Reason: