|
|||||||
| 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 | Thread Tools | Display Modes |
|
|||
|
Expert Advisor - Open Trade Issue
Hi,
I have programmed an expert advisor and is working well! It does everything I need it to do, except that there is one bug or flaw in my advisor. I use an oscillator to get the trend, and then either open a long or short. If the trend goes the other way, it closes the current trade and opens another. This works fine, except that when back trading. One tick makes the trent up, so I open a trade. The very next tick makes the trend down, so I close the long and open a short. So on and so on, so that I actually make about 15 until the trend definately goes one way or another. Is there any way I can somehow skip an hour's worth of ticks once I open a trade? So that I no longer trend the wrong way, etc? Any help would be greatly appreciated! |
|
||||
|
i think you should use previous bar instead current bar. Use bar index 1, not 0 for your oscillator.
Good luck ![]()
__________________
>>> $3.5 per lot Forex Cashback Let's hunt some pips! |
![]() |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| How to make an expert advisor run other expert advisors in MQL4 | activetc | Metatrader 4 | 0 | 08-30-2007 04:29 AM |
| Need Help w/Expert Advisor | cochran1 | Expert Advisors - Metatrader 4 | 14 | 08-01-2007 03:55 PM |
| CCI Expert Advisor | rodrigokaus | Expert Advisors - Metatrader 4 | 10 | 09-29-2006 06:31 PM |
| expert advisor ? | swirly | Expert Advisors - Metatrader 4 | 3 | 08-30-2006 07:04 AM |
| What Expert Advisor are they using? | fikko | Expert Advisors - Metatrader 4 | 4 | 07-01-2006 08:47 AM |