Very Simple - Draw line x Pips from entry price
-
Hi there. I am starting off with a very basic project which is - for each existing trade draw a horizontal line 41 pips (410 points) away from the entry price.
https://fxdreema.com/shared/cQlJw3hYd
I am sure my error is quite basic but I cannot get the line to draw. Can anyone help? Thanks in advance.
(I know the calc will be different for buys/sells but at the moment I just have one active buy so I am testing this before I go any further).
-
All those blocks should be moved to the 'on tick' tab and additionally you should use a pink 'once per trade/order' block below the 'for each one'.
-
@l-andorrà Thank you, sir. I have incorporated the changes, as you suggested:
https://fxdreema.com/shared/LEXq8oydd
When adding to my chart I am still not getting the lines. Is that because the market is closed and therefore not generating any ticks?
-
Yes but you can just back test. Also you need to place a trade for the pink blocks to work.
-
@jstap thank you. I checked “yes” on “allow this block to work with trades created before this program was added” so I think that should pick up existing trades. Is my understanding correct? If not, how can I make this work with existing trades? Thank you!
-
If the trades are running, select in groups all manually opened and ea trades.
-
@jstap are you able to give me an example as to where that block might slot in? Thank you.
-
The setting is in most blocks.
-
@jstap thank you. I found it.
Unfortunately the EA only draws one line for first first buy and sell, and subsequent orders do not get any lines. It looks like it only picks up the first buy and sell order, instead of looping.
Is there something I am doing wrong?
-
Is this block redrawing the line? so yo always move the 1st line...

-
I am trying to achieve one line per trade. I have a number of active trades so there should be a handful of lines at any one time. Both buys and sells.
(I had been playing around with the yes/no questions in the first part of the block, but no combination worked.)
-
Try turning of this block can redraw
-
@jstap Whenever I have used this block, yes to redraw and off to per bar, means line will keep on redrawing, no to redraw, and yes to every bar, means lines will constantly draw.
-
I tried all combinations of those and it didn’t work unfortunately
-
Sorry mate, always worked for me.