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
Thank you! I have uploaded the corrected version of e-TFL_v2 to the website.
I do not know... I have just finished testing this Expert Advisor on a NorthFinance demo. Yesterday I called my friend from Moscow. He complained about the same Expert Advisor. He says that it opens position by the line and then more and more until you stop it and opens many positions. Therefore, there were two objectives for testing:
1. Concerning your question. Check of general functionality.
2. On my friend's question. I opened only one position from one line.
To check it, I put e-TFL_v2 Expert Advisor on 5-minute timeframes EURUSD, GBPUSD, USDCHF and USDJPY. Using trend lines I drew channels on the last 20-30 bars. As a result, the Expert Advisor worked as it should. EUR has been bought from the bottom line, while JPY has been sold from the top one. For pound and chyf everything was correct too. So you should check it on your own. The Expert Advisor works.
Thank you! I have uploaded the corrected version of e-TFL_v2 to the website.
I do not know... I have just finished testing this Expert Advisor on a NorthFinance demo. Yesterday my friend from Moscow called me. He complained about the same Expert Advisor. He says that it opens position by the line and then more and more until you stop it and opens many positions. Therefore, there were two objectives for testing:
1. Concerning your question. Check of general functionality.
2. On my friend's question. I opened only one position from one line.
To check it, I put e-TFL_v2 Expert Advisor on 5-minute timeframes EURUSD, GBPUSD, USDCHF and USDJPY. Using trend lines I drew channels on the last 20-30 bars. As a result, the Expert Advisor worked as it should. EUR has been bought from the bottom line, while JPY has been sold from the top one. For pound and chyf everything was correct too. So you should check it on your own. The Expert Advisor works.
Maybe, I don't quite understand the EA logic, but it seems to me that if one line is used, the condition where the error occurred will be fulfilled and idPriceLevel() will set False. Explain, if I'm wrong.
if a single line is used, the condition where the error occurred will be met and idPriceLevel() will be set to False, and this will not open the position.
Yes, that is correct. The EA requires two lines for its normal operation: one line is above the price and the second line is below the current price. I have corrected the description on the website. Thank you!
if a single line is used, the condition where the error occurred will be met and idPriceLevel() will be set to False, and this will not open the position.
Yes, that is correct. The EA requires two lines for its normal operation: one line is above the price and the second line is below the current price. I have corrected the description on the website. Thank you!
That is why my position did not open, as I worked with one line. Everything is clear now. Thank you for your unselfish efforts. Your functions are very clear and clearly described. Perhaps most of our EAs, which are being developed now, will now use your functions.
Function ExistOPNearMarket().
This function returns a flag that an order or position exists near the market (at a specified distance in pips from the market). A more accurate selection of orders or positions to be checked is specified by external parameters:
Function ExistPosByPrice().
This function returns a flag for the existence of a position at a given open price. A more accurate selection of positions to be checked is defined by external parameters:
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:
GetIndexByTicket() function.
This function returns the index of the order or position by ticket. The more accurate selection of orders or positions to be searched is specified by external parameters:
Hello
I would like to know if you have a function for determining the correlation of two series passed to it as parameters?
Hello
I would like to know if you have a function to determine the correlation of the two series passed to it as parameters?
no... But I have an interest in this topic. If you provide the formulas to calculate the correlation, I will write the function.
ZS. I won't look for the formulas myself. I won't go to links with materials either. That is, I have no desire to understand the subject. There is only a desire to write a function using ready-made formulas.
Hello
I would like to know if you have a function to determine the correlation of the two series passed to it as parameters?
no... But I have an interest in this topic. If you provide the formulas to calculate the correlation, I will write the function.
ZS. I won't look for the formulas myself. I won't go to links with materials either. That is, I have no desire to understand the subject. There is only desire to write function on the ready formulas.
Correlation formula