Opening Hedge Trade, Please Help! New comment [Deleted] 2009.08.06 13:44 Is this string preventing a second order from opening? Total = OrdersTotal(); //Check position bool IsTrade = False; for (int i = 0; i < Total; i ++) { OrderSelect(i, SELECT_BY_POS, MODE_TRADES); if(OrderType() <= OP_SELLSTOP && OrderSymbol() == Symbol()) { IsTrade = True; if(OrderType() == OP_BUYSTOP) { How do I change it to allow as a second trade? Could someone explain the process? Please Help! Help- Can Anyone explain why the Second Trade Doesn't open? Did I make a trade on the current bar? Open trade Buy/Sell at same or 1pips away from MA price. New comment
Is this string preventing a second order from opening?
Total = OrdersTotal();
//Check position
bool IsTrade = False;
for (int i = 0; i < Total; i ++) {
OrderSelect(i, SELECT_BY_POS, MODE_TRADES);
if(OrderType() <= OP_SELLSTOP && OrderSymbol() == Symbol()) {
IsTrade = True;
if(OrderType() == OP_BUYSTOP) {
How do I change it to allow as a second trade? Could someone explain the process?
Please Help!