Hello,
Thanks very much. I think I got the hang of it. The example code below seems to be working.
......
Trendlines.jpg
Hello,
Thanks very much. I think I got the hang of it. The example code below seems to be working.
......
Trendlines.jpg
Hello,
Upon certain conditions my EA draws horizontal Trend Lines (left to right) on my chart, which are given Object Names “Buy Line” & “Sell Line”.
There can be many horizontal Trend Lines drawn in a typical day.
I need to be able to test for if a Candle Opens below, then closes above the same “Buy Line”.
I need to be able to test for if a Candle Opens above, then closes below the same “Sell Line”.
I cannot work out how to refer to the “Buy Line” or “Sell Line” objects and its accompanying Price value in a Condition block.
Regards
Hello,
I replaced mql.exe found in the following location: C:\Program Files (x86)\fxDreema\Data
The link for the mql.exe file can be found here: http://files.metaquotes.net/metaquotes. ... t5/mql.exe
That fixed the problem thank you.
Hello,
Bug
When bug occurs.
When attempting to export any new or old project to .ex4 only (I can export to .mq4)
Recent actions
I recently renewed my subscription (which had run out).
MT4 has upgraded to build 920
Windows upgraded from version 7 to 10 Version 1511, Build 10586.17.
Mt4 Demo account 1 expired - Removed whilst maintaining personal folders and new demo account 1 created.
Mt4 Demo account 2 expired. Removed including personal folders and new demo account 2 created.
Fxdreema build 93. Set terminal & data path to either Demo accounts (same bug).
**
Example Global options**
C:\Program Files (x86)\GKFX Metatrader 4
C:\Users\Paul\AppData\Roaming\MetaQuotes\Terminal***************************9C20
......
Bug.jpg
Hello,
I need to be able to create a line the starts from a certain point then projects horizontally to the right. I have tried using the Draw Trend Line By Angle block, but the line randomly goes horizontally Left or Right. How do I draw a line of this type? The line must start from the point I specify (I would prefer not just to draw a normal Horizontal line).
Regards
Paul
Hello,
I need to add the following two lines of code into the exported files to allow Back Testing to interact with other products I use. Currently I add these lines manually via MT4 metaEditor, but it is a bit of a pain having to do this every time I update an EA. I know there is the Custom MQL4 fuction, but I am not sure if this can be done using that: Is this possible?
Hello,
Unfortunately all I have is one folder 0.start, so I guess something went wrong too early.I have re-created the EA, did not take as long as expected.
Hello,
I have a project that is stuck on the loading screen. Unfortunately I did not create a .xml file. Is it possible to fix this? I would be loath to loose the days work I spent on my EA today.
Thank you very much. I completely overlooked the (in loop) function within the Condition block.
......
test.jpg
Hello,
I need to be able to record the total loss in £s of the previous trade if the trade lost, so that I can use the value when calculating the volume for the next trade. I cannot workout how to obtain this value accurately. I have been trying to work with Gross Loss, but this zeros when the trade closes.
Regards
Paul
Hello,
I ran my EA for most of yesterday and it worked OK. If It starts misbehaving I'll adapt it to use Time.
Thanks very much.
......
CC.jpg
Hello,
To try and get around the problem I have changed the way I use Volume.
I now have an IF Volume < 'Previous' Volume then +1 to Candle Count rule.
There is definitely a problem with the 'Once per Bar' Block in my opinion, when attached to Range (Renko) Offline Charts.
The above is an attempt to get around the problem as stated in the original post. I am reluctant to use Volume as I have previously found it unreliable in fast moving Markets. I will know by the end of today if my work-around is ok and will update the post.
Hello,
When creating EAs, I often count the Bars using a simple 'Once per Bar, add 1 to a variable' method.
However, this does not work if the EA is attached to an Offline Range Chart. When attached to an O.R.C., each tick adds 1 to the variable.
Is their a reliable method of counting Range Bars? I have tried to make use of Volume, but found this to be unreliable.
Regards
Paul
Hello,
When back-testing I found that the EA would loop indefinitely.
To get around the problem I made use of the Pips away from stop-loss block.
The EA no longer attempts to close a trade on Candle Close if the Closing Price is 10 points or closer to the initial Stop Loss.
I am not sure how "modification" is defined, but if the modification is Closing a trade, perhaps the error could be skipped, but I am no expert in this area.
Hello,
Closing trade #**** error: Modification denied because order too close to market (145)
I am being constantly plagued with the above error during back testing.
I have a simple EA that places an order with a Stop Loss of 20 Pips (200 points) and no Take Profit.
The order is closed when the current candle closes.
The error appears to be occurring when the candle Close and Stop Loss are very close/the same.
The problem appears to coincide with a move from FXCM to GKFX.
I would welcome any suggestions. Once the error occurs it goes into a loop.
Regards
Paul
I must admit I originally thought that once entering a 'chain', the EA would stop if it failed a Condition, then jump to the next 'chain' according the Number. This felt logical, but I soon realised it did not work this way.
[/quote:3cfik6bu]
But it works that way. Numbers normally does not matter. Only when you have parallel connections, when you have 2 or more paths ahead, only then the first path to be taken it the one with lower number.[/quote:3cfik6bu]
Sorry, I don't think I described what I meant very well. I have edited the post and taken that line out. Can you delete this post an your last one I have quoted please.
Thanks very much.
I forgot to connect a Pass Block to Block 3000 in the diagram. I created a small EA to test both Branches separately to confirm that both branches work the same way. I have created EAs using both styles and I started to question if I was doing it correctly.
Hopefully this will help others understand.
Thoughts on Numbering System
The main problem I have with the Numbering system is I am constantly manually correcting the number sequence. If I insert or delete a Block from an existing 'chain' it would be great if the numbers would update automatically. If I attempted to create a new separate Block with an existing number, perhaps a "are you sure" before the numbers were automatically updated would be a good idea.
A potential problem with 'inferred work flow' within a 'chain' is that it might force you to have messy looking diagrams as you are restricted in where you can position the Blocks.
The numbers do provide a great help in understanding workflow. Removing them may make it harder to understand, especially if more than one person is working on the EA.
I am very pleased with the product and certainly would not want to consider coding EAs directly at this stage.
Hello,
I am trying to understand the basic Chart (work) Flow.
Assume:
LH/RH Branch do not appear in same EA (they are side by side for comparison only).
On Tick
Only Conditions D & E are met.
Regards
Paul
......
Chart flow.jpg
Hello,
I have created several simple EAs and tested them with the Strategy Tester in FXCM MT4, so I am familiar with the basics.
I have a chart with the standard Fractals indicator installed and nothing else. The Fractals are visible in the chart and Data Window (with their corresponding market values).
I have created a simple Buy now / Sell now EA based on condition Fractal Up / Down > Value numeric 1 (Once per bar).
An .ex4 files was used and I did not see any errors.
After testing the strategy in FXCM MT4, the Fractals are visible in the visual chart output and Data Window (with their corresponding market values) but no Trades are placed?