I would like to be able to check if a buy/sell stop exists so i can run my cancellation loop below.
I know i can check if there is a long opened using Market.position....... but how can i check if there is a Stop entry order active? I cant have the loop running all the time without checking as i will get unecessary dots drawn everywhere. The dot is there to show me when the Stop order is deleted.....
if ("Buy Stop exists" )
{
if ("Condition that needs to changed to cancel order goes here")
{
ExitLongStop(LastLong, "Long Break");
DrawDot("Long Break"+CurrentBar,true,0, StopLevel ,Color.Red);
Print("Buy Stop Cancelled");
}
}
Please help.
Thanks in advance.

Comment