I will encourage us to have more vote on this post. I think if we get more vote on the post, it will get their attention.
Posts made by tmk1000
-
RE: Please add menu for Project "Save as"posted in Questions & Answers
-
RE: Please add menu for Project "Save as"posted in Questions & Answers
@Vahab-K That's good I didn't think of that
-
Please add menu for Project "Save as"posted in Questions & Answers
I looked up the forum and I saw someone asked a similar question before but I think they were misunderstood.
Currently, I have completed a project (P1) but I want to updated it without loosing my previous work. if there was a "Save as" option I could save it in a different name (P2) and I will get to keep the old project (P1) meanwhile I can work and edit new project (P2).
Currently if I edit the project (P1), it will rewrite it. The best option is to create a new project and copy everything I did from he old project to the new project. That includes manually entering each variable I used in the previous project.
if there's a better solution please advise. But adding the Save as button will be great.
Thanks in advance
-
RE: Compilation errors: enumerator identifier already definedposted in Bug Reports
True, thank you for your assistance. It is much appreciated. I will keep trying different solutions. Hopefully, the bug will be fixed soon, or maybe someone will come up with a workaround or something.
-
RE: Compilation errors: enumerator identifier already definedposted in Bug Reports
Thank you for your prompt reply. Yes, I have done that before. it works on some indicators but not all of them. Some indicators won't work at all and it will give you this error: " You are trying to use renamed indicator"
-
Compilation errors: enumerator identifier already definedposted in Bug Reports
Hi everyone,
I'm experiencing a persistent issue with compilation errors in fxdreema, specifically related to enumeration identifiers. I've encountered this problem before and usually managed it by switching to a different indicator, ensuring only one with enumerations is used in the entire project. However, now I need to use multiple indicators with enumerations and can't find a workaround.
I simplified the logic to isolate the problem and experimented with various solutions, but nothing has worked so far: https://fxdreema.com/shared/45lPJsgWb
I searched the forum and found only one relevant topic: https://fxdreema.com/forum/topic/8484/compilation-errors-enumerator-identifier-already-defined?_=1721670606308I followed the instructions provided by @trader-philipps, but the error persists.
Here’s what I’ve done:
Deleted the indicator from fxdreema's custom indicators list.
Re-added the indicator.
Cleared all enumerations as instructed.
Clicked "update"
Then I go back to the project and re-selected the indicator before downloading the .ex4 file.Despite these steps, the same compilation error appears. It seems as if the system retains the data of the deleted indicator. sometimes I don't remember how but when playing around with it, I get the "undeclare identify error"
Is there a known fix for this situation? From what I understand, the issue arises because enumerations can't be defined twice, yet these enumerations should be isolated to each specific indicator, not the entire project.
Is there a way to force the system to recognize that these enumerations are unique to each indicator? Alternatively, is there a method to link all indicators requiring enumerations to a particular database to avoid this conflict?
I appreciate any help or insights. Thanks in advance!

-
RE: Creating EA using .ex4 indicatorposted in Bug Reports
Hi @roar , I was meant to do another topic for this but because it happened again. I decided to ask here. But please advise if I need a new topic for this.
Basically whenever, I edit an .ex4 indicator under "My indicator tab: Indicator Name / Relative Path". it seems like the change does not take effect immediately. Somehow the program still store the previous entered data. I can fresh the page, close the page, to even switch the laptop. it won't change until some times pass and randomly when you try it work again. or If I re-upload the indicator or rename it. it may work.
Example: with this current indicator as I have shown above I was getting errors with the enumerations. I decided to follow your second advise by removing it and just use integers. But whenever I click on download the ex4, I still get errors of enumerations that were previously used. Although I have deleted it as shown in the picture below. I have also attached the link.
I have been struggling with it for hours now. the errors still not going away. This happens so often with other indicators too. Thank you in advance.https://fxdreema.com/shared/PNADRdNje

-
RE: Creating EA using .ex4 indicatorposted in Bug Reports
@roar Thank you for your time and assistance.
I tried both suggestion- Enumeration:
I'm still getting errors depending on what I select on the indicator condition.

for example: if I choose "Heavy right up" from the dropdown, I will get a compilation error on "Heavy right up". If I choose "Ball" I will get compilation error on Ball. if I choose both I will compilation errors on both respectively.
Below I listed data I entered.


- Using integers
Using integers, the indicator worked. it wasn't multiplying itself as it was doing before. I almost got emotional when I saw it because it took me days. So thank you.
however, on the indicator window on MT4, if doesn't seem to recognise the number. next to "Up arrow code" and "Down arrow code" it's empty. Initially in fxDreema, I entered 8, then I replaced it with 7. But I still got the same thing. I also attached a picture below.

- Enumeration:
-
RE: Creating EA using .ex4 indicatorposted in Bug Reports
@roar Hi roar first of all I would like say thank you for your assistance. I see how you assist many of us in this forum. so thank you. you're a legend,
hahah trust me that was produced less than 5 seconds.I decided to try how you done it. it's giving compilation errors.
I have attached a picture and a link to it.
https://fxdreema.com/shared/3oFMcTSQb
-
Creating EA using .ex4 indicatorposted in Bug Reports
Hi !
I am trying to create a EA using this indicator.
volatility quality zeroline d4.ex4I manually entered Variables and buffers. After some days of trial and errors I managed to get it to work/appear on the tester.
However, when running the strategy tester, the indicator sub-window keeps multiplying itself. it's like adding the indicator on chart every millisecond.
I have attached examples.




As you can see in the above image the longer the strategy tester runs the worst it gets.
Bellow is how I added the indicator on fxDreema.



Please can you can assist me please maybe I added wrong "data types".
Please help.
There's also another bug that I realised when editing ".ex4" but I will explain it in another topic.
Please your assistance will be much appreciated.
-
RE: How to take profit using indicatorposted in Questions & Answers
Hi thank you for the suggestion but I still couldn't figure it out. can someone Help please
-
RE: How to take profit using indicatorposted in Questions & Answers
Hello, I think there's a misunderstanding. My issue is about exit not entry.
I have attached a new link where I over simplified the EA. i also attached two pictures to explain it better.
Pic 1

Pic 2

Link
https://fxdreema.com/shared/lh4RO3mJbthere are two steps for the exit i want.
- Price is at least x2 greater than the stop loss.
- Price crosses back the MA indicator.
As you can see I'm only on step1
What i want is to exit the trade when the market crosses x< the MA but only if the market is atleast x2 higher the value of the SL so if the market crosses the MA but it's lower than x2 SL value the trade shall continue. thanks for all your assistance so far.
-
RE: How to take profit using indicatorposted in Questions & Answers
Yes, Trades do open as i want, I added another formula block that subtract the SL from the EMA than times it by 2 for the TP. I need help with closing the trade. as i stated in the question. how do i close a buying trade once the price has gone up twice the SL than the price crosses back down x< the adx indicator. As you can see I managed to do step 1 &2. I'm already calculating the x2 SL for my TP now it just implementing the x< above the TP (x2 SL) thanks
-
RE: How to take profit using indicatorposted in Questions & Answers
Hi, Sorry I was away. I got stuck here when I was building it so I haven't done the Selling section
https://fxdreema.com/shared/dv2mpR98 -
RE: How to take profit using indicatorposted in Questions & Answers
Yeah i checked, it doesn't repaint. it's quite easy doing it manually with the eyes. once the price is above certain level and price crosses x< the indicator you exit but programming it, it's a bit tricky. the yellow line is the ema. even if TP using the ema i will still be the same principal. please if you can help me.
-
How to take profit using indicatorposted in Questions & Answers
Please help,
I want to build an EA that takes profit using an indicator. so from the attached image, if I buy at the bottom where the arrow is and I want to take profit further up when the candle crosses x< the ema or adx indicator above a certain price level ( where the circles are. it could be any of the circle. this is just to illustrate). so in steps it will be:- let's say I Buy
- let's say the price has gone up 2x the stoploss distance.
- the candle crosses x< the adx/ema indicator
- TP
I did my search on the forum and came across this:
https://fxdreema.com/forum/topic/9640/how-to-make-tp-take-profit-a-variable-based-on-an-indicator?_=1683643943502
But it didn't really help. if someone can give me just and example on how i will stack those blocks together.
Thanks in advance.
