2
by JohnnyRy
I see that your favorite indicator in your forum profile is Renko in MT4, and your OrderSend code uses NULL as the traded symbol. If you're running the EA on an offline Renko chart, I'm not sure if NULL as the traded symbol within the EA's OrderSend function will work. I also see that your Symbol() code seems to be working. Maybe try replacing NULL with Symbol(). Of course, you must have Offline Chart unchecked in your MT4 chart properties.
Also, I see that your code incorporates your stops (SL's and TP's) into your initial order. if you're trading with an ECN broker, your stops must be sent in a separate order modification after an initial naked order has been sent.
“[A]s we know, there are known knowns—there are things we know we know. We also know there are known unknowns—that is to say we know there are some things we do not know. But there are also unknown unknowns—the ones we don’t know we don’t know.”—Donald Rumsfeld, 2002