| / | Forum |
|
EnigmaTrader
2008.11.14 11:24
i have a program statement that places an OP_SELLLIMIT. It is being accepted as an order with no errors, but when the price target is hit, the order just disappears from the screen. Never does show up as a 'sell' order. tia, Keith Sell_ticket=OrderSend(Symbol(),OP_SELLLIMIT,Lots,SellAt,3,0,0,"",MAGICMA,0,Red); |
|
Interview with Andrey Vedikhin The most common error of traders is that they try to write a universal Expert Advisor, which would remain profitable regardless of the current market state. In my opinion, the simplest and most effective solution would be to diversify trading tactics. |
|
Roger
2008.11.14 21:46
This string is good. Something wrong in your code. Could you show us the whole code? |
|
EnigmaTrader
2008.11.14 22:40
|
|
Roger
2008.11.15 11:12
After
Sell_ticket=..
Put
if(Sell_ticket<0)Print("Error Sell - ",GetLastError());
and check your Experts and Journal logs. I suppose you have orders prices too close to real price.
|
|
EnigmaTrader
2008.11.17 04:25
Roger wrote >>
After
Sell_ticket=..
Put
if(Sell_ticket<0)Print("Error Sell - ",GetLastError());
and check your Experts and Journal logs. I suppose you have orders prices too close to real price.
No, dont think so. the Limit order is being accepted, no stop loss, take profit is 10pips. just when the moving price hits my sell/buy limit it just disappears with no error code generated. take profit is 10 away from the limit entry price. |
|
Roger
2008.11.17 04:49
Do you have enough money? |
|
EnigmaTrader
2008.11.17 05:54
humm, thought i did. would that not give an error when the limit order was placed? well open another demo account with lots of money and see. ----------------------------------------------------------------------- stupid me. should have tried to open an order in the first place. that seems to be what is wrong, as i could not open a market order. told me not enough money. thanks Roger, do not know how long it would have taken me to figure that out. |