Buy Entry 1 pip above candle for confirmation
-
I wonder if someone can help me with this please. What I want to do is enter a Buy 1 pip above the last candle if the current candle goes above this value, then if the trade is not triggered wait for the next signal (which could be the next candle along, or may not be).
I have managed to set this up whereby Candle(0) Close > Candle(1) High and this works fine, however on the SP500 (due to the 2/3 pip increments) this will enter 2/3 pips above the high of the previous candle, whereas I would like this to enter 1 pip above, presumably by using a Buy Stop/pending order. But I am not having much luck in implementing this. I am loathe to miss out on 1 or 2 pips on each trade needlessly!
I understand that if the current candle opens above the previous candle that I will have to enter immediately (2/3 pips above) & would also like to implement this, however in most instances this does not happen.
Any help would be most appreciated.
-
You can see "Adjust" on many places (Condition block and Condition-like parameters in other blocks). Write there something like "+0.0001" or even "+1pips", and it will add this to the value (for example, it will add 0.0001 to the Close(0)).
-
Thanks Dreema, I have nearly got it working I think.
One final issue I have is that where I set for example a Sell Stop 1 pip below I want this to cancel if it is not triggered by the next candle. So I set the expiration as 5 mins (I am using 5M chart). However this does not always seem to work, sometimes it doesn't trigger the trade even though the next candle went lower & should have triggered the Sell.
I think this relates to me using 'On Tick', ideally I would like an option to just "Cancel after 1 bar" instead of "5 mins"
Any ideas where I am going wrong?
Thanks for your help.
-
In most cases there is a broker limit for the expiration time, I think it is 10 minutes. I will probably add artifical expiration time in future in case it is set below this limit.
-
Thanks, I'm not sure I follow, do you mean there is a minimum time of 10 minutes?
If so do you know any work-around to set my Sell Stop to cancel after 5 minutes, perhaps adding some variable in there?
EDIT - I think I can do this by implementing "Delete each pending order" to run at the open of the 2nd bar after my Sell Stop. Just need to figure out how to do it now

-
Yes, it is from the broker.
This can be workaround, under "on Tick":
Start pending orders loop > (in loop) Check trade/order age > (in loop) Delete pending order -
I've just tried this.... and it works a treat!
Thanks a lot for your help Dreema, you provide an excellent service here.
Cheers 8-)