fxDreema

    • Register
    • Login
    • Search
    • Back to the main page
    • Categories
    • Recent
    • Tags
    • Popular
    • Search
    1. Home
    2. andyjames
    A
    • Profile
    • Following 0
    • Followers 1
    • Topics 8
    • Posts 12
    • Best 1
    • Controversial 1
    • Groups 0

    andyjames

    @andyjames

    0
    Reputation
    776
    Profile views
    12
    Posts
    1
    Followers
    0
    Following
    Joined Last Online

    andyjames Unfollow Follow

    Best posts made by andyjames

    • RE: Excellent work by fx dreema

      I agree, FxDreema is an excellent tool for rapid development and is extremely useful for people with or without programming skills. What I love about it is the visual representation of your logic, you do not get this looking at pure code. You focus on logic and don't get bogged down in the syntax of the actual code. But if you want to you can always go into the MT4 code produced and tweak it, so you have the best of both worlds.

      I'm very new and here most days, it's pretty much a complete development environment, you have the tool, a forum, click on the Smiley icon in the project development area and you have chat.. cool. Also Markus responds very quickly to any issues or questions you may have. Does he actually sleep? lol

      posted in Questions & Answers
      A
      andyjames
    • RE: candlestick HeikinAshi

      __does anyone know how I can call HeikinAshi Candle use as indicator /? :)[/quote:2opbfhnd]

      Hi,
      In the attached zip file there are :-

      Heiken Ashi Indicator
      HeikenAsh EA in xml
      BufferSettings Jpeg

      The buffer settings are :-

      Bull candle

      Buffer #0 Low
      Buffer #1 High
      Buffer #2 Open
      Buffer #3 Close

      Bear candle

      Buffer #0 High
      Buffer #1 Low
      Buffer #2 Open
      Buffer #3 Close

      Be careful as the High and Low seem to swap buffers according to the candle, the Open and Close buffers always remain the same. To illustrate this I've included and EA which for each bar will remove previous lines, then paint new horizontal lines on the chart in different colours.

      In the EA High = White dotted, Low = Red dotted, Open = Green solid and close = blue solid. Run the EA in the strategy tester and you will see the lines change as they are plotted for different candles. If the Open(Buffer #2) > Close(Buffer #3) then red bear candle, Open < Close then white bull candle.

      Hope this helps.
      Andy

      ......
      Heiken Ashi.zip

      posted in Questions & Answers
      A
      andyjames

    Latest posts made by andyjames

    • RE: if condition one is =yes then wait untill condition two...

      Hi Dieter,

      I think I know what you need to do. You may have 2 conditions which need satisfying but not necessarily at the same time. IE, MACD bullish divergence occurs then you wait for the bull candle for example.

      What I would do is create a numeric variable 'MACD_Bull' and set this to 0. When a bullish MACD diversion happens you can set MACD_Bull to 1, when bearish MACD diversion happens set MACD_Bull to 0. Or however your logic works.

      Then test the condition of the variable and if 1 perform your other check.

      Did a quick project to show what I mean..

      http://fxdreema.com/shared/p4YBuV5Gc

      Andy

      posted in Questions & Answers
      A
      andyjames
    • RE: Happy Birthday, fxDreema - 1 year from launching! Gifts!

      How very generous of you and I wish you a very long and prosperous future.

      Cheers,
      Andy

      posted in Questions & Answers
      A
      andyjames
    • RE: How to do this

      The candle ID is very important and useful. I use it to see when moving averages crossover. So for bull crossover FastEMA (ID 2) < SlowEMA (ID 2) and then FastEMA (ID 1) > SlowEMA (ID 1) and also for intensity of bullish trend FastEMA (ID 2) adjust by +pips < FastEMA (ID 1) etc

      posted in Questions & Answers
      A
      andyjames
    • RE: User gfhg

      Hey,

      Who is this moron who sends private chat messages like this?
      Now everyone can see what a complete arsehole you are..

      Mr fxDreema, do you really want people like this in our community..???

      http://i1088.photobucket.com/albums/i328/andyjames245/FU.jpg

      posted in Questions & Answers
      A
      andyjames
    • RE: Trading when opening ask of current/prev candle is different

      __If you are working with 0.00001 format, then 100 pips are 0.0010 [/quote:3ne61kw0]

      This is completely incorrect.

      In all pairs containing JPY the pip is 2 places right of the decimal point. GBPJPY 126.800 rises to 126.850 is an increase of 5 pips, not 50.

      All other currency pairs the pip is the 4 places to the right of the decimal point. EURUSD 1.29000 falls to 1.28600 is a loss of 40 pips, not 400

      1.30010 increase to 1.30015 is half a pip increase and not 5.

      posted in Questions & Answers
      A
      andyjames
    • RE: Super Trend Indicator EA

      Hello,

      Quite often in MT4 we use visual indicators. For example Heiken Ashi where the candles change colour to indicate and smooth out trends. The only problem is to understand how these visual indicators change colour because your EA will not recognise the indicators colour value. You need to understand what's in the buffers.

      If you do not know how to do this here's a very simple method.

      1. Import your indicator (mq4) as it is. Don't change any values or rename any buffers.
      2. Create a new project, stick a 'once per bar' block at the top.
      3. Connect a 'file write (excel table)' block.
      4. Set the columns to 'my indicators' and select each buffer.
      5. Run this EA in visual mode with the actual indicator attached to your chart.

      When your visual indicator has changed colours or whatever a few times stop the test.
      Go to C:\Program Files (x86)\MetaTrader - Alpari UK\tester\files and open your Excel.
      Look at the different buffer values in your Excel tables and map them to your strategy tester chart. You will see a correlation between the values.
      Then create a simple EA to put something, for example a blue up arrow when the indicator should turn bullish.

      NB. Often you will see the value 2147483647 in a buffer, this in mq4 I think means Empty Value, so always create a variable or constant with this value so you can compare buffers against it.

      Anyway, I import a lot of custom indicators into fxdreema so today I'd like to share with you one of my favourites, the Super trend indicator. Attached is a zip file containing...
      SuperTrend.mq4 (the indicator)
      SuperTrendEA.mq4 (the EA)
      ST.tpl

      Add the Supertend indicator to your fxdreema indicators first.
      Then you can import SuperTrendEA.mq4 as a project, fxdreema menu Projects->Load project from file.. it works with mq4 as well as xml.

      SuperTrend indicator is ..
      Green and flat (green thumbs up)
      Green and bullish (green up arrow)
      Pink and flat (red thumbs down)
      Pink and bearish (red down arrow)

      You can look at the project and see the various conditions which paint the arrows and thumbs. Just use those conditions in your real EA. Here's a 3 minute video to see it in action..

      [youtube:18wwelur]http://www.youtube.com/watch?v=_oPmElsdQZs[/youtube:18wwelur]

      If you like this then offer something in return, post a gift for others and we'll all be better off.

      Andy

      ......
      SuperTrendEA.rar

      posted in Questions & Answers
      A
      andyjames
    • RE: Testing and DATA

      __Good information, Andy, thank you for it.

      Ticks data is a "must" when trying strategies with small stop-loss and take-profit, and especially when using techiques like trailing stop. It will be lose of time if you backtest scalping with reguar ticks data.

      Far away from 1M, when we work with bigger size of stop-loss and take-profit, it's also iportant that we have good quality of lower timeframe data. 1M can be good enough, but note that M1 data normally exists in MetaTrader's history for only a few months ago. Well, it can be downloaded for longer period (this requires more PC resources).

      What I actually like is that "Open prices only" model in MetaTrader's Tester. The good part is that this model is much more faster that "Every tick" model. But it requires special strategies to be tested with it. Trailing stop is not a good choice here. If our strategy is to keep single trade per bar, it's ok to be backtested using this model. In fxDreema you can use "Once per bar" block at the very top, and this will make things to happen only when a new bar comes.[/quote:3p74f2ox]

      I agree with you. Most of my projects use the "once per bar" block to start trade entry logic trees, ie EMA 12 > EMA 24 and set it to the last completed candle (candle id 1), then use the 'Start trades loop' to monitor any trades, trailing stops etc.

      But one big problem with MT4 is the data, using the 'Open prices' model is great to give you a fast approximation of how your logic will work, then if you like the results I'd recommend setting the model to ticks only to get a much more accurate result.

      By the way, the software I mentioned in my original post comes with a 7 day trial, the functionality in the trail is full. Before you download a trial I'd first get the tick data downloaded from Dukascopy.. create demo account (14 days only) and download the jForex script, run that and download the data. If you want lots of currency pairs over several years it can take a couple of days to download. So best to get the tick data files downloaded first as they are several Giga bytes each.

      Another good reason not to use MT4 Metaquotes data is that the strategy tester only uses fixed spreads, the Tick Data Suite interacts with MT4 and uses the actual spreads as most brokers now have variable spreads. This alone can make a huge difference in your testing.

      posted in Questions & Answers
      A
      andyjames
    • RE: Testing and DATA

      Hello,

      I just want to mention something very important to those of you that may not know.
      Fxdreema is an amazing tool to create your expert advisors, but it doesn't end there. If your testing is not done with as much accuracy as possible then how do you really know how it will perform. There are many methods to test your EA but the testing quality itself all boils down to one thing... your data.

      MT4 comes complete with data which you can easily download from MetaQuotes. Unfortunately this data is very often full of 'holes' which affects your results. Not only that but the data from MetaQuotes only uses the 1 minute time frame in the MT4 strategy tester.

      Plus, MT4 does not store the real ticks from your broker’s server. MT4 only has the open, high, low, close and number of ticks for each minute, so it generates fake ticks. If you use a trailing stop for example, or have an EA take profit at 10 - 20 pips then testing on MT4 standard data is going to give you completely different results compared to, if you had actually run your EA for that period in real life.

      Essentially the answer is to use actual tick data which you can download from the web, I personally use Dukascopy tick data. Then there's the problem of importing that into MT4 and using it correctly. You can do it manually but it's a real pain in the arse to be honest.

      So for testing I use a certain tool which isn't free. You can find it here at http://eareview.net/tick-data-suite

      I have no affiliation at all with this product and at around a hundred bucks it's not cheap. But, I've been using it for many months, the level of support you get is excellent just like here at fxdreema.

      I won't go into exactly how you use it but I can say it simplifies the whole process and your testing becomes much, much more accurate and you can use real spreads, and easily generate the GMT offsets needed for visual testing.

      Happy testing,
      Andy

      posted in Questions & Answers
      A
      andyjames
    • RE: candlestick HeikinAshi

      __does anyone know how I can call HeikinAshi Candle use as indicator /? :)[/quote:2opbfhnd]

      Hi,
      In the attached zip file there are :-

      Heiken Ashi Indicator
      HeikenAsh EA in xml
      BufferSettings Jpeg

      The buffer settings are :-

      Bull candle

      Buffer #0 Low
      Buffer #1 High
      Buffer #2 Open
      Buffer #3 Close

      Bear candle

      Buffer #0 High
      Buffer #1 Low
      Buffer #2 Open
      Buffer #3 Close

      Be careful as the High and Low seem to swap buffers according to the candle, the Open and Close buffers always remain the same. To illustrate this I've included and EA which for each bar will remove previous lines, then paint new horizontal lines on the chart in different colours.

      In the EA High = White dotted, Low = Red dotted, Open = Green solid and close = blue solid. Run the EA in the strategy tester and you will see the lines change as they are plotted for different candles. If the Open(Buffer #2) > Close(Buffer #3) then red bear candle, Open < Close then white bull candle.

      Hope this helps.
      Andy

      ......
      Heiken Ashi.zip

      posted in Questions & Answers
      A
      andyjames
    • RE: Incorrect Declaration in MT4

      __Global variables from "Formula" are always double type.

      I think it will be the best for me to just add server time as the second column in "File write" block. This sounds reasonable.[/quote:ic8qdy2v]

      Great idea, thanks. 🙂

      posted in Bug Reports
      A
      andyjames