price is close to support or resistance before trading
-
I have many support and resistance lines on the chart. how can I have the ea check if price is x number of pips from one of my horizontal lines? i tried check distance but it doesn't seem to work
-
I don't know if you have a custom indicator or something else, but take a look at that "Adjust" field:

In it you can write something like +10pips, where "pips" is a keyword that fxDreema understands and turns 10 into something like 0.0001. This way you are adding 0.0001 to the value. -
I have horizontal lines generated by fxdreema. so I have the values in the form of variables and objects. I am still having trouble however having the ea identify when price is within x number of pips from the lines. I only want trades to open near the horizontal lines
-
Can you make a simple example that shows the problem? I can see your latest project, but it is big and also Buy and Sell blocks are disabled
-
I will try something soon. I am just wondering if I am using the check distance block correctly
-
Because you are working with objects, it's also important that they exist and they can be loaded. Are you sure that you can get their levels correctly? Hint - visualize these values with Trace or Comment blocks.