How to use Object Distance
-
HI Pros, I wanted to use the distance between object drawn (horizontal line) and Price as my basis of entry.
I tried many times but failed.
Thanks again n advance.
-
@marvinm Pink for each block->check distance block, in for each relevent settings for trade info required, check for each loop option top or bottom, with other in bottom or top, if you don't need trade info use market properties with out pink block.
-
@jstap Thanks.. Il have to experiment what yo are describing above. My mind is so slow.

-
@jstap Can you show it with a sample? Appreciate it.
Thank you.
-
@marvinm Put this into your project, if not working add a shared link.
-
@jstap I ddnt see any sample.

-
@marvinm You create the sample and I'll check it.
-
Ok sure. Will do
-
HI @jstap
Below is the sample.
https://fxdreema.com/shared/tWoAzP9eb
Thank you so much in advance.
Cheers.
-
@marvinm There is no check distance block in the project?
+50pips should be +50 pips
-
-
@marvinm By drawing a line at 1 it will be miles away from what's happening, why draw a line when you can juse put the settings diredtly into the check distance block, as is you don't have any settings that will allow this EA to work.

-
@jstap I wanted to get the moving average crossing price (not the candle price). That would be my base line. Is there a way other than drawing a line?
Appreciate your guidance.
Thanks.
Marvin
-
@marvinm Ma crossing current price? You don't to need to draw a line or check distance, candle ID0 close is current price, in a single condition block, ID0 X> MA will achieve this.
-
@jstap What you are referring is the price of the candle, what I want to get is the price line where the 2 moving average intersects.
-
@marvinm Then when MA cross do something, if as the cross happens (or on previous candle) do something, or save the price into a variable (don't think this is necessary.
-
@jstap i wanted to use it as a support/resistance. That is why I want to draw a line.
-
@marvinm Ok then to start get a line to draw when your condition is met, you can back test this to check it's working, once this works add other things in.