fxDreema

    • Register
    • Login
    • Search
    • Back to the main page
    • Categories
    • Recent
    • Tags
    • Popular
    • Search
    1. Home
    2. willramsey
    3. Posts
    • Profile
    • Following 0
    • Followers 1
    • Topics 0
    • Posts 42
    • Best 4
    • Controversial 0
    • Groups 0

    Posts made by willramsey

    • RE: Best way to set Delay and Modelling functions while back testing

      To add commissions, you can click this button and input the commissions your broker charges. I can try to find an article to link if it's confusing to you or you can probably find an article in a few minutes on how to do it. Commissions.png

      posted in Questions & Answers
      willramsey
      willramsey
    • RE: Best way to set Delay and Modelling functions while back testing

      That'd be better than the first screenshot for more realistic results, yes. If you really want the best data to test through if you plan on working with EA's a lot, then you can get a license to TickDataSuite(TDS) or Tickstory for tickdata. I believe there are some free sources as well but I personally use Tickstory.

      posted in Questions & Answers
      willramsey
      willramsey
    • RE: Multipairs EA

      @Crisfx If this is for MT4, then it won't work. MT4 doesn't support multicurrency trading on one chart, only MT5. For MT4, you have to put the EA on each individual pair.

      posted in Questions & Answers
      willramsey
      willramsey
    • RE: Best way to set Delay and Modelling functions while back testing

      Whenever doing backtesting, you should always include some kind of delay, if not random. You're orders in live markets are never instant.
      Additionally, any test that's not based on real-ticks or tick-data is not good and shouldn't be taken seriously.
      There are still other factors such as how it trades. Does it scalp? Does it have a tight trailing stop? All these things matter. Additionally, you should add commissions to your backtest. Some kind of swaps too if the strategy holds trades through the next day.

      Lastly, and most important, just because these things are included, it still doesn't mean it's going to perform the exact same way in live, but it should be a close representation.

      posted in Questions & Answers
      willramsey
      willramsey
    • RE: Buttons don't work during backtesting

      @bagheria For backtests, there is a "If Testing" block. Unfortunately with the backtester, OnChart doesn't work with buttons, but OnTick does. So if you want to backtest with it, you need to have an If Testing block, connected to the rest of your logic OnTick.

      i.e. This is a old example with just a simple buy button, which works in the backtester.
      https://fxdreema.com/shared/jvHegkKHc

      posted in Questions & Answers
      willramsey
      willramsey
    • RE: partial close block

      Your button should be created on the OnInit tab and controlled on the OnChart tab. All your logic seems to be looped in a mess when it could be much more simple. That's probably why it doesn't work.

      posted in Questions & Answers
      willramsey
      willramsey
    • RE: About pending orders counts

      Yeah, I think it's pretty much impossible to know the specific timeframe you're on based on your phone since you can't have the EA on your phone. Only so much you can do.

      posted in Questions & Answers
      willramsey
      willramsey
    • RE: About pending orders counts

      I see, you didn't say mobile before. Since mobile doesn't have EA attached, it would indeed be more difficult. You could probably use your MetaQuotes ID or have some comment identifier from your phone somehow but not sure how you would go about that. Maybe someone else has more insight. Can try to look into for a little a bit later to see if I can find anything.

      posted in Questions & Answers
      willramsey
      willramsey
    • RE: About pending orders counts

      If you buy, it'll place 5 orders with 10 pips difference. Same with sell. Which is what you said in the first post in the thread. Now it sounds like you're saying something different?

      posted in Questions & Answers
      willramsey
      willramsey
    • RE: About pending orders counts

      I tested it multiple times in a demo and worked fine so something must be wrong in your project still.

      posted in Questions & Answers
      willramsey
      willramsey
    • RE: About pending orders counts

      Here's this if you're confused.
      https://fxdreema.com/shared/KcPGdVRTc

      posted in Questions & Answers
      willramsey
      willramsey
    • RE: About pending orders counts

      Not sure if there is a simpler way to do this, but I would use a "If Condition" block. Then use bools to turn on/off the block you don't need on the OnInit tab.
      i.e. You attach the EA to M5, then turn M5 to true & M15 to false. Vice-versa for the M15.
      Screenshot 2023-11-27 103932.png

      posted in Questions & Answers
      willramsey
      willramsey
    • RE: How to do I trade the AUDUSD with the USDCAD as a filter

      You need to set the current markets for the blocks so it loads within the tester for the pairs you want to use. In each condition, specify which pair the condition is for, and also specify the pair you want to buy/sell. Here is a basic example. I'm assuming that the 3 bar conditions are for AUDUSD and then your checking USDCAD before buying AUDUSD. If not, then you can change things accordingly. The set market for blocks also needs to be placed correctly in the tree or it won't work. This code here seemed to load both pairs and took trades.

      https://fxdreema.com/shared/O6CkX98rb

      posted in Questions & Answers
      willramsey
      willramsey
    • RE: How to get data from object (horizontal line) then store at variable

      @l-andorrĂ  Yes, but I was saying terminal variable if the chart the EA on was completely closed and was shutdown. If the chart window closed, the line is also gone. But, maybe I was misunderstanding him.

      posted in Questions & Answers
      willramsey
      willramsey
    • RE: How to get data from object (horizontal line) then store at variable

      I don't know what your whole project looks like on exactly what your doing so I can't really help further.

      You could use a normal variable on the OnTick tab. Then, maybe on DeInit incase of MetaTrader closure, store into a Terminal Variable. Then OnInit, draw the lines back with terminal variable like I showed, but add an additional block Modify Variables, to modify the original variable back from your OnTick tab using the terminal variable. Seems like a headache.

      posted in Questions & Answers
      willramsey
      willramsey
    • RE: How to get data from object (horizontal line) then store at variable

      @Steven_ Hm, I'm not sure then. The way I did it always redrew the lines back even when exiting the expert at the last opened trade SL/TP level. May be more complicated in a larger project.

      posted in Questions & Answers
      willramsey
      willramsey
    • RE: Enter at Break of a High/Low of a Specific 1min Candle

      @shanchook33 Using the "Once A Day" block and at a certain time "7:30" or whatever time, you can store the price values for the candle high and low based on the M1 into variables. Then you can place an order based on those values since they hold the prices for the high/low of that candle. Do you know how to use variables?

      posted in Questions & Answers
      willramsey
      willramsey
    • RE: Bollinger Bands Flag +Stochastic

      @felix2828 I am familiar with it but don't use it in majority of projects.

      posted in Questions & Answers
      willramsey
      willramsey
    • RE: Bollinger Bands Flag +Stochastic

      @felix2828 What are the exact rules of entry and exits for the strategy you are trying to create? Looking through the thread it seems to vary. I may be able to help if you can lay it out more clearly. In one project there is Heiken Ashi and in another earlier in this thread there isn't. I don't know what you're trying to do.

      posted in Questions & Answers
      willramsey
      willramsey
    • RE: How to get data from object (horizontal line) then store at variable

      @Steven_ This seems to work and what you want. Instead of modify variables, I am using the Terminal Variables block instead. Then on OnInit, you want to pass and Draw Line at the price "Terminal Variable Name".

      So it will draw the lines again on initiation and it should update properly automatically.

      Screenshot 2023-11-23 042530.png Screenshot 2023-11-23 042508.png

      posted in Questions & Answers
      willramsey
      willramsey
    • 1
    • 2
    • 3
    • 2 / 3