You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
I need to read up on MathFloor and your link there - this is all new to me and am struggling to understand it. Ill tackle it tomorrow.
Thanks guys!
Any ideas?
Am I missing something?
Whoops - yea sorted that lol. That hasnt changed anything though?
Am I missing something?
Why are you doing the following even if your OrderSelect() has failed ?
You don't close a pending Order, what did your error reporting tell you ?
I believe that you are attempting to select the same trade twice
shouldn't this just be "else"?
you may get conflicting messages if the first time you try to select the trade, it fails, but succeeds the 2nd time.
I'm getting a little frustrated with it... I keep getting "OrderModify error 1" - but I will look into that later. Other than that, nothing!I was under the impression that MathFloor just rounds the answer to whole number? So I am not sure if MathFloor is correct? The brokers I am using will use 0.01 as a lot-step... (IBFX to start with on the forward testing - so nano size)
I am not getting any error...
I'm getting a little frustrated with it... I keep getting "OrderModify error 1" - but I will look into that later. Other than that, nothing! I was under the impression that MathFloor just rounds the answer to whole number? So I am not sure if MathFloor is correct? The brokers I am using will use 0.01 as a lot-step... (IBFX to start with on the forward testing - so nano size)
I gave you code that will work, why aren't you using it ? why aren't you printing your variables to see what is happening ? you don't have an OrderModify() in the code you posted, how is it relevant ? as I already said . . . why are you calling trading functions that rely on OrderSelect() if the OrderSelect() has failed ?
Stop coding, look at your code, read through it line by line, understand what it is actually doing and if it's not what you intended then you have an issue you need to fix.
Does MathFloor round decimal places DOWN to the nearest WHOLE number?
Does FirstTarget make sense as a custom parameter within "OrderClose()" - Assuming "sizeClose" was correct? (see quoted code)
Your code did not help - sorry.
Can you print custom variables? If so, I must be doing it wrong as it is not showing up in the journal.
OrderModify is not relevant, you are right.