A weird one, for sure... For some reason the V-tags don't work, but it compiles ok when using the whole variable names:

Posts made by roar
-
RE: Bug in PASS blocks replacing * with c:: in the codeposted in Bug Reports
-
RE: unmatched data errorposted in General Discussions
The EA is fine, the error comes from bad history data. Try testing only open prices
-
RE: AI for Expert Advisorsposted in Questions & Answers
@eklonsousa Yes, it is surely possible in fxdreema, but only via custom blocks, so the fxdreema software doesnt have much to do with it

-
RE: AI for Expert Advisorsposted in Questions & Answers
Probably not.. It's not related to fxdreema, so you could find more on the official mql5 forum
-
RE: Request/suggestion for "Close partially (group of trades)" blockposted in Questions & Answers
@l-andorrร
On Timer is similar to On Tick, the code just runs on every given time interval, instead of on every tick.
You can put the same blocks to On Tick as well.I used On Timer with 1 second setting to test the logic. It was late NY market session and there were no ticks happening, so On Timer was just a quicker way to test.
You can adjust the On Timer interval from the Project options

-
RE: Request/suggestion for "Close partially (group of trades)" blockposted in Questions & Answers
Here: https://fxdreema.com/shared/ZVBBYk4M
1st loop: calculate the total lot size of all trades
2nd loop: start closing trades by some order, profitable first in the example
3rd loop calculates the current total size -> when current size is less than 67% of the original, break the 2nd loop and everything stopsIt's just a rough example, not very optimized, in fact I'm almost ashamed of that garbage algorithm lol

-
RE: Pip awayposted in Questions & Answers
@setsuna
Pips away: how far should the current price be for an order (for example) to pass the condition
Slide order: it moves an existing order (or sl or tp) up or down, 100 pips for example.
It asks for the sell direction to clarify. Positive direction for buy is logically up, always, no need to ask. Positive direction for sell, however, can be up or down, depending on how you think about it. -
RE: Indicator applied to previous Indicatorposted in Questions & Answers
Never done it, it is possible, but quite difficult indeed....
https://www.mql5.com/en/articles/15I don't have the time to dive into this right now, maybe later - this has been on my bucket list, too
-
RE: Expert Advisor self terminated errorposted in Questions & Answers
@jzfusion
There is usually some other error in addition to "self terminated" - like not enough money, stop-out, 0 division or stack overflow.. -
RE: Do not open a new trade if one is already running with the same currencyposted in Questions & Answers
@mariofxn Interesting.. So does the EA open too many trades on the same pair or the different pair? Do you intend to open multiple trades?
Could you share a version of your project so I can troubleshoot? You get the shared link form upper left corner
-
RE: Adding text to a variableposted in Questions & Answers
@vendettafx You don't necessarily have to right-click and then select your constant - you can as well just write the constant as text, together with the multiplication sign. I think.
-
RE: Do not open a new trade if one is already running with the same currencyposted in Questions & Answers
@mariofxn
https://fxdreema.com/shared/Fo6LLNiCc
I changed the loop filters, seems working now - if GBPUSD trade is open, the bot will not open new EURUSD trades.The breakeven is still not implemented. I can't help with that right now, having a really busy week...
-
RE: how can i test mt5 for free as mt4 ?posted in Questions & Answers
@zackry Well thats a third option, who knows lol

I started with mt5 so naturally I think it is the simpler environment. You don't need to use cloud computing or to know anything about it... It sits there in mt5 as kind of an advertisement of the service
-
RE: Do not open a new trade if one is already running with the same currencyposted in Questions & Answers
@mariofxn When I put just that project to backtest, no errors.. Hope I'll remember to test this tomorrow, live market is just much easier
-
RE: Do not open a new trade if one is already running with the same currencyposted in Questions & Answers
@mariofxn Hmm, maybe the loop goes mad if there are no trades... Lets put a "no trade" block at the very top, and skip the whole checking process if there are no running trades
-
RE: Do not open a new trade if one is already running with the same currencyposted in Questions & Answers
This might work, can't test right now... At the moment it only tests the currency, breakeven condition can be added later
https://fxdreema.com/shared/Q63lqaJ2b -
RE: Adding text to a variableposted in Questions & Answers
@vendettafx
Maybe this gets you going
https://docs.mql4.com/strings/stringconcatenate -
RE: why do i get different results from different timeframes?posted in Questions & Answers
@ashley111 Seems logical to me... Test with M1, and when going live, also attach the EA to M1 chart to make sure
-
RE: Need some advice regarding thisposted in Questions & Answers
@zackry Thats right -
lotsize = (OrderLots()*losspips)/tpPips;
