Forum

Passing a local variable to an indicator buffer

Hey everyone, I'm fairly new to coding EA's and im just learning all of the workings of indicators and i've hit a roadblock with an indicator that i found and was tinkering with.. I was just hoping someone could point me in the right direction (been spinning my wheels for a couple days now). All i'm

Zero divide error

Hey guys, having a tough time sorting this one out, been at it a couple days now lol.. No matter which way i right the if statement i always end up with a zero divide , the error messages always seem to point back to the initial calculation itself (buyriskreward or sellriskreward). I guess i should

Try to figure out how to put my stop loss below my setup candle

Heyeveryone, i've been at this one for a couple days (im really new to coding) so long story short, bought a book, they give you a simple ea to work with, i've been tweaking and trying to code my own strategy into it (my manual one) and i cannot for the life of me get it to work lol.. all im trying

How to code price closing on a level??

Hey everyone, noob question lol been stuck for 5 days now: (in mql4) if i wanted to code price closing at a level say on a 20 period SMA, within plus or minus 5 points, how would i express that