- Search Energy EXCH
- 1,159 Results (26 Threads, 1,133 Replies)
-
ecTrade replied May 17, 2010Oh, there may be other things going on internally within the EA that may also affect this. For example, the lot_multiplier is set to "true," and the multiplier is set to "2.0." So, this could very well be the problem. I suppose you could try setting ...
Gem of an EA needs a slight change
-
ecTrade replied May 17, 2010Yes, it should have. I didn't check for that. I was more focused on the fact that it set an actual take profit value. I could have got the calculation wrong. This was the main thing holding it up, and at first I couldn't get it to work. So, when I ...
Gem of an EA needs a slight change
-
ecTrade replied May 17, 2010Yes. Yes, it overrides tp_in_money variable, but only on the first trade. It's also adjustable. For example, I set it to 40 (as default) which is 40% of tp_in_money target. Currently it's set at $5.00 (default) so, 40% of that would be $2.00. Or, if ...
Gem of an EA needs a slight change
-
ecTrade replied May 17, 2010Alternate Close All ... — Holy shit! I actually got this to work.
It looks a little different on the graph though (almost inverted), but it basically does the same thing. I based target on tp_in_money variable, and they may not have. This ...Gem of an EA needs a slight change
-
ecTrade replied May 15, 2010Looks like you have the right idea by doing an OrderSelect() and specifying the conditions under which you want it to close. Beyond that, I don't know enough about the conditions you are using in order to comment. Sorry.
was it an earthquake? no just my EA going bonkers. please help.
-
ecTrade replied May 15, 2010If you are looking to limit the number of trades at once, this is typically what I do ... int cnt=0,Total=0,B_cnt=0,S_cnt=0; for(cnt=0; cnt<=Total; cnt++) { if(OrderSelect(cnt,SELECT_BY_POS,MODE_TRADES)==true) { ...
was it an earthquake? no just my EA going bonkers. please help.
-
ecTrade replied May 15, 2010Added Hekein Ashi — for anyone interested I added a Hekien Ashi indicator and an option (both are in properties box) to set it in reverse. If you set it to forward (default) it won't work, as the EA is designed to buck the trend, so to speak. ...
Gem of an EA needs a slight change
-
ecTrade replied May 14, 2010Yeah, the only time I notice any inconsistency from one back test to the next is when the spread changes. So, that's usually the first thing I look for anymore when the results change and I know they shouldn't.
Backtesting EA and closing trade at ma
-
ecTrade replied May 13, 2010I think the important thing is that you can get the two to run simultaneously (and no, you don't have to put the indicator on chart, just make sure it's in indicator folder) and get the EA to access the indicator. And no, indicators are not designed ...
Attach Indicator to Chart using EA
-
ecTrade replied May 13, 2010By themselves, no, I don't think indicators are designed to do this. However, as 7bit has explained above, the indicator itself can be accessed by the EA through iCustom. So in that sense, yes, an indicator can be used to trigger an EA, except that ...
Attach Indicator to Chart using EA
-
ecTrade replied May 13, 2010Here's a good thread that shows how to do this using iCustom.
Can an Indicator run an EA
-
Writing Code to Operate at London Time
Started May 13, 2010|Platform Tech|2 replies
Can anyone tell me how to write the code that tells an EA to operate according to London Time? ...
-
ecTrade replied May 13, 2010For anyone who is interested, I fixed the counter. I omitted a line of code when I did a copy and paste. I'm surprised it even worked at all, otherwise I probably would have caught it.

Gem of an EA needs a slight change
-
ecTrade replied May 12, 2010extern double Lots=0.01; extern int TakeProfit=15; extern int StopLoss=20; extern int Slippage=3; double TP,SL,Slip; int TBuy,TSell; //+------------------------------------------------------------------+ //| expert initialization function | ...
How can I add SL to an EA?
-
ecTrade replied May 12, 2010Yes, it should work with iCustom.
another day another challenge. indicatorCounted()
-
ecTrade replied May 12, 2010It should work as advertised, although it doesn't guarantee it will fix the problem you are asking about. Hopefully it will.

Gem of an EA needs a slight change
-
ecTrade replied May 12, 2010Okay, I think I got it. I moved the counter section down below the trade section but left the Close_All command up above. The counter works now as does the Close_All function, although its not readily discernible (see comments display). There's also ...
Gem of an EA needs a slight change
-
ecTrade replied May 12, 2010Nevermind ...
I just modified it to display the order count, and it by-passed it entirely. He/she has a different way of specifying the symbol and magic number (if that's what they're doing?) and, it will only work when I specify it the same way. ...Gem of an EA needs a slight change