- Search Energy EXCH
- 1,159 Results (26 Threads, 1,133 Replies)
-
ecTrade replied Sep 20, 2009Great, thanks for checking.

Close all Orders Modification script..kindly
-
ecTrade replied Sep 20, 2009Okay, so you want it in EA form? I haven't had a chance to check it yet (market hasn't opened), but it should work.
Close all Orders Modification script..kindly
-
ecTrade replied Sep 20, 2009Here, this should work: if(Equity_New==0){ Equity_New=AccountEquity(); } Equity_Base=AccountEquity(); if(Equity_Base>=Equity_New+Set_Profit){ Equity_New=Equity_Base; Close_All="y"; } if(Close_All=="y") { int total=OrdersTotal(); for(int i=total-1; ...
Close all Orders Modification script..kindly
-
ecTrade replied Sep 19, 2009I've done something similar with this here, except it's set up to close all trades of a specific symbol. If you delete the reference to the symbol, then it should close all trades. Also, if you open any orders under a different symbol, then you are ...
Close all Orders Modification script..kindly
-
ecTrade replied Sep 12, 2009Maybe it's because you need .mq4 files which, once they are compiled (via the MetaEditor), it creates the .ex4 files I believe. In other words you have to have both files in order to get it to work.
.EX4 File Problem
-
ecTrade replied Aug 31, 2009Ouch! ... Yes, I have had this happen to me too, except fortunately it was on a demo account. But it seemed like it was always a programming issue, and was something I could correct. Here is an example of what I do to insure only one order is open ...
Two Dimensional Array vs One Dimensional Array
-
ecTrade replied Aug 31, 2009Aside from plotting trades, there are other things I'm trying to do with it. But, unless I can plot the trades correctly it won't work. And yes, I am using a loop, actually two, one for setting up the grid, and one for accessing it (see first three ...
Two Dimensional Array vs One Dimensional Array
-
ecTrade replied Aug 30, 2009I am trying to plot a grid system, which places a trade every so many points (currently it's set at 8). But like I said, it's missing or not placing a trade at every 5th interval. And it doesn't seem to matter how I go about doing it, whether it's 5 ...
Two Dimensional Array vs One Dimensional Array
-
ecTrade replied Aug 30, 2009Okay, having said that, I created a new one dimensional array with 250 elements and plotted them at 8 point intervals on the grid, and I'm still having the same problem. It's skipping every 5th interval and not plotting it on the grid. Which would ...
Two Dimensional Array vs One Dimensional Array
-
ecTrade replied Aug 29, 2009Wow! Yeah, I see what you're saying. So, I was essentially correct when saying if I had a two dimensional array "set" at 50 in each dimension, it would yield 2500 (i.e., 50 x 50) elements. Or, if it were a three dimensional array, it would yield ...
Two Dimensional Array vs One Dimensional Array
-
ecTrade replied Aug 29, 2009Okay, apparently I seem to have the right idea. This is what I did to load the array: double Targ1[50][5]; Tier1=Point*8; Tier2=Tier1*5; for(int a=0; a<=49; a++) { for(int b=0; b<=4; b++) { Targ1[a][b]=TB_Hi-(Tier2*a)-(Tier1*b); } } However, I am ...
Two Dimensional Array vs One Dimensional Array
-
ecTrade replied Aug 29, 2009Of course this doesn't tell anything about how to assign the variables. I suppose that would help too.

Two Dimensional Array vs One Dimensional Array
-
Two Dimensional Array vs One Dimensional Array
Started Aug 29, 2009|Platform Tech|13 replies
Can anyone explain to me what a two dimensional array is, versus a one dimensional array and ...
-
ecTrade replied Aug 28, 2009If think you're supposed to select order first, before order type: OrderSelect(OrderTicket(),SELECT_BY_POS,MODE_TRAD ES); if(OrderType() == OP_BUY) { OrderDelete(OrderTicket()); }
troublesome line of code
-
ecTrade replied Aug 27, 2009For some reason it's not initializing. If you could get it to do that it would probably work fine. It's probably something real petty.

Another type of Order Script ?
-
ecTrade replied Aug 27, 2009Am not sure about this? "if(MayOpenDeferOrder && (Delay_Next_Order_Minutes > 0))" ... Is "Delay_Next_Order_Minutes" a function or just a variable? If it's a function, I believe it should read, "if(MayOpenDeferOrder && Delay_Next_Order_Minutes() > ...
troublesome line of code
-
ecTrade replied Aug 26, 2009Here's something that might work. Except for whatever reason I can't get it to work? Maybe someone here can point out what's wrong? Oh, it's set up to Buy by default. If you wish to Sell, change T1_Sell or T2_Sell to "y" or "1", etc. ...
Another type of Order Script ?
-
ecTrade replied Aug 25, 2009By the way, the +900 value for the OrderCloseTime is not showing up correctly. It shows up as +90 0 (with a space) instead of +900. I was going to reply and ask how you were calculating this, but saw that it said +900 in the editor mode. And of ...
troublesome line of code
-
ecTrade replied Aug 24, 2009Are they all of the same pair? Or, different pairs? If they are different pairs, then it might be from this "chart delay" I'm talking about. If so, then it may not have been necessary to add the additional code (although it probably won't hurt to ...
Grid Trading
-
ecTrade replied Aug 24, 2009How's everything going? Okay, I guess. So long as I'm not thinking about it or, nothing is bothering me, that's usually the case.

Grid Trading