- Search Crypto Craft
-
rockit replied Dec 7, 2014Can you please check the comment section of the closed by tp order(s) in account history pane (possibly you have to enable it first)? What does the comment say?
How to find if any EA order has been closed by TP
-
rockit replied Dec 7, 2014I have made some changes to the orig. code so that it can start all over after close out. Doing whatever it does. file I do not see how this strategy makes sense. file
How to find if any EA order has been closed by TP
-
rockit replied Dec 5, 2014I do if the test case is trivial (or rather: static). However, this one is not and I did not, but I have told so. I see what you mean, OP already put in a comment - I do not know what happens with the comment in this case if sl/tp is hit - ideally ...
How to find if any EA order has been closed by TP
-
rockit replied Dec 5, 2014I have looked at some orders that have been closed out by SL/TP and it appears that the brokers indicate such a close in the comment of the order. So far I have seen the text "[sl]" and "[tp]". In such a case the check for TP hit is accurate and ...
How to find if any EA order has been closed by TP
-
rockit replied Dec 5, 2014I have 'implanted' the checks into your code. Hope it works. It considers same magic number and same symbol only. Also: You should really use the new style MQL4; it makes things easier and clearer, because right now you have a lot local variables ...
How to find if any EA order has been closed by TP
-
rockit replied Dec 5, 2014Note that code as provided above only takes into account negative slippage on TP, but not positive slippage. For take account of pos. slip. one would need to define a tolerance value for how much better than TP would still count as TP hit. Or, if ...
How to find if any EA order has been closed by TP
-
rockit replied Dec 4, 2014I would try like code below (note code not tested). What the code does: It first collects all order tickets from the order queue. On a tick it checks the collected tickets for if any has gone to history; if so it checks for tp proximity; if so it ...
How to find if any EA order has been closed by TP
-
rockit replied Dec 2, 2014I am sorry to read that, however the program logic assures that the EA works as expected - it will open a new trade on the first tick of a new candle of the chosen time frame only, in the direction of the last candle of that time frame. Possibly you ...
Need your help to modify weekly EA
-
rockit replied Dec 2, 2014Time frame any. Test on M1 for quick evaluation
file Need your help to modify weekly EA
-
rockit replied Dec 2, 2014I think this will work (with no-commission broker). file
Searching for EA that moves Stop to Entry/BE after x pips
-
rockit replied Nov 28, 20141. PUT CODE ALWAYS INBETWEEN code TAGS Now, if the two oders are the only two orders in the system at any given time, then the problem can be solved in a trivial way: int start() { if(OrdersTotal() != 0) return; OrderSend(Symbol(), OP_SELL, Lot, ...
Controlling The # of Orders
-
rockit replied Nov 27, 2014I think they explained it well to you: In order to use MT4 you need to open a MT4 account. I am sure that you can then internally transfer money from one account to the other. Then you can close the first account if you do not need it anymore. What ...
Switching to MT4
-
rockit replied Nov 25, 2014double d = 78.2123; double ticksize = 0.25; d = (int)(d / ticksize + ticksize) * ticksize; NormalizeDouble(d, 2); Print(d);
Rounding to non-standard numbers in MQL4
-
rockit replied Nov 19, 2014Well the enum increases the readability, or maybe not, in fact it is redundant. Otherwise you'd need to check for the number of elements in the symbol_name array as the upper delimiter, i.e.: for(int i = 0; i < ArraySize(symbol_name); i++) { ... }
How to save price level for several pairs and call it back?
-
rockit replied Nov 19, 2014I will refer to your original question: If you check for bullish candle on every tick then you can also check for break above the high at the same time and possibly put the HLINE*: #property strict enum symbol {AJ = 0, AU, AC, AN}; string ...
How to save price level for several pairs and call it back?
-
rockit replied Oct 28, 2014To prevent such arrows in the future, go Tools->Options->Trade and deselect "Show realtime history of deals on chart". And for those that are already painted, you can at least delete them manually from the chart's Object List (Ctrl + B, and then ...
I hate the entry and exit arrows in metatrader 5
-
rockit replied Oct 22, 2014Ah, bio sam ja na moru, ponajvise kod Makarske. Ali i to je vec vremenski odmaklo.. Nadam se da cu se jednoga dana vratiti u Hrvatsku. Oprosti(te), malo sam se zezao, naime, nisam susreo mnogo tradera iz Hrvatske pa tako..

I will code your EAs and Indicators for no charge
-
rockit replied Oct 22, 2014Yes, no problem. By the way, how's the weather in Zagreb? I wasn't there loooong.. file file
I will code your EAs and Indicators for no charge