I have just find out - Market Properties / Highest Price (Candles Period) in Condition block.
Posts made by migen
-
RE: How to find Highest / Lowest in a period (eg. 2 days, 3 days..)posted in Questions & Answers
-
How to find Highest / Lowest in a period (eg. 2 days, 3 days..)posted in Questions & Answers
I need to find Highest and Lowest price in a period, example : Highest / Lowest in 2 days, 3 days... and put it in a variable to do comparison in Condition block.
Example Highest and Lowest in 2 Days
Put Highest in H2 variable
Put Lowest in L2 variableBut I still don't find how to do that, do you have any suggestions ?
-
RE: How to write condition OR with "darker condition block"posted in Questions & Answers
@roar Thanks!
I have another question : If I want to count how many conditions are valid (I'm using variable to count), how to write conditions separately in "darker condition block" ?
With example above:
"D1 > D11 or D1 = 7" ; "D2 > D22 or D2=7" ; "D3 > D33 or D3=7"
I just need to remove && symbol, is it right ?
(D1 > D11 || D1 == 7) (D2 > D22 || D2==7) (D3 > D33 || D3==7) -
How to write condition OR with "darker condition block"posted in Questions & Answers
My condition is: example - there are 6 variables D1 D2 D3 -- D11 D22 D33
"D1 > D11 or D1 = 7" and "D2 > D22 or D2=7" and "D3 > D33 or D3=7"
How to write these condition correctly in "darker condition block" ?
-
RE: Display current profit/ close profit (money) of EAposted in Questions & Answers
I have just found out how to display profit of the running EA

-
RE: Display current profit/ close profit (money) of EAposted in Questions & Answers
@seb-0 said in Display current profit/ close profit (money) of EA:
@migen
You can backtest it, however the results of tests will always be different from reality, you can't be 100% sure that an EA will be profitable in the future.
Further going, you can check @roar tutorial : https://fxdreema.com/forum/topic/9406/tutorial-test-eas-like-a-pro/11Maybe I'm not good at writing English. What I want is displaying info (running profit/closed profit by this EA - by unique magic number) on the Chart - such as comment block there are Trade Statics "Gross Profit" - however, I don't know how to display it on the chart correctly.
If it's possible, I want it only calculate the trades - recognized by unique magic number - that opened & closed by the EA (there are some EAs running in the terminal - running live trade - I want each EA displays it's Gross Profit so I know how each EA earn or not, instead of having to run EAs on different MT4 terminals )
-
Display current profit/ close profit (money) of EAposted in Questions & Answers
I intend to run some EAs in one MT4 terminal. However, I want to know if the EA earns or not.
How to display running profit / closed profit of the EA ?
-
How to set condition - 5 Variables values equal 7posted in Questions & Answers
I have 5 Variables - example V1, V2, V3, V4, V5.
I want to create a condition : V1=V2=V3=V4=V5=7 , then buy
How to do to set up this condition ?
Any suggestions are welcome.
-
RE: How to replace Variables (auto set/replace Variable) to compare (Condition block) ?posted in Questions & Answers

here is example project.
I have some EUR Conditions (day 1) then get result - Variable "EUR_1"
Same with day 2 ... day 15.then, if
Variable EUR_1>0
...
Variable EUR_15>0get result with Variable EUR.
My question : how to replace Variable EUR_1 with EUR_2... EUR_15 in Condition block EUR_1>0 ? So I just need 1 block without 15 blocks (for 15 days)
-
How to replace Variables (auto set/replace Variable) to compare (Condition block) ?posted in Questions & Answers
I see there are - Set "current market" for next blocks / Set "current timeline" for next blocks - to auto replace symbol and timeline in next blocks for comparing values with less codes.
My question : is there anyway to "Set Variable for next blocks" ?
Because I have 15 Variables (different values), it needs 15 group of blocks to compare them. While it just need 1 group of blocks with "auto set/replace Variable" to complete coding. -
RE: How to create exotic pair price such as XAUGBP ?posted in Questions & Answers
With MT4, it needs some codes to do calculation. And to build my EA, it needs a lot of codes to complete this EA (exotic pairs).
I just found out that I can create custom instrument such as XAGGBP with MT5, it is easier because I can have chart with the custom symbol.

Here is instructions for who need it : https://www.metatrader5.com/en/terminal/help/trading_advanced/custom_instruments -
RE: How to create exotic pair price such as XAUGBP ?posted in Questions & Answers
It seems I found it after searching forum.
Using formula block to do calculation.
-
How to create exotic pair price such as XAUGBP ?posted in Questions & Answers
I intend to compare prices of exotic pairs, however, my broker ICmarkets doesn't has enough exotic pairs.
Example : XAUGBP
Simply, I just has to do calculation in EA:
XAUUSD : GBPUSD = XAUGBPHow to do that calculation ?
Any suggestions are welcome.
-
How to set group number for a group of block ?posted in Questions & Answers
My big EA has many blocks. I want each of groups works independently by setting group number. However, there are a lot of blocks.
My question : is there anyway to set a group number for a group of block without entering number into each block (time-consuming task) ? -
Condition - Recalculate with the price at the time of all orders are closedposted in Questions & Answers
Always there is ups and downs in price. Sometimes it's up (profit) and then it's down, therefore I have to wait for the up price again.
Example:
I run an multi-currenies EA,-
it opens 3 orders after calculation :
Buy EURUSD
Buy GBPUSD
Sell GBPJPY -
I set the profit targer for the account is $50. The profit of the account reach $50 and it closed all open trades.
-
Then the EA uses the prices at the time of the trades were closed (at target profit - $50)
Question : How to set the EA uses the prices at the time of the trades were closed or when it reaches target profit $50 - to recalculate for the new trades ? Example with EURUSD pair ?
Any suggestions are welcome.
-
-
RE: Multiple EAs - how to place only 1 Buy or Sell of 1 symbol - or how to delete duplicate tradesposted in Questions & Answers
Thanks ! I have just builded the EA - close duplicate buy/sell of any symbol (here is all of symbols -28 pairs).

-
Multiple EAs - how to place only 1 Buy or Sell of 1 symbol - or how to delete duplicate tradesposted in Questions & Answers
I run multiple EAs (with diffrent inputs - It's too big to combine all EAs in one). I set that EA only open trade if there is no trade (Buy/Sell) for each symbol. However, maybe because of EA's acting too fast (5-10 EAs running at the same time), sometimes there are duplicate trade such as 2 Buy EURUSD.
Example : open trades:
2 Buy EURUSD
1 Sell EURUSDHow to delete 1 Buy EURUSD because of duplication ?
I think there are solutions :
- Combine all EA's input in one EA. However, it's too big to create one EA like that.
- Set EA running one after another (not running same time, like the second EA runs after the first EA finished). Is there anyway to set like that ?
- Create another EA to delete duplicate trades. How to build this EA ?
Any suggestions are welcome.
-
RE: How to run blocks in orderposted in Questions & Answers
Thanks @fxdreema
I have just done some changes, it seems works well, it takes some times to check.Here are my changes : blocks numbers and and Run Blocks.


-
How to run blocks in orderposted in Questions & Answers
Hi there,
I have some problem because EA should work :
- Using variables to calculate strength of currency
- Open or Close orders
But when the EA is calculating the strength of each currency, there is some delays , and it sometimes open before finished completed (results).
I can use time filter to put these blocks run one after one.
However, is there any other suggestion to run these blocks in order ?-
- Run and finish calculation of strength of each currency.
-
- Open order if condition is valid.
-
- Close order if other condition is valid.



I use Run Blocks, however, it seems while Ea is calculating, the EA also open&close in same time.

Any suggestions ?
-
EA calculates wrong results with JPY pairs chartsposted in Questions & Answers
Hi @fxDreema
I created EA to run on 28 pairs to measure strength of the currency.
There is something wrong that I can't find out the reason why.
Attached the EA to GBP, EUR,... charts (except related JPY pairs charts), I got same results.
Attached the EA to related JPY pairs, I got different results.
Sample EA.
https://fxdreema.com/shared/CL5q9EDye
It's really strange