@trader-philipps I try to avoid them as well, but in this case it could be the most straightforward solution...
There's that name contains field, you could put your order ID there.

Best posts made by roar
-
RE: Store Trade Targets such as TP1, TP2, etc. *** SOLVED ***posted in Questions & Answers
-
RE: Lot Size Fibonacciposted in Questions & Answers
@cheaponreay01 Make these variables:

Now you can generate fibo numbers with this piece:

https://fxdreema.com/shared/pS0K9GwD -
RE: Lot Size Fibonacciposted in Questions & Answers
@l-andorrĂ said in Lot Size Fibonacci:
Ok. Now I catch it. But why calculating it every 3 ticks?
He wanted increase every 3 trades. Note that the tick filter doesn't count each "market tick", because it is not on top.
It only counts when the block is able to run its code -
RE: How to validate and reset conditions?posted in Questions & Answers
@traderline So the time between 2 condition passes must be less than 6 candles?
-
RE: close all when total profits reachposted in Questions & Answers
@trader-philipps just to illustrate where the "* 1 usd" will come into play, and that there you can also change the dollar amount to "OrdersTotal() * 2", for example.
-
RE: Open and Close on Crossing of Level Williams%Rposted in Questions & Answers
@kriordan By default, the indicators use ID 0 values - those change as the candle develops, and thus you cant always see the cross in the final value.
Its usually best to use candle ID 1 on all cross conditions. You can find the ID setting from the "More settings" button.
-
RE: How can I add a specific level to the moving average at fxdreema ?posted in Questions & Answers
@khalids222 You want to check if candle crosses 10-MA?
Don't use candle body size, or candle total size.
Those are sizes, not levels.If you want to take action when a candle touches moving average, a solution is to use two conditions:
if candle open > MA, then
if candle close < MA
-> take actionanother case:
if candle open < MA, then
if candle close > MA
-> take action -
RE: Candle Body Propertiesposted in Questions & Answers
@titangeorge This is pretty much how I would do it
-
RE: How to space out Trades in a Groupposted in Questions & Answers
@yarzu25 Use a counter block right before opening your trade. This opens a trade on every 3rd candle:

-
RE: Why doesn't my EA place trades when i use a negative (-) value for the MA shiftposted in Questions & Answers
@fxgjg Period doesnt matter, you must understand how the indicators are updated to the chart. Your EA is trying to make the comparison before the data is there (at current candle time):

-
RE: Get the balance from the history tab ?posted in Questions & Answers
@trader-philipps Oh, right, OrdersHistoryTotal() is the way to go here!
I was thinking about the total lifetime profit so that he could put AccountBalance() to OnInit tab and then run it again in OnTick to get the difference
-
RE: volatility fallposted in Questions & Answers
I dont speak elvish, but I think the RSI and stochastics indicators are very close to what is pursued here
-
RE: Plot horizontal line in specific value.posted in Questions & Answers
You must select a trade before reading its properties. So put the "for each trade" block before drawing the line.
-
RE: spread formatposted in Questions & Answers
Put the spread into a comment block and see what it outputs
-
RE: 3rd candle of the dayposted in Questions & Answers
@chicrala said in 3rd candle of the day:
Hi, how can I identify that "this is the 3rd candle of the day" to start an action (buy for example)?
Create a variable that counts candles, reset it once each day, then check if variable == 3.
-
RE: Obtaining 200 MA of OBV indicatorposted in Questions & Answers
@leventecsibi here:
https://fxdreema.com/shared/yZovgxaaeIt calculates the average for close prices, you can change the indicator to your liking, just remember to set the candle id and adjust like I did.
This is not the best solution, though, because on every new bar, the EA must calculate all 200 values again and again. If you want to get more efficient, learn arrays.
-
RE: Problem - Modify Stop to break even based on ATRposted in Questions & Answers
That pips away block always gives problems lol

Here's how to do it without the troublemaker:
https://fxdreema.com/shared/lmSgKgfhbThis also looks a bit like trailing stop, that block could be 3rd option..
-
RE: HOW TO USE ATR TO SET STOP LOSS? :-) Stay safe peeps!posted in Questions & Answers
@nico1397 open the adjust box and type this:
*1.5
-
RE: MQ4 EA -> MQ5posted in Questions & Answers
@cbot-0 just try it, 99% of the blocks copy without any error
-
RE: 3 questions about EAposted in Questions & Answers
Take this EA:
https://fxdreema.com/shared/hCsoFD9xb

I put it into a chart, it opened a trade.
Then I closed the chart, closed mt4, and then put the EA on again.
It does not open any new trades.
So the conclusion is that the EA does find its earlier trades
