- Search Crypto Craft
-
rockit replied Jun 24, 2015Are you asking how to implement a TS? - You need (per order) a trail distance and I suggest a step (i.e. one pip or more, and not sub-pip). From there it's easy and the plain TS code looks i.e. something like this: if(OrderSelect(...)) { ...
Trailing Stop EA
-
rockit replied Jun 18, 2015What I meant is this: I am trading via the same broker you mentioned with your account. They told me that negative slippage can occur on their limit orders(!), which by definition must not occur since the very sense of a limit order is to not to be ...
Question for Big Time Professional Traders/Programmers
-
rockit replied Jun 18, 2015Generally speaking it is a bad idea to use an account with admin. rights for everyday tasks. In example if you acquire malware or become victim of a yet not fixed operating system security vulnerability, this might cost you more than you gain from ...
My MT4 platform cannot open new charts - please assist!
-
rockit replied Jun 18, 2015The reason would be that you do not have sufficient rights to write to the (installation) folder. The solution would be simple: copy the installation folder to a destination where you can write to, i.e. your local Documents folder; make the shortcut ...
My MT4 platform cannot open new charts - please assist!
-
rockit replied Jun 17, 2015There is profitable traders at every broker.. well unless they get kicked for they are profitable. So, what's the point? Point is if you are profitable or not should not depend on the broker. However, possibly with certain strategies it does.
Profitable traders only: who do you trade with?
-
rockit replied Jun 17, 2015However the thread is about the character of OctaFX. You both missed the point. It shows that if you are a loser, OctaFX welcomes you. And if you are a winner, they will quickly want to get rid of you. That's not the way it is supposed to be, that's ...
OctaFX: Please close your account
-
rockit replied Jun 17, 2015To avoid/determine slippage you will need a platform with active slippage control (i.e. Dukascopy), true limit orders (i.e. limit orders that cannot be executed worse than the limit - some MT4 brokers perhaps), or IOC/FOK capabilities. But this may ...
Question for Big Time Professional Traders/Programmers
-
rockit replied Jun 17, 2015Once activated (put on), the comment will stay on until cleared or changed i.e. Comment(""); So, you have to decide when you want to take the comment down or change it. The EA runs by the tick, so you can clear/change it by the next tick, next ...
Question about comment handling in mt4
-
rockit replied Jun 15, 2015This is standard behaviour since at least a half a year ago. Unless you start your terminal with the portable switch. So, the question is why your problem surfaced right now? It would mean that your platform has not updated so far which should be ...
MT4 platforms referencing AppData/Roaming/Metaquotes/Terminal
-
rockit replied Jun 12, 2015You still do not know to code in mql. That's the problem. Your code has logic/syntax flaws. 1. Your 1st/2nd if-statements (both) are terminated after the first statement that follows. 2. You are using strings (3th/4th outer if-statements) instead of ...
Sending algorithmic string to buy signal in mt4
-
rockit replied Jun 11, 2015No, it's the other way around. You can easily test it to see that it does not wait. Make an expert with the code: #property strict void OnTick() { if(AccountEquity() > AccountBalance()) Print("higher"); else Print("not higher"); }
MT4 OrderClose Question
-
rockit replied Jun 11, 2015Problem is likely somewhere else in your code - looks like your code is waiting for an new bar to execute (that is it runs per bar and not per tick). Otherwise it would be a bug - yes. Also, your code is kinda odd - the keyword NULL is rather used ...
MT4 OrderClose Question
-
rockit replied Jun 8, 2015Ok the simple version should go like this : double profit = DBL_MAX; int ticket = -1; for(int i = OrdersTotal()-1; i >= 0; i--) { if(OrderSelect(i,SELECT_BY_POS)&&OrderType()<2&&OrderProfit()>=0&&OrderProfit()<profit) { profit = OrderProfit(); ...
Issues with trying to sort
-
rockit replied Jun 8, 2015If the sole purpose is to output the least (positive) profit, no sorting at all is needed; just loop through the queue and save the ticket with the least current profit. In example you start with the first in queue, save its ticket in a variable. If ...
Issues with trying to sort
-
rockit replied Jun 5, 2015Best strategy ever: buy low, sell high. Point is you have to understand what has happened so far (price) and what will most likely happen in the future. Know fundamentals and technicals from keeping an eye on the news and observing price action for ...
How to work out a good trading strategy?
-
rockit replied Jun 5, 2015Without addressing all the possible quirks hidden in your request, the plain trailing code I think be: // extern scope input double excess = 0.4; input double drawdown = 0.2; // global scope double accountbalance = 0.0; double trailaccountprofit = ...
A more *dynamic, refined, redundant* exit algorithm
-
rockit replied Jun 3, 2015Ambiguities aside, the plain procedure could go something like this: If (order) queue is empty, and A and B are empty, return. Else if queue not empty, and A and B are empty, obtain A and B accordingly. [first trade] Else if queue not empty, and A ...
how to code a level based close all?
-
rockit replied May 28, 2015If the other code is in the same scope as the switch statement, it will never execute. Perhaps you mean this: switch (LossCountCount) { case 1 : LossCount = 1; break; case 2 : LossCount = 1; break; case 3 : LossCount = 2; break; case 4 : LossCount = ...
case code function- can someone check this over? thank you
-
rockit replied May 20, 2015Sorry there was an error in the code. Here is the code that should work: int hour = TimeHour(Time[0]); int day = DayOfWeek(); if((day == 5 /*friday*/ && hour >= 11) || (day == 0 /*sunday*/ && hour < 20) || (day != 5 && day != 0 && (hour >= 17 && ...
Setting Start Time for EA?
-
rockit replied May 19, 2015Code below should do it if your indicated times are server times (i.e. what is shown when you point at a candle); it will return (perform a 'return' instruction, that is exit current function) if it encounters any of excluded times. Test on demo ...
Setting Start Time for EA?