fxDreema

    • Register
    • Login
    • Search
    • Back to the main page
    • Categories
    • Recent
    • Tags
    • Popular
    • Search
    1. Home
    2. roar
    3. Best
    • Profile
    • Following 0
    • Followers 184
    • Topics 35
    • Posts 2406
    • Best 422
    • Controversial 6
    • Groups 0

    Best posts made by roar

    • RE: Tips for robustness

      All I can say that your EA seems to work during higher daily volatility. But volatility cannot be really forecasted, so I cant give any answers there.

      image.png

      posted in Questions & Answers
      roar
      roar
    • RE: How can I know the max price frome candle close above ma50 until it close below ma50?

      Like this?

      https://fxdreema.com/shared/lLJy8gRX

      posted in Questions & Answers
      roar
      roar
    • RE: First Candle of the Day, Locate and Identify???

      @OntradingX I tried to use current timeframe, but there was an error with the quick example I made.

      Here's corrected code:

      int openid_current_tf = iBarShift(NULL, 0, iTime(NULL, PERIOD_D1, 0));
      
      if(iClose(NULL, 0, openid_current_tf) > iOpen(NULL, 0, openid_current_tf))
      	Comment("Today started with a BULL candle");
      else
      	Comment("Today started with a BEAR candle");
      

      53edf3d0-cff9-4212-a15d-1335579441f8-image.png

      posted in Questions & Answers
      roar
      roar
    • RE: set stops robot

      The same blocks as usual, just change the group filter.

      image.png

      posted in Questions & Answers
      roar
      roar
    • RE: News during Backtest

      @tec-nacks most news filters dont support that.

      Technically its possible, if you get some kind of database of old news records. In fact, I'm willing to code it for you, if you really find such database.

      posted in Questions & Answers
      roar
      roar
    • RE: “ EA SUDDENLY COLLAPSE WHEN BACKTESTING WITH 2 DIGITS BROKER BUT NO PROB WHEN BACKTESTING WITH 3 DIGITS BROKER ( XAUUSD ) "

      @kavmasayuki my example should work fine.
      I dont use this feature myself, but this is how I understand it.

      posted in Questions & Answers
      roar
      roar
    • RE: How to set EA Password for 1 account ?

      Something like this in the On Init -tab should work.
      0_1532882078134_8049f254-5cf4-457b-b3f8-9ea18bfc2be4-image.png

      posted in Questions & Answers
      roar
      roar
    • RE: How much is TOO much?

      @gooseman every indicator reserves some amount of your RAM memory. When you have 100 indicators with their memory allocations, there might not be space left for 101st.

      Alternative structure: work with just 1 group of blocks, but run the same blocks multiple times, changing the symbol in between. You can put the symbols in an array.

      posted in Questions & Answers
      roar
      roar
    • RE: Is possible to use a mql5 indicator in an EA?

      @gery https://www.mql5.com/en/docs/constants/indicatorconstants/prices

      it must be exactly "ENUM_APPLIED_PRICE"

      posted in Questions & Answers
      roar
      roar
    • RE: Martingale principles

      @Abade69 to play devils advocate: the statistical metrics for walk-forward system tells how good the EA is fitting different strategies (parameter combinations) to sections of history data, right? There is less evidence that the latest strategy will work today and tomorrow

      posted in Questions & Answers
      roar
      roar
    • RE: candle ID in lower TF

      Record the datetime value of hourly candle:

      datetime timevar = iTime(NULL, PERIOD_H1, 123);
      

      Get the candle ID from that time, in selected timeframe:

      int idvar = iBarShift(NULL, PERIOD_M1, timevar);
      

      https://www.mql5.com/en/docs/series/itime
      https://www.mql5.com/en/docs/series/ibarshift

      posted in Questions & Answers
      roar
      roar
    • RE: close all trade button not working
      • You need to draw your button just once, not on every tick or every chart event. Move the draw button to On Init.

      • When checking the mouse clicking, you are looking for a different name - "Button1" vs "button 1"

      posted in Questions & Answers
      roar
      roar
    • RE: My Indicator generates compliation errors

      Datatypes (int, bool) are lower case

      posted in Questions & Answers
      roar
      roar
    • RE: Expert properties display

      @talshemtov you need to declare a new constant for each MA setting. Find the correct enumeration from mql5.com:
      https://www.mql5.com/en/docs/constants/indicatorconstants/enum_ma_method

      5a5adca1-526f-4266-9ef0-c6ed43419358-image.png

      posted in Questions & Answers
      roar
      roar
    • RE: Button Click Open New Chart

      Basically you can just use the ChartOpen function: https://www.mql5.com/en/docs/chart_operations/chartopen

      https://fxdreema.com/shared/h3f6nEY3

      posted in Questions & Answers
      roar
      roar
    • RE: Custom Indicator not showing data after X bars

      @joseanrod the total number of bars is in variable called Bars.
      But the indicator probably needs some history before it can start calculating the indicator results, so you can try something like this:

      i = Bars - 100;
      

      https://docs.mql4.com/predefined/bars

      posted in Questions & Answers
      roar
      roar
    • RE: How to do I build a multi timeframe\symbol portfolio?

      @gooseman ok, if MA has a variable timeframe as well, its better to use slightly different structure.

      1. Start with the market selection loop
      2. Record the currently selected market into "market" variable
      3. Run a checkup in custom block: if market is this, set timeframe to this and set rsi target level to this
      4. Apply the found timeframe to every next block
      5. Run the MA and RSI conditions with the previously selected variable timeframes and target levels

      https://fxdreema.com/shared/nvVoaSASc

      posted in Questions & Answers
      roar
      roar
    • RE: How to do I build a multi timeframe\symbol portfolio?

      @gooseman so you have different RSI timeframes and different RSI levels for each symbol?

      In that case, I would first record the RSI on all timeframes into their own variables, also record the currently selected market, and then do the symbol + RSI check in one big condition block.
      For the syntax, && means "and", || means "or".

      This doesnt compile since I dont have all your variables, but I hope you get the idea
      https://fxdreema.com/shared/D0LMD4Hnc

      To avoid the unnecessary loading of all RSI timeframes for all symbols, you could first do a checkup for the correct TF for the selected symbol, but it is not strictly needed

      posted in Questions & Answers
      roar
      roar
    • 1
    • 2
    • 16
    • 17
    • 18
    • 19
    • 20
    • 21
    • 22
    • 18 / 22