- Search Energy EXCH
-
CodeMeister replied Sep 10, 2010Try This — It was a weird experience reading your remarks about PipsMark. I was sure that you were wrong about the alarm being for movement away from the MA. Then I looked at the code and confirmed that was the case. But the whole time, it was ...
Alert to sound X pips AWAY from an MA
-
CodeMeister replied Sep 9, 2010Try This — That seemed most obvious. They seems to be a ) needed after StopLoss or delete the extra ( before MarketInfo.
Script fo Calculationg Lot size - Help needed
-
CodeMeister replied Sep 9, 2010Try This — 1. Lots is a double not a function. Get rid of () in Lots(). 2. Try this, but be sure you understand it thoroughly; it worked for me but it may not be what you need. double minLots = MarketInfo(Symbol(), MODE_MINLOT); double ...
Script fo Calculationg Lot size - Help needed
-
CodeMeister replied Sep 8, 2010Yes — I have used Vista and now have a Windows 7 system and can't see any difference in the file handling / searching capabilities. But don't point your finger at Microsoft. The real source of the problem is MetaQuotes Software Corp who refuse ...
Indicators not showing up in Explorer
-
CodeMeister replied Sep 7, 2010Try This — I wrote an indicator that should do what you want and it is posted here. url
Moving Average Price Contact/Proximity Alarm
-
CodeMeister replied Sep 7, 2010Several Problems — I didn't even look at the code and I can spot several problems. First of all with the tight TP and SL, this EA must run in every tick mode. That is the only way to get out of a trade quick enough to grab the small profit. ...
Price Action based EA
-
CodeMeister replied Sep 6, 2010Need More Info — I haven't looked at the SuperTrend code and you may have a different one anyway. Did you enable DLLs in the indicator properties? Need to know the name(s) of all the DLLs in the code in order to help. Presumably it is a custom ...
Help with Supertrend Indicator error
-
CodeMeister replied Sep 6, 2010New Version — This seems to be a very useful and popular EA. I have received several PMs regarding it and have decided to add new features. These are: MAtimeFrame - the time frame for the MA calculation. 0 means current TF. MAshift - the ...
EA - That uses MA for SL
-
CodeMeister replied Sep 6, 2010Yes, Exactly — That is the situation that I was referring to. I tried it a while ago and tried reversing the order of calls and all I ever got was the "alert" sound. My belief is that MT4 can't handle this situation. You may have also noticed ...
Change alert sound in MT4?
-
CodeMeister replied Sep 5, 2010Both — In your alert logic are you calling both PlaySound() and Alert()? My belief is that MT4 can't handle both calls at the same time. The unfortunate thing about using PlaySound() is that you don't get the popup alert that Alert() provides.
Change alert sound in MT4?
-
CodeMeister replied Sep 4, 2010My Theory — Working with orders has the same behaviour. In order to delete / close all orders by position, you have to start with the highest and decrement to the lowest position. That is because MT4 reorders the position numbers internally. ...
ObjDelete() feature
-
CodeMeister replied Sep 2, 2010Try This — This guy was able to come up with an EA solution that did updates every 5 minutes. Should be easy to adapt his code. http://www.forexfactory.com/showthre...highlight=file
Simple Expert Adviser with filewrite operation
-
CodeMeister replied Sep 2, 2010Try This — This guy was able to come up with an EA solution that did updates every 5 minutes. Should be easy to adapt his code. url
Run a script each XX minutes
-
CodeMeister replied Sep 2, 2010Don't Know — You have to realize that this is an EA and not script. The start() function gets called for every tick and you opening the file, writing to it and closing the file for every tick. Its quite possible that you have overwhelmed the ...
Simple Expert Adviser with filewrite operation
-
CodeMeister replied Aug 26, 2010Depends — I think you mean doing the MA calculation on MT4 and making the results available to Excel. According to MT4 help, only BID, ASK, HIGH, LOW, TIME and QUOTE are available as data formats. My understanding is the point of DDE is to ...
MT4 + Excel
-
CodeMeister replied Aug 26, 2010Coding Considerations — A Trailing Stop at first glance seems to be a rather trivial coding problem and that was how I approached it on my first go round. Later I discovered several nuances that my logic wasn't handling properly and I have ...
Trailing Stop Code?
-
CodeMeister replied Aug 25, 2010More Than Enough — I started trading on an MT4 platform 5 years ago with a hard disk of 2 GB capacity and never had a concern. It was a dog performance wise but that was more related to processor speed and memory. My point is MT4 is not a disk ...
How big a hard drive do I need for trading?
-
CodeMeister replied Aug 24, 2010Don't Care To — I noticed your EA contains a DLL. On principle, I don't load code like this on my machine unless I have completed a thorough code review. So I don't care to try it out. From the details you provided, I dare say you are trying ...
Deleting Objects on only one chart
-
CodeMeister replied Aug 23, 2010Try This — Shark, Too bad you had to hijack somebody else's thread, not something I want to encourage, but I understand. If you have the equity check that closes orders in all your EAs, then presumably they would get the same result and close ...
EA coding needed
-
CodeMeister replied Aug 23, 2010Very Curious — I have never witnessed this behaviour. I have created and deleted objects via scripts on charts and they have always only affected the active chart. In fact, I just ran an experiment to confirm my statements. I created Arrow ...
Deleting Objects on only one chart