@crazycnw
Nice project, has lots of interesting variables.
"No horizontal line drawn on the chart [counts] as a buy or sell order."
Based on the project title, I'm assuming you will manually add a horizontal line on your chart. This line will be called "buy"
If correct, you will have huge problems.
First, on EVERY TICK, every time the ASK is above the line, it will endlessly create pending orders in a grid. You need to fix that by putting a filter. "Once a day" "Once every bar" "Counter: Pass Once"
Same for SELLS
As for "no horizontal line drawn" counts as a buy or sell order. You don't seem to have any condition blocks that match your description.
Your EA will ONLY work once a line named "buy" is placed on the chart.
On your "on chart" it looks like you're trying to delete the line. Not sure if it will work, simply use the "delete object" block and put in the Name/Prefix section "buy"
Quick Tip. When working with multiple rules, try to make it easier for you to understand by creating areas. See attached. I circled the line and Delete object blocks because I think that's what you're trying to achieve. 0_1582742420147_fxDreema.PNG