@drankman that works. Your open price is a level, so SL must also be checked as a price level, not a pips value or price difference.
Posts made by roar
-
RE: Open Price=Stop Loss Priceposted in Questions & Answers
-
RE: modify take profit after entering operationposted in Questions & Answers
@slydexx try the pink "once per position" block as a filter.
-
RE: Avoid Range conditions for trend following setups onlyposted in Questions & Answers
@fifeivkbdedwcf ATR does not measure trend direction, it measures the average candle size. Candle size is a good proxy for volatility.
If you want to develop a range breakout strategy, you need more than ATR, maybe ATR and ADX combo.
-
RE: Prevent new trade positions from opening after the close to a profitable position.posted in Questions & Answers
https://fxdreema.com/shared/Ei2B83yne
Something like this. Note that EA can never prevent manual trades.
-
RE: Avoid Range conditions for trend following setups onlyposted in Questions & Answers
Forex can be traded 24/7, but there are undoubtedly quieter periods during the 24-hour day. Just put ATR to a chart and see how predictably the average volatility makes it cycles. Like a sine wave.

-
RE: Avoid Range conditions for trend following setups onlyposted in Questions & Answers
The problem with tight range breakouts, those "sqeezed springs", is that usually the "tightness" is only because quiet trading on a holiday, or early Asian session, basically when most traders are sleeping. It is usually not anticipation of big jump. So you need some kind of indicator that takes the expected volatility into account as well.
-
RE: Error in strategy testerposted in Questions & Answers
@B9dz well the LotStep variable has a value of 0, for some reason
-
RE: Confirm order with detailsposted in Questions & Answers
@Robo84 yes, you can do that in fxdreema. You just need to formulate the text section separately - use a custom mql code block and put the whole text into one string variable with a bunch of "\n" for new lines.

-
RE: Time filter question?posted in Questions & Answers
Time filter applies to the blocks you connect under it.
-
RE: Support Resistance based on Highest/Lowest Closeposted in Tutorials by Users
Impressive work, that takes a lot of dedication.
But I can't help myself saying, with some custom code knowledge you can do this in 5-10 blocks max

-
RE: Adjustable lot size calculation as inputposted in Questions & Answers
@BotondKing you need an enumeration, this may help:
https://fxdreema.com/forum/topic/16167/easy-way-to-make-enum?_=1696106877025 -
RE: Resolving the issue of the difference in calculated lot size in capital management 'Risk % of Balance (Volume size depending on Stop-Loss)' between 2 different brokersposted in Questions & Answers
And how about this?
https://fxdreema.com/shared/DprjQjg6cI'm just guessing, difficult to replicate your case
-
RE: Resolving the issue of the difference in calculated lot size in capital management 'Risk % of Balance (Volume size depending on Stop-Loss)' between 2 different brokersposted in Questions & Answers
@AlirezaTrade the math would add up with this new formula, not sure it applies to all cases: https://fxdreema.com/shared/MeB6yIyMd
-
RE: Compilation errorposted in Questions & Answers
It is about this constant. Did you copy the block from some other project, but didn't copy the constant?

-
RE: Resolving the issue of the difference in calculated lot size in capital management 'Risk % of Balance (Volume size depending on Stop-Loss)' between 2 different brokersposted in Questions & Answers
@AlirezaTrade that's interesting.
I added some prints to the EA, check out what values it prints to Experts:
https://fxdreema.com/shared/XDU7ADF9b -
RE: Resolving the issue of the difference in calculated lot size in capital management 'Risk % of Balance (Volume size depending on Stop-Loss)' between 2 different brokersposted in Questions & Answers
@AlirezaTrade you can try using a point value as SL, and then calculating the lot size "manually" in a custom block:
https://fxdreema.com/shared/OavmTKGic
The example uses 123 point SL with a 1% risk.
-
RE: Resolving the issue of the difference in calculated lot size in capital management 'Risk % of Balance (Volume size depending on Stop-Loss)' between 2 different brokersposted in Questions & Answers
The brokers differ in "Tick value" and leverage setting. So it would be normal that you get different lot sizes for the same "risk". If you let a trade go into SL, do you lose $60 on both accounts?
