- Search Energy EXCH
-
RedLineFred replied Oct 26, 2014Another option is to set a flag as false initially and then reset that same flag once the orders are placed, then check the flag status each time you look for a new trade. eg, bool OrderPlaced = false; //make sure this statement is outside your ...
I will code your EAs and Indicators for no charge
-
RedLineFred replied Oct 23, 2014I found this idea interesting and thought i would see how it could be modelled in MS Excel. The attached spreadsheet (assuming I did the maths correctly) takes 500 random events (call them trades) and using the scaling identified by Jaws to set the ...
Gambler's Pips EA needs debugging
-
RedLineFred replied Oct 21, 2014this version compiles but has not been tested. see how you go Fred
I will code your EAs and Indicators for no charge
-
RedLineFred replied Oct 8, 2014Others have tried this - check it out here: url
I will code your EAs and Indicators for no charge
-
RedLineFred replied Jul 3, 2014I found this book very helpful when i started: Expert Advisor Programming: Creating Automated Trading Systems in MQL for MetaTrader 4 by Andrew R. Young It was written before ver 6xx, but still worth a look Fred
I Will Learn Coding in 1 Month - Give me the 80/20 of MT4 Coding
-
RedLineFred replied Jun 30, 2014Khai, Sounds like you are not using the correct file locations when loading in the indicators. Suggest you open MT4, then click on the File / Open Data Folder menu items, and then you can see where MT4 expects to find the files. Look here for ...
Daytrading/scalping with high leverage - my proven strategy
-
RedLineFred replied Jun 21, 2014runs ok for me, results no good but it does trade. have you checked your data?
Trouble testing trading strategies in MT4...
-
RedLineFred replied Jun 21, 2014try your tests starting at different dates, different months, years, do you get the same result? still only good for 30 days? if so it sounds like your code is date dependent and when it comes to the same day in the next month it has problems.
Trouble testing trading strategies in MT4...
-
RedLineFred replied Jun 19, 2014Yes, Renko and HA candles are generated as indicator candles, but there will be limitations on what you can do with the width setting.
I will code your EAs and Indicators for no charge
-
RedLineFred replied May 22, 2014Your EA already checks for this condition - see line 133 of your code. You haven't explained your problem so not sure what i can do to help fix it.
I will code your EAs and Indicators for no charge
-
RedLineFred replied May 21, 2014The TF selected in Backtesting sets up to simulate trading as if you were on that particular chart. So selecting M1 will run your ea with a new candle every minute. Similarly selecting H1 will generate one hour bars. Now how your ea performs will ...
I will code your EAs and Indicators for no charge
-
RedLineFred replied May 20, 2014If( RSI4 < RSI3 && RSI3 < RSI2 && RSI2 < RSI1) // RSI is increasing with each bar, so wait until RSI2 > RSI and you will have a Dnturn.
I will code your EAs and Indicators for no charge
-
RedLineFred replied May 15, 2014The challenge for me is to absorb the market, to glean from price movement where its heading. Candles offer one view. I would be keen to explore others, but what are they? Can we measure the rate of change of price, or the increase in activity (vol ...
Illusion of Time(frames)
-
RedLineFred replied May 11, 2014You could add a section of code at the top of the start routine that counts the pending orders loaded and looks for a change in the number. Depending on what your trades are doing, you should be able to tell when a pending order is triggered, the ...
I will code your EAs and Indicators for no charge
-
RedLineFred replied Apr 30, 2014yes but don't forget to do all the variables, including the mPairxxxBulls also
Bug Alert? Please help
-
RedLineFred replied Apr 29, 2014You might find that your if statements need to be reset before each new test of a condition. The way your code is at present, old values are retained and so will be brought into any new alert, giving false alerts. suggest you add: mPair1Bear = 0; ...
Bug Alert? Please help
-
RedLineFred replied Apr 23, 2014Don't forget to ensure both EAs use the same MagicNumber
I will code your EAs and Indicators for no charge
-
RedLineFred replied Apr 22, 2014This will work. Your Broker doesn't know or care which EA initiated the order or which one modifies it. Not sure why you would want to do as you plan but it will work. Fred
I will code your EAs and Indicators for no charge
-
RedLineFred replied Mar 27, 2014Here is a quote from sources unknown (sorry to the writer for not being able to name you): "Changing timeframe or currency runs deinit() and init() and resets all the externs but does not change static values and does not change global variables." ...
MT4 hangs when switching TF with EA on
-
RedLineFred replied Mar 26, 2014MatrixFX You have an error in your code. You are missing a "}" to close out the start() function, as a result the start routine doesnt end and runs into the first subroutine; dailyprofit() and the compiler is telling you that it doesnt expect to ...
I will code your EAs and Indicators for no charge