Hi folks,
I wish to set a stop loss which will set a stop for a long at a certain number of points ABOVE the level at which a trade is entered.
I know that sounds silly, but I have a good degree of confidence that when my system enters a long, it will not immediately fall below it, (but could do four or five bars later). I thus want to set a stop loss above the entry price (to cover transaction costs etc).
I guess the way to do this is to get the trade entry price and add x points to it and then trigger the stop loss close once the index trades ABOVE the stop loss number and then falls back below it ( but NOT to trigger a close if if it never trades above it - I have another way of dealing with that).
I do not want the stop loss to move - it should remain at a static level.
Can anyone help me with the code for that?
Many thanks advance.
Deax
I wish to set a stop loss which will set a stop for a long at a certain number of points ABOVE the level at which a trade is entered.
I know that sounds silly, but I have a good degree of confidence that when my system enters a long, it will not immediately fall below it, (but could do four or five bars later). I thus want to set a stop loss above the entry price (to cover transaction costs etc).
I guess the way to do this is to get the trade entry price and add x points to it and then trigger the stop loss close once the index trades ABOVE the stop loss number and then falls back below it ( but NOT to trigger a close if if it never trades above it - I have another way of dealing with that).
I do not want the stop loss to move - it should remain at a static level.
Can anyone help me with the code for that?
Many thanks advance.
Deax
Comment