- Search Energy EXCH
-
CodeMeister replied Mar 24, 2010No — The logic I gave is correct. Assume that no order is open until it has been confirmed inside the loop. There are any number of reasons the order could have been closed outside the EA ie. manual intervention, hitting the SL/TP.
only 1 trade at a time
-
CodeMeister replied Mar 24, 2010Don't Look at the Count — You are not interested in the count of all orders. You want to know if an order has been opened for the pair that the EA is running on. That is what orderOpen will tell you. Or did I misunderstand something?
only 1 trade at a time
-
CodeMeister replied Mar 23, 2010Try This — int allOrders=OrdersTotal(); orderOpen = false; for(int pos=allOrders-1;pos>=0;pos--) { if(OrderSelect(pos,SELECT_BY_POS, MODE_TRADES)) { if ((OrderSymbol() == Symbol() && OrderMagicNumber()==MAGICBB) && (OrderType() == OP_BUY || ...
only 1 trade at a time
-
CodeMeister replied Mar 22, 2010SILVER — Did you try SILVER? Sometimes the obvious is the hardest to see.
DDE Feed For Silver
-
CodeMeister replied Mar 21, 2010Car Wreck — Kinda like driving past a car and not being able to resist a peek.

Forex Robot World Cup?
-
CodeMeister replied Mar 21, 2010Try This — Error 130 can be caused by the SL/TP being too close to the Bid/Ask or the number isn't a proper price - precisely 4 or 5 digits. You think that it isn't the first reason, so you need to ensure that the price is sent properly and ...
BuyStop SellStop Order error, please help!
-
CodeMeister replied Mar 21, 2010Few Pointers — What you have written will work. But there are better ways to do it. I don't understand the use of the iTime() when working with the current chart pair and time frame. Time[] is the standard practise for that. iTime() is only ...
Time of high and low bars?
-
CodeMeister replied Mar 21, 2010Ignore Him — Put that idiot on Ignore like I did several months ago. I don't know why the moderators haven't banned him permanently.
Forex Robot World Cup?
-
CodeMeister replied Mar 20, 2010Imaginative — I never thought of this angle to the 30 trading days policy. But it is an example of unintended consequences for FRWC because I doubt if they thought of it either. For the life I can't think of why they came up with that ...
Forex Robot World Cup?
-
CodeMeister replied Mar 20, 2010Crossover EA — What you are looking for is an MA crossover EA. There are plenty of them around, don't need to write a new one.
Help for a little EA Moving Average
-
CodeMeister replied Mar 20, 2010Don't Understand — Did you intend to open Buy and Sell orders with every tick? Probably not. You have to understand the difference between scripts and EAs which is basically that scripts are intended for one time actions and EAs are intended ...
Help with Buy & Sell EA
-
CodeMeister replied Mar 19, 2010Good Guy — Jason seems to be one the good corporate types or at least he is approachable as shown in this thread from BabyPips. url
Forex Robot World Cup?
-
CodeMeister replied Mar 19, 2010Normalize — I haven't actually seen the unnormalized Bid price cause an error yet, but why take chances. It is known that values like High, Low, Open and Close need to be normalized when used in OrderSend(), so why not take the extra ...
ECN ordersend without ordermodify
-
CodeMeister replied Mar 18, 2010Excellent Idea — I was thinking exactly the same thing several hours ago and haven't been able to organize my thoughts about it. I'm not an owner, my primary interest was to compete with one my own robots - not a chance of that happening any ...
Forex Robot World Cup?
-
CodeMeister replied Mar 18, 2010Very Difficult — Perhaps one of the reasons you didn't find one is because this kind of indicator is very difficult to write. Specifically finding the trend. I have been trying for months to do it and have been partially successful. I have ...
Desperatly need alert indicator for break of previous candle.
-
CodeMeister replied Mar 18, 2010Spread — It depends on whether you want to express the spread in pips or in monetary units and if it is in pips whether you want to express it in traditional pips or fractional pips. If you want to express it in traditional pips, the formula ...
Ask/Bid programming problem
-
CodeMeister replied Mar 18, 201030 Day Trading Nonsense — I wouldn't bother trying to trade for 30 days in the manner they describe. In their money back guarantee, they didn't specify this and any reasonable person would assume they meant 30 calendar days. Does this mean ...
Forex Robot World Cup?
-
CodeMeister replied Mar 17, 2010Question — I think the question should be how many can you put on a chart? I'm not sure whether the computer or the trader would max out first.
Custom Indicators MT4 maximum?
-
CodeMeister replied Mar 17, 2010Agree Completely — I agree with this observation. I wonder if trading it manually would pick different setups. Things look different visually than logically.
1-2-3-Go System (No Indicators)
-
CodeMeister replied Mar 15, 2010Some Assistance — Well I never intended to take on another coding project and my offer of assistance was to provide advice. My Delphi coding skills are a bit rusty and goes back to days of Borland. I can't find any good tutorials and at this ...
Awesome system - HELP!