| New signals service! | |
|
|||||||
| Register in Forex TSD! | |
|
Trading Systems Leaders in this forum (automated trading systems) are winning more than 3000 pips in a month (30000$ investing one lot every time). Click here to register and get more information |
|
![]() |
|
|
LinkBack (1) | Thread Tools | Display Modes |
|
|||
|
EA doesn't work
Can someone fix this EA?
The EA should work: Buy - MA crosses from below the High of the bar (bar shift at 11 o'clock chart time). Sell - MA crosses from above the Low of the bar (bar shift at 11 o'clock chart time). |
|
|||
|
When I backtest, it doesn't open the trades according to the set time (11 o'clock).
I think that iBarShift function is not entered correctly. The EA should open the buy order after 11 o'clock when MA is higher then the High of the bar which is placed at 11 o'clock. The EA should open the sell order after 11 o'clock when MA is lower then the Low of the bar which is placed at 11 o'clock. |
|
|||
|
Need help debugging indicator
I rather like the indicator at tradethemarkets.com titled the TTM-Bricks. That is to say, I rather like the TTM implementation of the 3-line break (3LB). There are some MT4 versions of the 3LB floating around, but they are as seperate windows and since 3LB is not completely time-dependent, it doesn't vertically match up. Thus, I thought I'd impelement 3LB like TTM does. Anyway, I don't have a copy of the 3LB indicator to attach, but I am attaching my version.
My version compiles and attaches, but does not actually draw. I'm sure I'm just missing something stupid or doing something backwards, so it'd be nice to get another set of eyes on the code. Can anyone help me debug this thing? -MRE-
__________________
I'm open to professionally developing EAs. PM me if you're interested. |
|
|||
|
For debugging MQ4 objects, they all appear in a list in Charts>Objects>Objects List (or use ctrl-b).
One issue I see is that you're using the same name for all the objects, which means you'll only create one object and just move it all over the place. You need to create a unique name for each object. |
|
|||
|
Help needed
After struggling for a while, i was finally able to get my indicator to print a vertical bar where i want it.
now the question is how to do what i want... heres the idea im placing a vertical line every 24hrs and i want to calculate the high, close, open and low inside every 2 vertical bars.i also need to find the range "high-low" any comments on how to start this? or what to read in order to grasp the idea? thanks |
|
|||
|
PHP Code:
Instead of giving the value of CCI 1 bar back - PM30_1=iCCI(NULL,30,3,0,1) - on the one minute graph I have placed the indicator on, it gives back the value of CCI 1 major step change back. How do I get the value of this CCI 30 minute indicator 1 bar back on the 1 minute graph??? Would this be equivalent to iCCI(NULL,1,90,0,1) ?? This does not work either! Need experts input - This has me puzzled! Dave Last edited by Dave137; 03-11-2008 at 05:18 AM. |
|
|||
|
Ichimoku Kinko Hyo Cross only opens Buy's!
Hello All,
Have been programming for the past few weeks and coming along reasonably well. But I have hit a point here where my latest fairly simple system that I am trying to code will not work for me. I have re written it about five times, using different code, tried Expert Advisor builders and altering other cross strategies e.t.c. but the system will only ever open Buy Trades. (Among other problems I have) any help would be much appreciated as it seems like it could be a profitable system. (Ok everyone seems to think this when programming them, but manual bar by bar backtests show a positive outcome.) THE SYSTEM: Chart Setup The Ichimoku Kinko Hyo indicator with default 9,26,52 settings. Only show the Tenkan-Sen and Kijun-Sen, hide the Senkou and Chikou lines. FIRST ENTRY (explained for long/buy - same applies for sell in op. direction) Tenkan-Sen crosses Kijun-Sen and price is above KIJUN-Sen. Stop loss the amount of the pairs spread below Tenkan-Sen. Trail with stop at Kijun-Sen - spread pips unless reverse signal occurs (where you close). RE-ENTRY (sometimes a few trades get stopped out before catching the "big ride" If stop loss is hit, before crossing of Tenkan-Sen and Kijun-Sen a position can be reopened if the price closes above the TENKAN-Sen and the Tenkan-Sen is still above the Kijun-Sen. Stop loss as before. SUMMARY Enter long when Tenkan-Sen Crosses above Kijun-Sen. Stop loss a spreads distance below Kijun-Sen. If stopped out before cross and reversal occurs, can re-enter a long position if price rises above Tenkan-Sen. No Take Profit, just trail the stop loss on the Kijun-Sen. This system does tend to like trends, but the losses should not be too great in the range-bound markets. I plan to trade on daily TF's but possible others when I get the Expert running. In fact, on some markets I have tested, the EA is profitable at the moment, before its even working properly! MQ4 attached if anyone can decipher where I am going wrong! Thanks, Howard P.S. It would be great to receive some help on this as its my Birthday tommorow and it would be very nice to receive some help! ![]() I also apologise to all the Ichimoku practitioners out there that feel it should not be automated as it is meant to be trading the market "at a glance". However I feel the indicator is so wonderful, especially the Kijun-Sen, which trades just outside the retracements in many long trends that it is perfect for automation! |
![]() |
| Bookmarks |
| Tags |
| candle time, CHinGsMAroonCLK, coders guru, expert advisor, forex, how to code, I_XO_A_H, mechanical trading, trading |
| Thread Tools | |
| Display Modes | |
|
|
LinkBacks (?)
LinkBack to this Thread: http://www.forex-tsd.com/metatrader-programming/554-how-code.html
|
||||
| Posted By | For | Type | Date | |
| Need an experienced programmer? - Page 2 | Post #0 | Refback | 09-24-2008 07:24 AM | |
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| How to code this? | iscuba11 | Metatrader 4 mql 4 - Development course | 1 | 08-03-2007 05:22 PM |