Im having trouble with the above code working on a forex pair. I have looked & read a few posts about this & it all seems to make sense but when i apply it to a forex pair it doesn’t seem to have the effect of opening extra positions. I have tried running the code without the extra position & i get the same amount of trades. ie it doesn’t add more.
Am i missing something here?
Apologies if this has been posted before regarding forex. I have had a decent look & can only find posts relevant to shares. even still i have ran he math & it should enter a trade but doesnt seem to
Can’t help but notice you don’t mention (in order to rule it out as possible cause) having activated cumulating orders with the appropriate defparam line at the beginning of the code, so in absence of visibility of the whole code I have to ask just in case, do you have this line set on “TRUE” at the beginning of the code?
Yes that was it, thanks Noobywan. i changed it to false to see if something else was causing a separate issue & forgot to reset it (I feel a bit silly).
We use cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with it.