Sorry, my code is a bit messy, but from what i can see is the below what needed correcting?
Although with this change it now doesn't take any trades...
if (Price >= SM && NumOpenLong <1 && rising(SM1))
{
Entry =(R3-50*PIP);
reverseLong(Max);
}
else if (Price <= SM && NumOpenShort <1 && falling(SM1))
{
Entry = (S3-50*PIP);
reverseShort(Max);
}
- Edit, what would be ideal is a debugger that could pick up on all my mistakes (such as incorrect bracket placing) so i can learn from them instead of having to ask here all the time