They are not always removed, but at times I have restarted computer, loaded MT and line's etc have been missing.
Best posts made by jstap
-
RE: What does the EA remember when restarting MT4/5?posted in Questions & Answers
-
RE: Getting few bool values from custom blockposted in Questions & Answers
Ask AI (something like chat GPT), the settings are whatever tab you are using on in this case it will be on tick, global variables are likely correct (but AI may add or remove), then there's the custom functions section, you may not need to add anything here, let AI decide, the first line in settings needs to call the custom function (if ones used by using the name (the first line) of the function, Say all this to AI, give it your code and the sections it's in, it will then advise changes, then test what it gives you, any compile errors you get on the the used project will tell you and AI where the problems lye, anything can be used in custom block code that you have change in inputs, the code just needs to reference it. GlobalVariableGet() for example will get the value from anything the custom block has set.
-
RE: MT5 Close All Fastposted in Questions & Answers
@KLG Well in mate, good to see code changed and put out for the community to use.

My bad || means or and && means and..
-
RE: MT5 Close All Fastposted in Questions & Answers
Well in keep this updated, messed about with this a long time ago, don't really have time at the minute (and was never vary good) but, in there you can add different options for the block, in this something like, limit by magic, or limit by symbol, etc, like what is in other standard FX, blocks. also
According to ChatGPT this is also used in FX custom code, but I wouldn't trust it all, some I have see used over the years of looking though. AI didn't know this when I was originally working with this code but now...
Commonly Used Tokens in FX Dreema
| | |
| ~next~ | | Refers to the next block in the execution chain
| ~prev~ | | Refers to the previous block
| ~value~ | | Used to fetch the current value of a variable or indicator
| ~custom~ | | Placeholder for user-defined values or expression
| ~time~ | | Refers to the current time or timestamp of a candle
| ~price~ | | Gets the current price (can be open, close, high, low depending on context)
| ~index~ | | Used in loops or array-like structures to refer to the current iteration index
| ~symbol~ | | Refers to the current trading symbol
| ~magic~ | | Refers to the magic number assigned to trades
| ~spread~ | | Gets the current spread valueThese tokens are often used inside blocks like:
- Modify Variables
- Condition
- Buy/Sell
- Custom Code
- Loops and Filters
️ Why They're Useful- Modularity: You can reuse logic across multiple blocks without rewriting values.
- Dynamic behavior: They adapt to changing market conditions or block sequences.
- Cleaner logic: Avoids hardcoding and makes debugging easier.
If you're building session-aware or event-driven logic (like your NY session breakout detection), these tokens can help you create reusable, adaptive structures. Want to see how to use ~index~ or ~value~ in a looped candle scan or variable comparison? I can mock up a block chain or walk through a use case.
-
RE: Enum day of weekposted in Questions & Answers
Constant should be an int, and call the full function in code input:

-
RE: Enum day of weekposted in Questions & Answers
You could also create an enum and select it that way, have a good weekend:

-
RE: Problem with adding volume to buy operationsposted in Questions & Answers
Everything I said does work, add your latest link to see what you have done and what's not working
-
RE: Problem with changing internal values on blocksposted in Questions & Answers
I have never had this problem
-
RE: Problem with changing internal values on blocksposted in Questions & Answers
That's not FX, that's what terminals do, just and check values have been changed
-
RE: Problem with changing internal values on blocksposted in Questions & Answers
try saving and reading as a terminal (global) variable.
-
RE: Problem with changing internal values on blocksposted in Questions & Answers
global variables are stored in a folder separate to where your local variables are, so they will not change until you change them, so if a block is reading them to use, it will be the same untill you change.
-
RE: help two indicatorposted in Questions & Answers
Just ask AI:
Quick Answer:
The Average Directional Index (ADX) and the Average Directional Movement Index (ADX Wilder) are essentially the same indicator conceptually, both created by J. Welles Wilder Jr. in 1978. The difference lies in calculation methods used by trading platforms: Wilder’s original formula uses his own smoothing technique (Wilder’s Moving Average), while some modern platforms implement ADX using standard moving averages (like EMA or SMA).
Core Concept- Inventor: J. Welles Wilder Jr. introduced the Directional Movement System in his book New Concepts in Technical Trading Systems (1978).
- Components:
- +DI (Positive Directional Indicator) → measures upward movement.
- –DI (Negative Directional Indicator) → measures downward movement.
- ADX (Average Directional Index) → measures trend strength, regardless of direction.
-
RE: Horizontal lines are not stopingposted in Questions & Answers
as i said and showed in my picture under the if trade will stop all blocks below running... how is that supposed to do anything if no trade is placed...when testing how things work the less used blocks the better...if this is just part of a larger project say what this is doing and why
-
RE: Calculate the sum of profitsposted in Questions & Answers
modify a variable to 0 - for each trade/position - check profit (>0) - formula block (add in loop trade profit)
-
RE: Calculate the sum of profitsposted in Questions & Answers
Yes but no because you didn't set the variable to 0 before starting the loop:

-
RE: Problem with adding volume to buy operationsposted in Questions & Answers
Both look the same so should work the same, try recreating the project from scratch, shouldn't make a difference, but worth a try. Create constantl as picture, then you can select number in multiple blocks, this will show up in your inputs, reducing how much you have to change:

-
RE: fxDreema based copierposted in Questions & Answers
This should work but the open price variable should be a string (a name you want to call the global variable), same name for sender and receiver. Value you are sending/receiving is stored in the global variable, not a local one, though you could send/receive local variable data, but it will be sent to the global
-
RE: Expiredposted in Questions & Answers
You can add a shared link to look at, but it should still work anyway.
-
RE: No Position Nearby filterposted in Questions & Answers
This will probably do it, under the condition is where you would do something like place a trade.
https://fxdreema.com/shared/gsxiiKgZc
