- Search Crypto Craft
-
rockit replied Sep 24, 2015Well, there should be a way to directly 'talk' to the server from any custom application, without the necessity to go through the terminal. Either by open (binary! - no xml/json) protocol or a standalone api.
Trading platform by traders for traders
-
rockit replied Sep 15, 2015If you represent each condition as a bit in an integer then each combination is simply an integer number 0 (all false) to 127 (all true). Example: If condition 3 is true, set 3rd bit to 1, otherwise set to 0, and so on.
How to output and/or test all possible permuations of 7 bools
-
rockit replied Jul 23, 2015You better complete the "Connect API"; right now it cannot be used in a meaningful way - there is one peculiar detail missing: the spot event does not carry a time stamp!? Which is ridiculous - all events must carry a time stamp; also, if there's no ...
cTrader & cAlgo - The New Standards in FX Trading Platform
-
rockit replied Jul 21, 2015Exactly! It is apparent that this "industry" still trying to take all the advantage they can get over traders, in a way that they give traders only limited trading tools at hand. Same ol' shady business.
Why do so many people use MT4?
-
rockit replied Jul 21, 2015Sure, paying company X instead of company Y does not necessarily make things better. We would have to use free (OSS) infrastructure instead. Such does exist; i.e. LMAX's "disruptor" technology is made open source (OSS). It is said that FIX is the ...
Why do so many people use MT4?
-
rockit replied Jul 21, 2015It is mostly popular with brokers. You have to understand the origins: back then ratail fx mostly existed as bucket shops type brokers (and still does), and Metatrader was tailored to brokers so that they could steal money from their clients quite ...
Why do so many people use MT4?
-
rockit replied Jul 20, 2015You have to do it like so: Comment(dustatic());
Assigning a bid value to a fixed variable
-
rockit replied Jul 14, 2015Not sure what you are trying to accomplish (that is, asking for), but you can "reset" any variable at any time by simply assigning to it an initial value. If you have input variables (that is constants) simply create a new (working) set of runtime ...
Resetting MT4 EA Parameters through code
-
rockit replied Jul 6, 2015ok; another thing: if you make the stop orders by the same expert then you already know the ticket numbers (ticket1, ticket2) and do not need loop over the order queue; and it all collapses to simply: if(OrderSelect(ticket1, SELECT_BY_TICKET) && ...
Problem with deleting pending orders
-
rockit replied Jul 6, 2015I have tested it and it works. So the problem is your (other) code.
Problem with deleting pending orders
-
rockit replied Jul 6, 2015I cannot see why it would not work. Is your code in the new mql style? What does the log say?
Problem with deleting pending orders
-
rockit replied Jul 6, 2015I made a small mistake
now: bool cancel=false; int ticket=-1; for(int s=0; s<OrdersTotal(); s++) { if(OrderSelect(s, SELECT_BY_POS) && OrderSymbol()==Symbol() && OrderMagicNumber()==magic) { if(OrderType()<2) { if(ticket>0) { bool ...Problem with deleting pending orders
-
rockit replied Jul 6, 2015Try: bool cancel=false; int ticket=-1; for(int s=0; s<OrdersTotal(); s++) { if(OrderSelect(s, SELECT_BY_POS) && OrderSymbol()==Symbol() && OrderMagicNumber()==magic) { if(OrderType()<2) { if(ticket>0) { bool r=OrderDelete(ticket); return; } else ...
Problem with deleting pending orders
-
rockit replied Jun 29, 2015HFT defined as "HFT uses proprietary trading strategies carried out by computers to move in and out of positions in seconds or fractions of a second." is doable with MT4 if your broker executes fast (i.e. 10-20 ms). So, it is mostly the exec time of ...
EA needed for direct access algo
-
rockit replied Jun 29, 2015Yeah, you babbling a lot of nonsense. It's all put up on their page, so why you know (almost) nothing about it? For such a purpose you'd need to trade big volume and use the FIX API.
EA needed for direct access algo
-
rockit replied Jun 26, 2015Yeah this is basic stuff. You cannot build code without the basics. Btw, you have no loop(s) in there. A loop is initiated with a "for" or "while" statement; you have neither nor. You have simply a function - when called program flow is transferred ...
"RETURN" statement formatting in MT4
-
rockit replied Jun 25, 2015You have to calculate risk once per order and then save it, so that you can re-use it (via ticket).
Trailing Stop EA
-
rockit replied Jun 25, 2015This fact suggest that you are not calculating the values per order. It is difficult to follow what you are really doing because it seems each time you present a different code. In the second code you are clearly using the same values for all orders ...
Trailing Stop EA
-
rockit replied Jun 25, 2015I cannot quite assess the relevance of this, but you are not calculating BuyRisk/SellRisk/TrailFactor/TrailMove/BECSAdd variables for each order, but use the same values for all orders (and also, you are not normalising the final value(s), what you ...
Trailing Stop EA
-
rockit replied Jun 24, 2015If your algo works for one order, it works for any (because the process is not different). However, this presumes that all variables are correctly assigned anew the data of the next order. So, chances are you are failing at this auxiliary step.
Trailing Stop EA