I would suspect that most of us at this forum do not yet have a winning program. Why? I don't think it's a lack of programming skills. The people at this forum are very generous in helping solve programming problems. Perhaps it's because we can't
This function will find the High or Low of some number of bars . I was pulling my hair out debugging this thing. The High part of the function worked great but the Low part of function always return 0. Then I realized that The variable barApex was
I'd like to learn more about open orders -- getting information and modifying. Moving the stop to breakeven should be a good project. I found plenty of discussion on the subject but no finished code illustrating the details of how it's really done
Who loves the the gray grid in the Strategy Tester ? Is there a way to have the Strategy Tester remember the Property selections? Every time I run the Strategy Tester I've got to turn off that gray grid -- drives me crazy
I've been running into a 136 error frequently when my EA has been trying to place an order. What's this really all about? And apparently NormalizeDouble is an important part of the EA placing orders. I searched through my code and I'm not using
Here's a handy script I use all the time. It draws reference lines every 10 pips to help me gauge movement in the market. I was really frustrated trying to figure this out by looking at the prices on the right-hand side of the screen so I created a
I know that you can measure the difference in price between the current price and moving average. And there are several other objects that can be used for this sort of calculation. But is there any form of a straight line that can be used to measure
I'm trying to take a lesson from RaptorUK and his article, What are Function return values ? How do I use them ? I assume that an OrderType has a numeric return value; for example OP_BUY is 1 and OP_SELL is 2. But I'm not sure that's the case and I
Here's a function that checks to see if there is an open order. I'm a rank beginner at coding in MT4 so I welcome your comments. But it does seem to work. bool NoOpenOrdersExist() //True when no open order, False when is open order {
Is it possible to draw something like a Moving Average line from an Expert Advisor like you can and Indicator? Or do I need to make an Indicator that uses the same logic as the EA so I can have a visual of what is going on? Is there a good way of