stop loss
-
hi
how can i move stop loss x pips from on screen object.
eg i want to move stop loss 200 pips away when i move a horizontal line
i have tried modify etc and can only get it to object value. in the adjust tab i put 200 and stop loss still has object value.
l use slide pending order x pips from h line and need stop on open trades to do also.
adjust tab with on chart objects doesn't seem to work in any blockthanks
todd -
Objects are indentified by name. There are 2 ways to get some object to work with (you know that on the chart you can have maaaaany object, so really, one of them must be chosen) - to select the object by name (Pick by name), or to find an object by certain criteria using "Start chart objects loop" and then use "(obj loop)..." blocks or "Picked in loop" option in Condition.
So, when you use "obj loop" blocks, "Start chart objects loop" is needed! It must be there!
In Adjust what you write is just added to the value. If you write +200, then the value of 200 will be added. Note that 200 is 200, it's not pips, it's... apples.
Your project is a little bit confusing for me, so I can suggest to use "Levels tester" block to see some values in real time - for example Price 1 of some object. -
i use chart object by name and have tried in loop.
i trade with horizontal line placed at highs and lows of zigzag so i need stop loss to slide or modify x distance above or below my hline when i move hline to next zigzag
it only slides / modifies at hline price not +/- x distance away from hline to give some room to move
i dont understand what you mean by adjusts ...apples? -
Something like this?: http://fxdreema.com/shared/p8Kl1m5ye
(place horizontal line with name "sl")