- Search Forex Factory
- m.m.m. replied Apr 15, 2013
Bingo. Case closed.
- m.m.m. replied Apr 11, 2013
Good! I have only briefly worked with the IBAPI to understand the principle. However, I have used C++. There I'd register callback functions, such as for ticks, realtime bars and historic bars. Then I'd subscribe to data that I'm interested in (i.e. ...
- m.m.m. replied Apr 11, 2013
- I too think that it's best to stick with the most common indicators, instead of trying reading the cards (custom stuff). - Average Joe doesn't have the computing power and information at hand (and staff), to mimic big players' considerations.
- m.m.m. replied Apr 11, 2013
The pacing problem occurs only when pulling historic data from IB, no? Why can't you maintain your own history and operate off of it?
- m.m.m. replied Apr 11, 2013
The proper if-clauses should look like so, imo: ribbon1[i] = Y[i]; //iMA(NULL,0,MA.Period.y,0,MA.Method.y,MA.Price.y,i); ribbon2[i] = Z[i]; //iMA(NULL,0,MA.Period.z,0,MA.Method.z,MA.Price.z,i); if( Z[i] < Y[i] && X[i] < Z[i] ) { ribbon1[i] = Z[i]; ...
- m.m.m. replied Apr 11, 2013
There's still a small problem because now you have exchanged the parameters for the calculus of ribbon1 and ribbon2. Ribbon1 should be wired to .z and ribbon2 to .y parameters respectively (like in the first attempt). The part where ema10 crosses ...
- m.m.m. replied Apr 11, 2013
At first glance these conditionals work; however, I think the rules as stated by op are incomplete. if( Z[i] < Y[i] && X[i] < Z[i] ) { ribbon1[i] = Y[i]; ribbon2[i] = Z[i]; } if( X[i] < Y[i] && X[i] > Z[i] ) { ribbon1[i] = 0; ribbon2[i] = 0; }
- m.m.m. replied Apr 11, 2013
huh, I've forgotten.. heheh
- m.m.m. replied Apr 11, 2013
sadly, op is quite behind the schedule it seems..
- m.m.m. replied Apr 11, 2013
let me guess: igindex.co.uk? lol
- m.m.m. replied Apr 10, 2013
imo your if-clauses are wrong; your code is not displaying those gaps where x<y and x>z also the criterion for red/white combination is met when x<z (not y<z), as shown on picture (OP); however, the picture does not correspond to the conditions ...
- m.m.m. replied Apr 10, 2013
You can instruct mt4 to draw the chart above the indicators: [chart] properties->common->chart on foreground
- m.m.m. replied Apr 7, 2013
It is of course possible, because the probability is greater than zero, and if the probability is greater than zero, one thing is possible in principle. Only - the likelihood is very, very low. Especially because the period is short. Now let's see ...
- m.m.m. replied Apr 7, 2013
Yes - you'd need to draw the lines yourself, via strategy (if not otherwise possible). - And subsequently remove them when order(s) was/were closed. But why don't you ask in the dukas' forum?
- m.m.m. replied Apr 2, 2013
This means your objective just changed to: How to import specific excel data into mt4 and put it on the chart(s). This would be a simpler task than creating a full charting application from scratch for simple purpose.
- m.m.m. replied Apr 1, 2013
When using c++, and winapi obviously, most straight-forward way of connecting mt4 and another window is passing data directly through the window procedure via wm_copydata window message. The sender (mt4 ea) will initiate data passing with ...
- m.m.m. replied Mar 25, 2013
It does "take"; however, you always call subOpenOrder(OP_BUY,StopLossPips,TakeProfitPips,Lots); (where it likely has to be "StopLoss").
- m.m.m. replied Mar 22, 2013
Right. But, if he cannot alter the code then all the debating is pointless. Anyway, let's wait and see how OP will proceed.
- m.m.m. replied Mar 22, 2013
What you guys talking about? The OP asked if the commission can be included *without* altering the original code. Of course one can calculate the commission in, but has to alter the code.. The formula I would use (as commission is yet unknown..): ...
- m.m.m. replied Mar 22, 2013
Sure: You'd have to calculate the correct value for risk in another program (or manually : D), and then pass this corrected value on to the order manager. For example, you'd know that you'd risk 1% but would tell the order manager that you are going ...