You know the saying of trying to run before you can walk? Choose 1 type, test on backtest, when working as you want, add the other. Then groups will separate the trade type.
Posts made by jstap
-
RE: Grid placing to many trades.posted in Questions & Answers
-
RE: Grid placing to many trades.posted in Questions & Answers
Ok you are using different groups, do you want pending trades to work as well as instant trades?
-
RE: Grid placing to many trades.posted in Questions & Answers
Change no position to position/order.

-
RE: Error on the Block "No Trade Nearby" that doesn't find trades that are actually nearby...posted in Bug Reports
The EA's magic number is stored in an int variable "MagicStart" you get current chart symbol with Symbol()
-
RE: Grid placing to many trades.posted in Questions & Answers
it's better to add a shared link rather than pictures, no trade(position)/order will work for both a running trade and pending order. On the on trade tab you will have purple blocks, when something happens like a trade opens you can delete pending orders
-
RE: MY QUESTION IS I WANT TO CALCULATE TOTAL SIZE OF LAST 3 CADLESposted in Questions & Answers
what do you mean by total movement? Candle size in pips/point all added together?
-
RE: MY QUESTION IS I WANT TO CALCULATE TOTAL SIZE OF LAST 3 CADLESposted in Questions & Answers
you can select total or body, like picture

this will show how to check the last closed candle size compared to the 3 before

-
RE: Creatingposted in Questions & Answers
well Peter, that doesn't help fine out why, say what seems to be the problem and add a shared link to look at the project
-
RE: Grid placing to many trades.posted in Questions & Answers
Light pink need a dark pink for each block first, put your once per bar under blocks that check for something, if position will look for running trades, not pending orders, maybe add another light pink "once per position"
-
RE: Enum day of weekposted in Questions & Answers
You could also create an enum and select it that way, have a good weekend:

-
RE: Enum day of weekposted in Questions & Answers
Constant should be an int, and call the full function in code input:

-
RE: How to Store ATR Value as a Price Fractionposted in Questions & Answers
It is ATR divided by price:

-
RE: PIntroducing a new user to the fxdreema community + problem with EAposted in Questions & Answers
Add a shared link to see what you are doing, any once per bar needs to go under the conditions that create a trade, if 1st then once per bar will activate before the conditions to create the trade are checked to see if they are right.
-
RE: How to get price range from highest price and lowest price in specific time rangeposted in Questions & Answers
NormalizeDouble() is a standard metatrader function, all can be used in FX, google or any AI platform will show you these, this will link you to a conversation talking about using the side of FX that is not so obvious...
-
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: I want to convert points into pips.posted in Questions & Answers
miro hasn't been on these forums for years, he likely got this function from the .mq code you can get from project screen, then red and searched. There is no file/place containing this information, that I am aware of.
-
RE: HOW TO CALCULATE PROPER RISK based from the Distance without STOP LOSSposted in Questions & Answers
Never done this so I can't really help you with this, I always use a stop, there is an option in FX blocks as picture, test with bigger numbers, to risk 1% of account you will need to use a number more like 100 or even 1000.

-
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..
