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
Functions isCloseLastPosByStop() and isCloseLastPosByTake() do not always work correctly since the order close price and TakeProfit do not always coincide. I have redone it in mine. I've replaced the condition of equality of these values with the condition: the absolute value of the difference of these values (at 5-bit quotes) must be less than 5*Point.
I have set <= slippage(40*Point), but sometimes that is not enough.
I set mine to <= slippage(40*Point), but sometimes that's not enough.
Maybe the criterion should be profit or loss? I just recently put one EA on real, which uses these functions. It worked in the tester, but does not want to do it in the real account. I figured out that the difference between stoploss and close price is 2 five-digit points. That is why I have set 5 points.
Maybe the criterion should be profit or loss? I just recently put one EA on real, which uses these functions. It worked in the tester, but does not want to do it in the real account. I figured out that the difference between stoploss and close price is 2 five-digit points. That is why I have set it to 5 points.
Good day all!
Please tell me if you can change the value of MAJIC NUMBER in an order which has already been closed and appears in the list of closed orders.
I.e., change the value of MAJIC NUMBER after the order is closed.
If it is possible, then which function should be used to change it. I did not find such a function in Kim's work.
Thank you.
Good day all!
Please tell me if you can change the value of MAJIC NUMBER in an order which has already been closed and appears in the list of closed orders.
I.e., change the value of MAJIC NUMBER after the order is closed.
If it is possible, then which function should be used to change it. I did not find such a function in Kim's work.
Thank you.
If you want to open a new order, you should select this order from the history, take from it what you need: type of trade, volume, etc. And then through the conditions of opening an order or setting a pending order you have to enter another magis with the parameters that you took.
There doesn't seem to have been a conversation in this thread for a long time.
There are other threads.
The GetAmountLotFromOpenPos() function.
This function returns the sum of lots of open positions. A more accurate selection of positions to be taken into account is specified by external parameters: