- Search Forex Factory
- DaveL replied Jun 29, 2008
One problem is that your positioning leaves the shift index i out of the loop. That is, if you're looping over i to determine your shift, put all commands which use i inside of your loop. The way you have it, it is outside. It should be more like ...
Requesting programmer assistance with custom indicator
- DaveL replied Jun 29, 2008
Yup - that's the idea, although in your example, you use a fixed reference date. For a more general solution, you can use some_time=Time[i] and cycle through previous bars (by looping through i, for instance).
Requesting programmer assistance with custom indicator
- DaveL replied Jun 29, 2008
No problem, fry. Yes, bar 0 is the current (unformed bar), and the number increases as you go to the left (past) of the chart.
Question for any good Coders
- DaveL replied Jun 29, 2008
Hi Iansco, Sure thing. Bill Williams wrote 3 books so far, and this perspective pervades all of them. His latest is the 2nd edition Trading Chaos (same in spirit as the 1st ed, but w/ new technical tools). Here's a Google-Books link with a preview ...
Discretionary Trading for all pairs.
- DaveL replied Jun 29, 2008
Yes, I suppose that's one way to do it, although I would've used what I originally suggested (iBarShift), since it's more efficient. Same idea, though. Now, just use your index "y" in your indicator's shift variable to find the appropriate indicator ...
Requesting programmer assistance with custom indicator
- DaveL replied Jun 29, 2008
int COUNTER = 0; int NBarsLookBack=10; // number of bars to look back for value criteria int NThreshold=5; // the counter number to exceed (or equal or whatever) // to qualify for your condition for(int i=0;i<=NBarsLookBack;i++) { ...
Question for any good Coders
- DaveL replied Jun 28, 2008
Yes, increment your counter variable w/ ++ every time your indicator-condition is satisfied. Then check your counter value as part of your trigger-condition logic.
Question for any good Coders
- DaveL replied Jun 28, 2008
Sure thing, no problem ... yes, the coding (or something in the same spirit) should work.
Stop trading after one loss
- DaveL replied Jun 28, 2008
The point of the above link is that Elliot-wave numbering is highly subjective, more an art than a science. (So, how do you program something so subjective?) The joke is that if you ask 5 Elliott-wave specialists which wave we're currently on, ...
Elliott Wave Counter?
- DaveL replied Jun 28, 2008
Regarding server-load, as long as you get a decent server (e.g. Blade series, etc) and a solid internet connection (e.g. T1-line or better), you should have no problem. Afterall, that's really all that a broker itself uses.
Subscription coding into EA?
- DaveL replied Jun 28, 2008
You can use any language to write a DLL, which is why DLLs are so versatile. Here's a tutorial you can follow to write a DLL for MT4: url
Subscription coding into EA?
- DaveL replied Jun 27, 2008
Another term for major price levels (00, 25, 50, 75, etc) is "big figure." A big figure trade is one which bets that these nice round numbers are places where traders are more likely to enter/exit trades.
Horizontal lines at price points ending in "00"
- DaveL replied Jun 27, 2008
Bill Williams would describe what you're experiencing as "trading with the right-hemisphere of your brain." It's like "being in the zone," an experience which masters across all disciplines share, from athletics to acting to sales to research to ...
Discretionary Trading for all pairs.
- DaveL replied Jun 27, 2008
The most general answer to your question is to trade the timeframe that you take the signal. That is to say, yes, you may see conflicting signals based on different timeframes, but the signals are usually appropriate to the timeframe from which the ...
2 day price action
- DaveL replied Jun 27, 2008
Something along these lines: bool lastLoss=false; for(int trade=OrdersHistoryTotal()-1;trade>=0;trade--) { OrderSelect(trade,SELECT_BY_POS,MODE_HISTORY); if(OrderSymbol()==Symbol()) { if(OrderProfit()<0) lastLoss=true; else lastLoss=false; break; } ...
Stop trading after one loss
- DaveL replied Jun 27, 2008
I think they initiated the trading record limit because a few IBFX clients are serious grid traders, sometimes having tens-of-thousands of orders in a short period of time. Every time those traders log in, all that history has to be uploaded into ...
Account History Viewing Problems - Interbank FX
- DaveL replied Jun 27, 2008
Not the only way ... As I explained earlier, just set up a master EA server where the slave EAs are constantly calling it to receive trading instructions. The master EA will recognize only authorized slave EAs (which can be uniqutely identified by ...
Subscription coding into EA?
- DaveL replied Jun 27, 2008
Try starting with a fresh chart. Sometimes, a chart retains old code for some reason, and buffers get messed up. So, simply start fresh. Play with the #property indicator_width parameters to get the right width.
Requesting programmer assistance with custom indicator