- Search Crypto Craft
-
rockit replied Dec 9, 2014Sorry, I have forgotten indeed to reset lot. Now done: file Regards the other question. It depends: if you want to have the conditions coupled by logical OR (then return after each), or by logical AND (then return after the last chained condition. ...
How to find if any EA order has been closed by TP
-
rockit replied Dec 9, 2014I am master of disaster. Such simple thing and I failed lol. OK there was a small logical error *erm*. Please reload from post #15. Also note that the EA is tick driven (meaning price change). Therefore I would place it on a chart with a symbol that ...
EA - close trade of currency pair when “X” profit is reached
-
rockit replied Dec 9, 2014No, this is official MQL4 since MT4 build 600 (currently 755). The other style is deprecated and should not be used anymore. It is limiting anyway.
Coding help with d’Alembert Forex EA
-
rockit replied Dec 8, 2014Try this (in the tester that is..): #property strict input int SL = 130; input int TP = 140; double lot = 0.01; int ticket; int OnInit() { ticket = OrderSend(Symbol(), OP_BUY, lot, Ask, 2, Ask-SL*Point, Ask+TP*Point); if(ticket > -1) return ...
Coding help with d’Alembert Forex EA
-
rockit replied Dec 8, 2014Edit: I apologise I now know what was the problem.. Final stand: file
EA - close trade of currency pair when “X” profit is reached
-
rockit replied Dec 8, 2014Well you have to be very precise about each and every parameter (or step) the EA must consider (because I do not want to do it over and over again, or ask and ask for clarification). Not just a shallow example. So, now it looks that the steps are as ...
How to find if any EA order has been closed by TP
-
rockit replied Dec 8, 2014If I understand well, you want to have control over what side the ping-pong starts on? I can do that but keep in mind: This shall be the last thing I will assist you with, in this matter.
How to find if any EA order has been closed by TP
-
rockit replied Dec 7, 2014There was still a bug in the code. I have re-uploaded the last version (see post #32).
How to find if any EA order has been closed by TP
-
rockit replied Dec 7, 2014Yeah man, I too just wanted to propose just that (had some other work to do though), in order to stop this random token BS from this MT4 thing.. Seems like you do not like "!="? *g*
How to find if any EA order has been closed by TP
-
rockit replied Dec 7, 2014Hm.. for some reason it's "[tp]" again and not "0[tp]"!?
How to find if any EA order has been closed by TP
-
rockit replied Dec 7, 2014Oh well.. that MT4. Buggy or what? Please remove "#property strict" from source..
How to find if any EA order has been closed by TP
-
rockit replied Dec 7, 2014Yes, the >= check does the trick - but only when there is no slippage to the other side, like in real life. Now to the other part: Then you have three trades - how far do you intend to do this ping-pong? It reads simple though: each time the last ...
How to find if any EA order has been closed by TP
-
rockit replied Dec 7, 2014OK I think I got it. You will have to modify in check_tp_hit function where it says OrderComment() == "[tp]" into: OrderComment() == "0[tp]" . For some reason.. And this is only(!) for the tester. Now because of you I had to learn to do the test(er) ...
How to find if any EA order has been closed by TP
-
rockit replied Dec 7, 2014Seems like in the tester TP is not indicated (retrievable) or indicated somehow else than by comment. Possibly try printing all attributes (i.e. OrderType, Order bla bla) of those historic orders (in check_tp_hit()) to see if there is something that ...
How to find if any EA order has been closed by TP