Hope someone will please give me a hand with this one...
This script adds all 4 types of pending orders at a specific time around the open price of that time. (I'm there soon after that time to place the script every day) A red vertical line marks the time, a white dotted line marks the open price plus half the spread. The "inner pips" is how far the sell limit and buy limit orders are from the white line. The "outer pips" is how far the sell stop and buy stop orders are from the white line.
I finally got this to work correctly.. BUT sometimes I have to attach it a few times before my lines get drawn and/or my orders get placed. Sometimes the first time I add it, the price line and orders go in at the wrong price. Applying it again usually fixes it, IF it places the orders at all. My knowledge of code, so far, is basically getting done what I've got done so far
I've looked at other scripts and see that orders are placed multiple times till they get placed, but that's where I get a bit lost.. I use this script on 12 pairs with all different inner and outer distances, so can someone please help with this so the script will run correct the first time I drop it on a chart?? It takes long enough to go thru the process without doing it multiple times....
Thanks so much and appreciate ANY help!!!
Ralph