you have to search for MathCeil and MathFloor
https://fxdreema.com/forum/topic/4454/draw-horizontal-line-and-calculate-round-numbers-from-open-price/3
Posts made by ambrogio
-
RE: MathRound questionposted in Questions & Answers
-
RE: Market Close Error MT5 Backtesting Solvedposted in Tutorials by Users
@forexbob-0 I always use the time filter with the times allowed by the broker, as outside those times, both in backtest and in real time, no order will be closed or opened. Using purple blocks limits the recurrence of the error but does not trigger out-of-hours orders since the "market closed" error appears immediately on the first attempt to open or close orders outside the broker worktime.
-
RE: Market properties highest price not working on backtestposted in Questions & Answers
@Tulefi said in Market properties highest price not working on backtest:
Trading USDJPY. Problem is still happening. Do you know if it is possible to force the EA to wait to do the calcs when say a min of one tick has happened in the current period? That way I can have confidence the EA will use the right data when live.
I don't know, and I don't see the use of it. However your project works fine I don't know where is the problem. This is a test on M15. It's working

-
RE: Market properties highest price not working on backtestposted in Questions & Answers
in any case you should test on M5 or M15 , since you are looking for values like + 19 pips on M1 (M1 candle on usdjpy is worth 3 or 4 pips, very small)
-
RE: Market properties highest price not working on backtestposted in Questions & Answers
also the spread filter
-
RE: Market properties highest price not working on backtestposted in Questions & Answers
Remove "once per bar" from the top and place it just above "sell now"
Check what happens and come back -
RE: Market properties highest price not working on backtestposted in Questions & Answers
@Tulefi the file doesn't work and cannot load also. Please share the link to your project as below
click on the link and copy/past the page of project
-
RE: Market properties highest price not working on backtestposted in Questions & Answers
can you share your project, i''l test it too
-
RE: Market properties highest price not working on backtestposted in Questions & Answers
strange, can you show your condition block?
-
RE: Fxdreema cant read indicator buffersposted in Questions & Answers
This indicator is based on fractal, so it lagging 3 candles I suggest you "indicator appear" block, buffer color, candle ID3
-
RE: Fxdreema cant read indicator buffersposted in Questions & Answers
@Mgame have you try "indicator appear" block? This is the right one for indicators that working with arrow.
-
RE: what wrong am i doing here?posted in Questions & Answers
@sumitkhavadiya your problem is the negative number

-
RE: Cant drawposted in Questions & Answers
@William-1 I also see that 1500 pips are much. If you mean points (and I'm pretty sure) you have to write 150 pips in the adjust field
-
RE: Cant drawposted in Questions & Answers
@William-1 start with two blocks only and test.
The condition block is better (for me) than "check distance", only write pips after 1500.
In the draw arrow block the first input must be a time (candle open is not a time), leave the parameter as default

