via custom code you can do pretty much everything!
@bk7 how much for predict the future market price? 
@umbrellamaker i saw you have put a buy limit of 100 LotSize (one hundred), maybe this could be the problem? Maybe the instrument properties don't allow this big size.
Ops, never mind. (EDIT)
@vonmunchy are you using the right buffers?

@vonmunchy have you already read the instruction? https://fxdreema.com/howto#Constants-and Variables
this is just an example

@vish said in How to get the EA to trade on indices?:
@ambrogio Thank you very much. Do I have to add each of the index or is there way to add all?
What if I add like this in a single line 0.01 = 0.1 ? Uhm...i don't know
Also how do I add pip size for crypto pairs like BTCUSD? It's two digit, so the same BTCUSD = 0.1

@andrew-8 there is nothing to fix at all. I think it's very helpful to read these two articles (there are many more on the MQL5 site) to understand what it means to run the backtest in the various options available on MT5.
https://www.mql5.com/en/articles/2612
https://www.mql5.com/en/forum/190852
@zhahz this works https://fxdreema.com/shared/OUjEi2Hcc
by increasing cross width area and by putting a no trade block at the top like @jstap has suggested
This is not the first time that I have to increase the area, even on the crossings of moving averages. In the past the administrator @Fxdreema could not explain why this malfunction (never happened on MT4)

@zhahz It works for me. Check the journal for any errors.

@zhahz If you copied and pasted the @jstap project you probably lost the variables. Do not copy and past, save directly on the terminal the projects of @jstap and mine (mq5 and ex5 also), and refresh the terminal or restart it.
@ontradingx said in Trailling using Money:
Hi friends, can someone give me an example of how to build a Trailling Stop that works with amounts of money correctly and that works:
I'm trying to create the following:
When the total profit reaches 50$ guarantee me a 10$ profit and from then on I guarantee every 10$ earned.
So in a nutshell.
Profit achieved: 50$
Reserved profit: 10$When the EA sees in the sum of the profits the value of 50$ it will guarantee me the 10$, if the price comes back it will not give me less than 10$.
When the EA hits $60 then it will guarantee me a $20 profit.
That's how I understand it works.
Can anyone tell me if the way I'm doing it is correct and if not maybe give me an example?I created this project to try to understand how it works.
https://fxdreema.com/shared/RgolfJA2d
Try this way

@alphaomega said in higher high long lower low short EA:
@ambrogio I totally agree with you, but you cannot say ID0 does not exist. @jordanburch is working on M1 chart so the ID0 will play an important role considering where PA is moving. He should consider using MA-crossover or candle volume to bring the ID0 into play?
edit:
This is ID0 orders... the current candle is still deciding where to go. IMO I think its important when using time frame M1 to consider ID0 in finding the HH or visa versa
I'm sorry to contradict you but this is not my personal opinion, it's called technical analysis. What you mean you can do with a condition "bid > candle close ID1", but not "candle close ID0 > candle close ID1". Below I took the first condition from your project, you need to note all false signals and even the total lack of signals.


@eren-0 and here in the tester you can allow buy or sell or both

@gtoat777 in the type of constant write ENUM_TIMEFRAMES

you can also find more on the forum typing Enumeration
@gtoat777 Yes, this is what you will see on MT4 if you make the example I showed you above:

@andrewfrank the spread on MT4 is always in points, means 1/10 of pip
