- Search Crypto Craft
-
magnumfreak replied Mar 4, 2009nope, mt4 doesn't give those options
Script that Opens/Closes charts
-
magnumfreak replied Mar 4, 2009I saw that, wasn't sure where the programmer was going with that. Maybe to skip the first few bars that may not have enough data to draw correctly but who cares about that. I would just change it to limit=Bars-counted_bars;
Updating Custom Indicator Line Automatically
-
magnumfreak replied Mar 4, 2009there is no logical reason for going back and recalculating bars every tick, the past is the past and should not change. Redoing them every tick will just bog down your computer with useless calculations. But, if you want them to be recalculated ...
Updating Custom Indicator Line Automatically
-
magnumfreak replied Mar 3, 2009not sure where everyone is having issues with their platform. I run it on both an XP system and a Vista system. I run it starting Sunday night all the way until Friday without crashes or issues. on the xp system I run it alongside 3 metatrader ...
FXCM Discussion
-
magnumfreak replied Feb 28, 2009Better to use TimeDayOfWeek instead if you plan on running the EA through the strategy tester. Dayofweek will only return the current day of the week even in the strategy tester.
Programming Questions
-
magnumfreak replied Feb 28, 2009void indicates that the function returns no data. this can be void, int, double, bool for example it just depends on what sort of data is returned.
Programming Questions
-
magnumfreak replied Feb 28, 2009yes, it is easy. create the rsi window as you normally would. Then drag and drop the moving average indicator in the same window, set the apply to "previous indicators data" and whatever period and method you want and you are set.
Possible to Combine Indicators in MQ4?
-
magnumfreak replied Feb 28, 2009Kaufman Adaptive Moving Averages set for 10,60 and 120. Most any timeframe works and I will adjust for market conditions. For example when the markets are ranging I will drop down to a much lower timeframe and scalp until the markets break the range ...
Which moving averages work for you?
-
magnumfreak replied Feb 27, 2009you will only need one array instead of keeping a direction just store each tick as either a 1 or a -1. Time isn't needed and can be kept track of with a variable. Is this going to be a rolling 250 seconds or will everything get reset every 250 ...
the impossible EA?
-
magnumfreak replied Feb 26, 2009actually you can change it to any .wav you want by going to Tools, Options, Events, then selecting Alerts and then change sound. Don't try to just change it with the drop down, it won't save it.
Alert and playsound together?
-
magnumfreak replied Feb 26, 2009yes, i++ is an incremental counter, i-- is a decremental counter
Question About the "For Loop"
-
magnumfreak replied Feb 25, 2009Opentrades use the OrdersTotal function to get all orders or if you are counting for a particular pair use an incremental counter modifying incremental Closing trades if you are closing all trades you can use a while loop and loop it while ...
Question About the "For Loop"
-
magnumfreak replied Feb 25, 2009an incremental counter (i++) should never be used for drawing an indicator on the charts. This results in the indicator drawing from right to left instead of left to right as it should be. incremental counters are usually used for stepping though ...
Question About the "For Loop"
-
magnumfreak replied Feb 25, 2009init is a function that mt4 calls when you first install an indicator. the code that I listed there in my previous response should go under that function call. if your code does not have an init function use the one below: int init(){ ...
Need some help on warning alert for ea
-
magnumfreak replied Feb 25, 2009bool oktotrade; init(){oktotrade=true;} in your main section place this code at the beginning if(Period() != PERIOD_D1 && oktotrade)oktotrade=false; if(!oktotrade){ Alert("Wrong Time Frame") return(0); } same type of set up can be used for your key
Need some help on warning alert for ea
-
magnumfreak replied Feb 25, 2009double spreadvalue = MarketInfo(Symbol(),MODE_SPREAD); if(spreadvalue <= whatever_value_I_Decide_To_Use) maketrade should work.
Spread limit
-
magnumfreak replied Feb 25, 2009or 4. He isn't stupid enough to put all of his money with one broker and instead opts to protect his wealth by trading with multiple brokers. So when he trades he just has to open one order and the software automatically transfers the data to the ...
Copying trades from one account to another
-
magnumfreak replied Feb 24, 2009mt4 has a limit on the number of indicators it will show in the navigator window. Do you have a large number of indicators??
Tech Problem-Indicators not showing in Navigator