[ARCHIVE] Any rookie question, so as not to clutter up the forum. Professionals, don't pass by. Nowhere without you - 3. - page 463

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 don't know how to sum up (Close[1]-Open[1])+(Close[2]-Open[2]) etc. for N periods (applicable to the indicator).
Good afternoon. 2 questions with your permission:
1) OrderSelect(0,SELECT_BY_POS,MODE_HISTORY); - in this way will I select the order I just closed?
2) I wrote a pretty simple martingale based EA, it works fine in the tester, but when I run it on live charts, it only opens trades... What is the reason? Why does the EA perform well in the Strategy Tester, but works poorly on a demo account? The code is exactly the same
and what do you mean by period? N candles or N chart periods?
In N candlesticks. The idea is that by comparing the sum of the lengths of bullish candles and the sum of the lengths of bearish candles, in 30 (let's say) candles you can understand by code what type of movement it is.
Good afternoon. Two questions with your permission:
1) OrderSelect(0,SELECT_BY_POS,MODE_HISTORY); - so I will select the order I just closed?
2) I wrote a fairly simple martingale based EA, it works fine in the tester, but when I run it on live charts - it only opens trades... What is the reason? Why does the EA perform well in the Strategy Tester, but works poorly on a demo account? The code is exactly the same
1. Yes
2. What are opening trades? Maybe you don't have a CLOSE condition?
Hello!
Please help me out. I used this article https://www.mql5.com/ru/articles/1454 The Expert Advisor sends messages to Skype, but cannot send SMS to the phone (SMS sending error). Although, the SMS from Skype to my phone (without the Expert Advisor) goes well. What can be the problem?
Regards.
How does OrderSwap work, does this function just pass the swap value set by the broker, or does it add up all the swaps charged for each day's transaction into one amount?
This value is the amount of swaps accumulated by the order during its existence in the market.
I don't know how to sum up (Close[1]-Open[1])+(Close[2]-Open[2]) etc. for N periods (applicable to the indicator).
Something like this
For an indicator we can do things a bit differently
Can you tell me which function should close half of the order, OrderClose() or OrderCloseBy()?
And how do I calculate the percentage of volume?