fxDreema

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

    Best posts made by PhiLykia

    • TUTORIAL - Creating a new buffer to use indicator colors.

      Hello friends, there are often questions in the forum about how to use the color change of an indicator as a signal.

      As you know, the color change is created in the indicator as a result of a calculation. If we can assign this calculation result as a value along with the color to a separate buffer (although it already exists but is not available as a buffer), you can use it as you wish.

      Let's now examine how to do this.

      (First of all, be sure to save your indicator under a different name. We don't want to lose its original state.)

      First, let's open the indicator with IDE.

      586ce508-1e51-4274-bca9-03df9ea52f09-image.png

      Let's add buffer with a new name to the buffer definitions under OnInit. I used the name buffer_value as an example. Use the sequence number when adding a new buffer.
      (the following number is 3 in the example).

      40705bc3-d78c-42fd-b9e4-a4ac693c4d85-image.png

      We increase the number of available buffers by one. Along with this, we also increase the number of buffers to be displayed by one.

      7548b772-f7d3-4ead-a362-92df21dff6d8-image.png

      In addition to the existing buffer definitions, we add a newly named buffer definition.

      91860666-9455-4dc2-8942-42bbae8e5187-image.png
      Our buffer definitions are finished. Now let's make this buffer get a value:

      Again, we determine the name of the INDICATOR_COLOR_INDEX buffer in the buffer definitions under OnInit. In this example "valc"

      fe49e018-253c-4804-aa95-a8b0588467b1-image.png

      We go to the calculation section in OnCalculate and find the valc calculation (assignment).

      8f286fcb-8600-4e4c-b8ab-28993bff0acc-image.png

      What we are looking for is here, the result of Level Up and Level Dn:
      ((val[i]>inpLevelUp) ? 1 : (val[i]<inpLevelDown) ? 2 )

      Compile the code you edited and start using it. While there was only one buffer listed before, two buffer options will appear after these operations.

      If the buffer value = 1, you can use it as an increase, and if it is 2, you can use it as a decrease.

      posted in Tutorials by Users
      P
      PhiLykia
    • Indirect solution method for Compilations Error problem

      Unfortunately, I could not get any comments or solutions from the relevant people regarding the "Compilation errors" problem in FxDreema.

      It was up to me to come up with a solution:

      If there are "enum" inputs in the indicators you use and FxDreema does not support this, you will receive this error. All you do is use the indicator without implementing enum variables.

      However, using the indicator without enum variables often leaves the indicator meaningless.

      This is the error you will get in FxDreema if you use enum variables:

      10b74a1c-e2ca-4de6-b641-d8b965705dfb-image.png

      Let us solve the problem that FxDreema cannot solve ourselves. Save your project without enum variables and open your saved project with the IDE editor.

      Here are the enum options in our code:
      8b06f9cf-4533-4e4f-992c-cd0e38b2678e-image.png

      Manually define your enum in input fields:
      1df14675-f347-4158-8735-8173c6bc73d4-image.png

      9fcbb24d-e8cf-4b40-9fd5-0ab057fb7f4c-image.png

      7cb7af44-a38c-441c-80e1-f7da7e5ed5e9-image.png

      1e0fbb53-7e64-4d1e-ae4b-b500eb49f7b7-image.png

      This is what the variables for your indicator look like:
      1fc1d009-ec7b-419d-a6f3-3ed4c094c696-image.png

      Also change the enum variable as follows:

      63ca4e0d-b590-45bb-ac2f-dc7c78e7576d-image.png

      Save your project and open it in Metatrader Strategy Tester. Here are the enum variables that you cannot create with FxDreema.

      8551e977-eb40-4c15-b962-60381b387a74-image.png

      posted in Bug Reports
      P
      PhiLykia
    • RE: Candle Patterns logic

      @Nathan2018 @tec-nacks https://fxdreema.com/shared/yMrG9iJMd

      posted in Questions & Answers
      P
      PhiLykia
    • Decisive indicators, supporting indicators

      As a result of my studies, I saw that some indicators are indicative and some are supportive. How does?
      I have studied hundreds of indicators and oscillators over time. I would like to explain how I elaborate on the indicators and oscillators that I have studied, and how I use them in an EA. Maybe my goal is to give someone a clue.
      (Sorry for my English, I will have mistakes, forgive me)

      Let's start with a random indicator, for example the WSO&WRO indicator.When we apply it to the chart, we see this:

      2b712403-8ff8-4b09-aa97-519304a1baec-image.png

      What should the indicators be doing for us? should show the entry and exit points of the position perfectly.
      Here are the points I want in this indicator:

      d1417b6c-54ff-4492-9ede-1828b8362907-image.png

      What dots do these dots correspond to on the indicator? I see that when both buffers meet at the same point (0 and 100) it should generate a signal to me.

      If the two buffer outputs are at the same level, close in case of open position opposite.
      https://fxdreema.com/shared/cUCaIgHic

      this is the result of this EA:
      14db5942-4073-44c6-8f02-0089c3b80210-image.png

      Here is the trading report:
      f1d8ae27-bd97-4bf4-996d-44aba7a5aa98-image.png

      when we remove the "no trade/position" block from this EA:

      bda72ebc-3bb3-4d2a-a95f-13e3e031c744-image.png
      7f3b4e52-7809-4c16-9e79-d5b5243eae2c-image.png

      If we apply a grid system, the EA is like this:
      https://fxdreema.com/shared/Bn9S4PwEd

      As a result, the WSO&WRO indicator is a "decisive" indicator. but it cannot produce a perfect trade report by itself. in this case we need to develop this indicator with "supporting" indicators.
      Separate your indicator pool in these breakdowns, it will be of great benefit.

      I tried to briefly explain the determining indicator, I would like to talk about supporting indicators in my next post.

      posted in Tutorials by Users
      P
      PhiLykia
    • RE: Compilation errors when using indicators with Multi Time Frame.

      Hello, It is positive that updates are made to the application and that it continues to be developed. I am sure that the stable operation of the application is very important for all of us. It is undesirable for an EA that is currently working to not be working after development. We are ready to provide testing support in this regard, if necessary.

      Among the indicators, Moving Avg, Price Type, Time Frames, etc. are included in the standard library. It is important that we also use the special parts we coded.

      This is a problem for me if I am going to update the code that I have compiled in FxDreema on the IDE. I hope the developers resolve this quickly or suggest alternative solutions.

      image.png

      posted in Bug Reports
      P
      PhiLykia
    • RE: Candle Patterns logic

      @Nehemiah7 @Nathan2018
      https://fxdreema.com/shared/lcxWYJ3Vd

      TEST851.png

      posted in Questions & Answers
      P
      PhiLykia
    • RE: Decisive indicators, supporting indicators

      Let's see if we can achieve the "perfect" Expert Advisor using the indicator we took as an example.

      In this indicator, there are 6 zones with a range of 16.66. Let's see, what happens if you open a high lot BUY on R0B5, a low lot BUY on R1B4, a low lot SELL on R4B1, and a high lot SELL on R5B0?

      Positions will only be opened at these levels, and outside this level is close position.

      image.png

      posted in Tutorials by Users
      P
      PhiLykia
    • RE: Compilation errors when using indicators with Multi Time Frame.

      @fxDreema Problems continue, especially in compiling multi-time frame indicators. Can you provide an explanation or solution suggestion on this issue?

      Example of the problem: In codes containing MTF, it is necessary to define this as a variable to call the data of the time frame. But since we cannot use this variable, we cannot work with these indicators.

      #define _mtfCall iCustom(_Symbol,timeFrame,getIndicatorName(),0,inpx,inpy)

      posted in Bug Reports
      P
      PhiLykia
    • RE: singal from trading view to mt5

      @danyz1989 (it doesn't matter though. pineconnector runs a pinescript.) magic number ok, so group name/number, does it match? Did you sync using "strategy.group()" included in Pinescript?

      // Open Order
      if condition
      strategy.entry("Buy", strategy.long)
      if bar_index % 2 == 0
      strategy.group("Buy", group1) // Add Group 1
      else
      strategy.group("Buy", group2) // Add Group 2

      posted in Questions & Answers
      P
      PhiLykia
    • RE: Compilation errors when using indicators with Multi Time Frame.

      Hi @jstap,
      Thanks for your interest. The problem is not being able to update or design a new one using the indicators we were actively working with before. In other words, we are no longer able to use the service we received.

      Although we provide support to identify the problem, it is sad that there is a lack of interest.

      We need to work with time frame variables, especially in MTF indicators, you know. In this case, instead of using the ENUM_TIMEFRAMES structure, we need to give the variable a different name and switch to its standard structure (with the code block below) at the last stage.

      ENUM_TIMEFRAMES timeFrameGet(int period)
      {
      int _shift=(period<0?MathAbs(period):0);
      if(_shift>0 || period==PERIOD_CURRENT) period=_Period;
      int i; for(i=0;i<ArraySize(X);i++) if(period==Y[i]) break;

      return(X[(int)MathMin(i+_shift,ArraySize(Y)-1)]);
      

      }

      Again in the same example, at the beginning of the code;

      _tf = inpTimeFrame;
      ENUM_TIMEFRAMES timeframe;

      draw_begin = inpPeriod; // initial PLOT_DRAW_BEGIN value
      

      //---
      timeframe=_Period;
      if(_tf<=timeframe)_tf=timeframe;// if the TF is less than or is equal to the current one, set it to PERIOD_CURRENT
      pf=(int)MathFloor(_tf/timeframe);// calculate coefficient for

      I can't do this part with "input ENUM_TIMEFRAMES = PERIOD_MX".

      I'm not sure if I explained it.

      You may ask, if you can do these things and compile them in the code editor, why use fxDreema?

      For me, there is only one reason: time. I can do it much faster with fxDreema.

      posted in Bug Reports
      P
      PhiLykia
    • RE: morning and evening start

      I made all the candle templates, here:

      https://fxdreema.com/shared/fkB9cvcZd

      posted in Questions & Answers
      P
      PhiLykia
    • 1 / 1