@satoriforex2k18 what EMA, of the stoch or of price? The Moving average indicator only gives you price values, not indicator values such as stoch 90.
If you need EMA of the stoch data, you need to use custom mql4 code. (iMaOnArray)
@satoriforex2k18 what EMA, of the stoch or of price? The Moving average indicator only gives you price values, not indicator values such as stoch 90.
If you need EMA of the stoch data, you need to use custom mql4 code. (iMaOnArray)
@l-andorrà check this:
https://fxdreema.com/shared/xvIx8Yuge
For example, your symbol name might contain "URUS" and then something else. The EA will search through the available symbols and select first symbol that has this part in its name. In this case, the symbol will (probably) be "EURUSD"

Here's the mql4 functions:
https://docs.mql4.com/marketinformation/symbolstotal
https://docs.mql4.com/marketinformation/symbolname
https://docs.mql4.com/strings/stringfind
Naturally this approach might result in trading a wrong symbol, so be careful.
@shack11 we can store the 2 currencies into 2 variables, and then store the full symbol of each trade into 3rd variable, in a loop.
Then use StringFind function to search those 2 currencies from the full symbol string, for each trade.
The function returns -1 if it doesnt find a match.
https://docs.mql4.com/strings/stringfind
@freeflow here: https://fxdreema.com/desktop/
Only the log-in needs internet, rest works offline.
However, its an old version of the builder and not recommended to use.
@vincmcroom I cant see a problem here. Maybe try putting the buy/sell blocks one after another, not side by side.
The .ex5 doesnt give any clues, but the bot seems to be based on Delta Trend indi for direction and some oscillator for entry/exit...
https://www.mql5.com/en/market/product/50150#
Fractals dont work on Candle id 0. You need ID 2 or even 3, because the fractal needs to be completed before the arrow can appear at the top/bottom.
Also, when fractal arrow is not visible, the indicator value is 0. If you need to make a "below something" condition, remember to also make condition "fractal != 0"
Its not easy.
Trades often say "trend is your friend", but in my opinion, this doesnt apply to forex or EURUSD in particular. EURUSD very rarely has any trend, last one was 2017 and 2014 before that.
Buy low and sell high.
@hax thank you!
This looks quite good, I like this backtest graph. Wish I had better mt4 history data, though... Testing a trailing stop requires very precise tick data

edit: BT with every tick data:

It looks like you might be testing "Open prices only". That testing model is not precise enough for this application.
@luckybest ex5 is machine code, it cannot be directly translated.
If you share the ex5, I can try and guess how the mechanics are.
What are you trying to do, this doesnt make much sense:

@seemab like this:
https://fxdreema.com/shared/qnTaL0mXc
However, you will calculate all trades 2 times into C, because the continuation I talked earlier.
@rawad-0 ATR is not pips, its raw price value. Change the setting to Custom (price fraction)
@seemab you need A, B and C for that.
When a trade closes, put old contents of A into B. Then update A with new info. Then set C = A + B + C
@seemab again, why do you need this pairing of 2 trades? Try setting the bucket to only 1 trade, does that work for you?

@l-andorrà fractal indicator has a value for every candle, even if there is no arrow visible. That value will be 0, and naturally 0 is always below candle high.
This is why the correct way to use fractal is simply with condition:
fractal up/down != 0
@seemab said in Find orders:
@roar yes my goal is too get total profit in variable B, for top and bottom buy trades i am already getting there profit no problem for now.
I dont think you are getting the right profit amouts.
You need a nice pair of top and bottom trades, and then sum their profits:

But in reality, the "bucket of trades" will always take 2 history trades when some trade closes, so every trade will be recorded twice:
