Range Market Fining by an Object on Chart
-
Dear Friends,
Hi,
I learned to write an EA for finding the range market on the chart by drawing a rectangle on the chart.
I tried to write a code in order to prevent opening trades in the mentioned box but I failed to do this job.
Is there anyone who can help me or is there any idea in this regard?
https://fxdreema.com/shared/1iKFJDwRbwhy the below EA is not working properly?
https://fxdreema.com/shared/GgJofPW5eRegards
-
The problem is the rectangle. Instead of drawing a rectangle, you should select the time period and the price segment to avoid by using variables. That way you can save more than half of the blocks in both examples and make it work.
-
Thanks, brother
-
You're welcome.