@migen take the darker condition block and do this:

Best posts made by roar
-
RE: How to set condition - 5 Variables values equal 7posted in Questions & Answers
-
RE: Rsi Divergenceposted in Questions & Answers
@pippusher618 here's an example project:
https://fxdreema.com/shared/2HpRtQ8PbHowever, an EA will sometimes find divergences in unexpected places, because you only see the profitable ones.
-
RE: add ATR on TP or SLposted in Questions & Answers
@darazarbaf yes, use the Formula block for the calculation
-
RE: How to write condition OR with "darker condition block"posted in Questions & Answers
@migen This should work
(D1 > D11 || D1 == 7) && (D2 > D22 || D2==7) && (D3 > D33 || D3==7)

-
RE: How to write condition OR with "darker condition block"posted in Questions & Answers
@migen I'm not sure, but generally a logical TRUE is equal to numeric 1. So you could try just replacing && with + sign:
variable = (D1 > D11 || D1 == 7) + (D2 > D22 || D2==7) + (D3 > D33 || D3==7) -
RE: Indicators inputs are appearing without indicating thatposted in Questions & Answers
These tick marks makes the values appear. Untick them. Also, the brown things are constants, not variables. You cant change constants in "modify variables".

-
RE: help with my EA pleaseposted in Questions & Answers
@abderrahman this is impossible. A straight line balance always means that the system works only on history data, not in future.
You cant optimize this on other pairs, you cant trade this, not even on EURUSD. Its best to move on and find a more realistic strategy, a strategy that doesn't require 100% winning trades.You probably wont believe me, I'm just trying to save you some time..
-
RE: help with my EA pleaseposted in Questions & Answers
@abderrahman I hope you succeed, however unlikely it is

Please consider the short backtest period as well. I would bet any amount of money that this same EA will erase the account if tested on EURUSD from 2019.01.01 to today. -
RE: making a trade immediately in the first second after running EAposted in Questions & Answers
@rajab you are asking your EA to trade if CCI is above 65, and also trade if CCI is below 65.
Of course it will trade immediately, one of the conditions is always true.
-
RE: How to get only the MACD histogram?posted in Questions & Answers
@sonixhd3 I think this is what you need:

-
RE: How to get only the MACD histogram?posted in Questions & Answers
@sonixhd3 the histogram is "main line" in fxdreema. You can also set "cross above" instead of "is above", as is in my picture.
-
RE: Hot Keys for buying?posted in Questions & Answers
@dan-2 On Chart tab will get you started, I don't know any more about it

-
RE: Need help MACD EA wont workposted in Questions & Answers
@sonixhd3 don't see the error, but let me build you a more optimized version, maybe it works
-
RE: Need help MACD EA wont workposted in Questions & Answers
Here: https://fxdreema.com/shared/Zfrd2IUBd
Tips:
- you dont need group numbers if you have only one entry logic for a direction (sell or buy)
- you can "set current timeframe" in one block above the others
- define constants for macd input parameters, so you can change them for all blocks at once:

- (apply the constant by right-clicking, or just type its name in the field)

-
RE: Need help MACD EA wont workposted in Questions & Answers
@sonixhd3 to speed up optimization, you can use open prices modelling, because your system is based on "once per bar" logic. Also remember to use genetic algorithm.
My thoughts on the system itself:
-
Trading 1-minute chart will be tough. Your win-loss ratio will be very close to 50:50, maybe 51:49, but commissions will take a big piece from both trades, wins and loses. I'd consider M5 or even M30. I target around 200-500 trades per year (on netting account).
-
Also, MACD system could use some volatility filtering, for example ADX. Myself I prefer to compare the ratio between 144-ATR and 13-ATR, but thats bit more technical to set up and read..

-
-
RE: Need help MACD EA wont workposted in Questions & Answers
@sonixhd3 open the navigator pane in mt5 and just drag and drop indicators in the same window. Then go to indicator properties and set scale to "Inherit scale".
This is just a visual thing for planning the EA, there is no technical difference whether the indicators are in same window or separate. Fxdreema-made EA will always draw the indicators in separate windows.Hope you arent angry because of my beginner questions.
Its no problem lol
-
RE: How to set/check a time stamp or candle IDposted in Questions & Answers
@ikarus_ said
Just one thing from the moment the candle close was above the tenkan sen Line it should always close above.
So the condition is "each of last 30 candles are above tenkan-sen"?
Then use the loop to try and find a candle that doesnt meet the condition -> now set your tracking variable to FALSE. The logic flow continues to next stage only if the variable keeps its TRUE value throughout the whole loop. Hope you get what I mean...Also the Loop conditions have to always be on Tick right?
Not necessary.. As long as you can activate the loop (using OnTick, OnTrade, OnInit, whatever), it will surely do its thing.
-
RE: How to set/check a time stamp or candle IDposted in Questions & Answers
@ikarus_ Your example is missing all variables - you need to declare them yourself, exactly as is shown in my pictures above.
I don't know any great learning source, my style is to try and fail, learn that way...
Well, Miro has created a loop tutorial but that uses the actual, official loop block, I didnt.
http://fxdreema.com/forum/topic/4510/tutorial-loop-advanced-find-and-save-specific-value-from-indicator-historyBy the way, you can reset your block IDs from "Project Options"

-
RE: Check Candle 1-5 if Price was higher then MAposted in Questions & Answers
@siggi12345 sure!
To operate our loop, we need to first create 2 variables. The variables menu opens from the top of blocks list.

The idea in my loop is to first set some boolean variable ("success" in the example) to TRUE, and then loop through all 5 candles -> if some of them breaks our condition, the variable is set to FALSE.
After the loop, we can simply check if our variable has stayed TRUE, which would mean that all conditions were ok.
https://fxdreema.com/shared/6Zmxnuj6cEdit: wrong pic
-
RE: How to set/check a time stamp or candle IDposted in Questions & Answers
@ikarus_ yeah looks ok, but because of the missing variables, cannot see the variable modifications (in right-side of blocks) which are critical for the logic
