I have a problem when my EA places a pending order and my trade hits TP. I get lot size (0.01)* 5pips = 0.42 profit instead of 0.50. With JPY pairs its less 0.37 etc. Here is my code below, please help if you know the problem.
I tried changing Ask+ to something else but no luck.
Why are you expecting $0.50 profit for 5 pips? That would only be true for symbols ending in USD.
Different symbols may have different tick values.
I would like to add to Keith's post by saying that it also depends on your Account Currency as well, even for xxxUSD symbols.
So always evaluate your risk (and reward) based on the tick size and the tick value. Don't just assume those amounts.
Why are you expecting $0.50 profit for 5 pips? That would only be true for symbols ending in USD.
Different symbols may have different tick values.
I would like to add to Keith's post by saying that it also depends on your Account Currency as well, even for xxxUSD symbols.
So always evaluate your risk (and reward) based on the tick size and the tick value. Don't just assume those amounts.
MODE_TICKSIZE
&
MODE_TICKVALUE
??
Maybe its how I described my problem. When my EA places pending orders, my Take profit is too close, especially on JPY pairs. The way I see it, it's caused by the spread on different pairs.
Whatever problem you are having, you still haven't described it.
In your OP
I have a problem when my EA places a pending order and my trade hits TP. I get lot size (0.01)* 5pips = 0.42 profit instead of 0.50. With JPY pairs its less 0.37 etc. Here is my code below, please help if you know the problem.
I tried changing Ask+ to something else but no luck.
the only problem that you describe is that you are only getting $0.42 profit for 5 pips when you are expecting $0.50
That has been answered.
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
I have a problem when my EA places a pending order and my trade hits TP. I get lot size (0.01)* 5pips = 0.42 profit instead of 0.50. With JPY pairs its less 0.37 etc. Here is my code below, please help if you know the problem.
I tried changing Ask+ to something else but no luck.