- Search Forex Factory
- 321 Results
- RedLineFred replied Jul 13, 2022
If you have the source code for the indi you should be able to work out what the indi is signaling on the current bar. Ignore all the previous bars/signals and try to incorporate what is happening on the current bar only and use this information to ...
help needed: update EA / add indicator filter
- RedLineFred replied Mar 29, 2022
when the condition is met in the first loop (TF=60) rather than just count that bar and move on, stop and open your second loop but you'll need to catch the Open Time of the 60 min bar and work out which 5 min bar opens at that time and adjust your ...
How to Write a Loop of a Loop for Different TF
- RedLineFred replied Mar 29, 2022
if you have access to the source code (*.mq4) someone should be able to assist.
MT4 Old Version Error with EA No Longer Updated
- RedLineFred replied Feb 21, 2022
depending on your strategy, if you can modify the EA to only make trading decisions on the open of a new bar, then this can speed up the process considerably. Also coding in hard stop levels helps as MT4 seems to respect the levels even if jumped ...
Will MT4 Backtest Faster With Better Hardware?
- RedLineFred replied Feb 16, 2022
this is one approach, but i prefer to set the lot size to zero if less than miniot to avoid over risking the trade. you could get caught out if you trade a commodity and its min lot size = 1.
Random Useful MQL4 Functions
- RedLineFred replied Dec 14, 2021
The Magic Number is something that you can ignore unless your code uses it in determining when to trade. It is useful if you want to keep track of how many trades of a certain type are open - you do this by assigning a magic number of your choosing ...
Same Magic Number, Same Pair - Multiple entries
- RedLineFred replied Dec 8, 2021
As your rules are well defined and the idea is to take visuals and emotion out of the picture, it would seem the next (maybe logical) step would be to automate the process and develop an EA, then you are completely divorced from the charts
Trading Without Charts
- RedLineFred replied Dec 8, 2021
As you cant execute a trade at the close of the bar, as by definitionthe bar is closed and so we have moved to the next bar, I would wait for the open of a new bar to make my decision and trade then.
Closing price or minimum of the previous candle?
- RedLineFred replied Oct 11, 2021
Open Marketwatch, then right click on the symbol of choice and open the Specification window for that symbol and at the bottom you will have the session times you are looking for.
Indicator to show symbol opening closing time?
- RedLineFred replied Sep 29, 2021
seems you dont fully understand the use of variables. suggest you read: url where they advise: Global variable s a variable declared beyond all functions. The scope of global variables is the entire program. A global variable can be initialized ...
Trying to code for setting beginning daily balance
- RedLineFred replied Sep 29, 2021
a couple of issues: 1. declare your variable outside your if statement 2. you can use this variable anywhere in your EA if declared as being global 3. if the EA is added to each chart it will set the vaiable for that chart 4. because of this you ...
Trying to code for setting beginning daily balance
- RedLineFred replied Sep 14, 2021
you may need to explain what you mean by a Lot Size Compounder
Lot Size Compounder Source Code for EA
- RedLineFred replied Sep 14, 2021
suggest you start simple. write an EA rather than an Indicator. Set your array to a fixed size: double OpClDelta[100]; for(i=100; i>0; i--) { if (Open[i]>Close[i]){OpClDelta[i]=Open[i]-Close[i];} if (Close[i]>Open[i]){OpClDelta[i]=Close[i]-Open[i];} ...
Requesting help with MT4 Array
- RedLineFred replied Aug 30, 2021
There are a few problems with your code: 1. your brackets are not in the correct places and should look more like this: StrikeS = ( MathAbs(Close[1]-Open[1]) > MathAbs(Close[2]-Open[2]) *0.8 ) && ( MathAbs(Close[2]-Open[2]) > ...
Little code help from the experts :)
- RedLineFred replied Aug 24, 2021
keep it simple, enter two trades (one at 30% the other at 70%) with different TP settings
Question about partials profit option
- RedLineFred replied Jul 21, 2021
Its possible but not simple. First your EA needs to be modified to produce an output file that records the results of your Opimisation. Next you need to create a windows "BAT" file which sets up your weekly test run and executes MT4 in command line ...
Automated "per-week" MT4 backtesting?
- RedLineFred replied Jun 1, 2021
work your SL in ticks and then use tickvalue to work out the risk from there adjust your lot size to limit your risk based on ticks*tickvalue*lotsize
Programming an EA for trading Indices
- RedLineFred replied Jun 1, 2021
try reading the profit from each open position into an array and then sorting the array
Help Me, I need to calculate or Filter Profit open trade
- RedLineFred replied Apr 8, 2021
if it works, then keep going. in a way you are following traditional trend following principles, cut losses short and keep trades open when trending. the things you need to watch out for is leverage and free margin, too many trades open at the same ...
Gridding with tiny stop loss