
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
Hi,
I calculate my trade parameters as follows:
The -20.0 on the entry price is to ensure that I am not too close to the Bid price, in reality this will be set to 2.0. Trade is triggered immediately on candle close, so I think I can get away with this.
Here is the code around OrderSend, I have put in extra tracing in an attempt to find the problem!
and here is what I find in the Journal when using Strategy Tester:
Firstly, I know I am not supplying any stops, that should be OK. I have tried amending the code to Normalised stops and targets with a 100 pip range just to make sure though; it didn't help :(
I think the problem could be in the value of the entry, but as you can see I have used NormalizeDouble. I am aware of the problem with Print() and that it uses a different precision unless DoubleToString is used, hence the 9889.7000000000001 in the print string above shouldn't be a problem.
Grateful for nay advice or assistance.
Thanks
Art