- Search Energy EXCH
-
CodeMeister replied Apr 10, 2010Try This — if (barStart < Time[0]) //start of new bar { // add your logic here barStart = Time[0]; } // end if barstart Put this into your program and attach to a 1D chart. If you need to use on another timeframe, use iTime.
EA - Daily open
-
CodeMeister replied Apr 9, 2010Try This — Whenever you get a compile error it is very easy to find the line of code by double clicking on the error message. The editor will position your cursor on that line of code. That is much easier than searching manually.
Help for an advisor
-
CodeMeister replied Apr 9, 2010Agree Completely — MadMatz - your points are well presented and make sense. FRWC made hyped up claims and fortunately were exposed in time for people to see and get their money back.
Forex Robot World Cup?
-
CodeMeister replied Apr 8, 2010Statistics — It is possible to flip heads 38 times in a row as well, although highly unlikely. Trading is a lot about statistics and getting probabilities on your side. One run of 38 is remarkable for any strategy, but it doesn't prove much ...
38 consecutive wins, 0 losses = win?
-
CodeMeister replied Apr 8, 2010Depends — I guess that would depend on the purpose of the GetObject logic. If it is critical to the proper functioning of the EA, I don't think you can backtest because MT4 can't model the object's values. If it isn't, the code would retrieve ...
backtesting EA
-
CodeMeister replied Apr 7, 2010Try This — objTime = ObjectGet(ObjectName(ObjectsTotal(OBJ_ARROW)-1), OBJPROP_TIME1); This will retrieve the time co-ordinate for the newest object of type arrow. The price co-ordinate can be obtained in a similar if desired.
icustom without indexbuffer value
-
CodeMeister replied Apr 7, 2010Try This — What you suggesting will work, but it seems like a clunky way of doing things and depending on timing could result in wrong answers. That is if the value in the file is written and read and changed and not reread. There is no ...
write value to a file?
-
CodeMeister replied Apr 6, 2010Expert Left Hand Trader — I took a look at the PDF and my conclusion is this guy is another one of the many left handed traders who never lose. What I mean by that is shows examples that fit his strategy and are winners. However he slipped up. ...
Simple candlestick strategy - need an EA
-
CodeMeister replied Mar 28, 2010Similar Problem — Before last Christmas I had a similar problem. I hadn't used Stategy Tester for several weeks. I had the same problem with some pairs (FXCM Micro). On others it would ignore my date range and pick up a few ticks near the end ...
Help with strategy tester please
-
CodeMeister replied Mar 28, 2010My Suggestion — I think what you saying is the EA opens a trade upon price crossing the t3Clean10 value and closes the same order if it crosses in the opposite direction. If I have got that wrong, please ignore the rest. This is essentially ...
closing order
-
CodeMeister replied Mar 27, 2010Order Indexing — MT4's order indexing is done by postion. Accessing the orders on the server is done by position not ticket number. The indexing is always done from 0 to nOrders-1. If an order is closed or deleted, the count is reduced by 1 ...
Arrays for order management problem
-
CodeMeister replied Mar 27, 2010Try This — I think this what you are looking for. url
Please any EA to close trade on EMA cross?
-
CodeMeister replied Mar 27, 2010Pipsmark — I wrote an indicator several months ago called Pipsmark that does something like this. It takes a threshold pip value and will send an alert when the price hits that value above or below the specified MA. Do a search for "Pipsmark" ...
price and Moving Average.
-
CodeMeister replied Mar 26, 2010Something to Think About — Canuck. I guess the natural progression after determining the trend is some measurement of momentum, but you have introduced some considerations that go further than I have seen or thought about. What you are ...
Defining Trend
-
CodeMeister replied Mar 26, 2010Academic — I think the thread originator put restrictions on his thread. I can't post either. The restrictions of little good - some of the usual suspects have shown up already.
I share your opinion (I think). He strikes me as one of ...Defining Trend
-
CodeMeister replied Mar 26, 2010Meanwhile — OK, in the meantime here is another thread devoted to this subject. Its encouraging to see that so many people are interested in finding a solution to this seemingly simple problem.
url I have been trying for 3 or 4 ...Defining Trend
-
CodeMeister replied Mar 26, 2010Try This — RR, I wrote one in this thread. It captured the Fractal indicator as well as the EA smiley face, so I don't know why it wouldn't capture other indicators. The market is closed so I can't test it. My understanding is that is an image ...
WindowScreenShot()
-
CodeMeister replied Mar 25, 2010Try This — There is some code here that might help. url
multi-row arrows
-
CodeMeister replied Mar 25, 2010Me Too — I have run into the same problem myself. I have tried various things mostly without success. One thing I noticed is the arrows positioned at the Low of the bar tend to be better positioned than the arrows at the High of the same bar. ...
Arrow Object not Gapping properly
-
CodeMeister replied Mar 24, 2010Strong Math — This thread is what I meant by my comment about having a solid mathmetical basis for the indicator. Asgard2, have you abandoned this idea or still working on it? url
Defining Trend