Discussion of article "An attempt at developing an EA constructor" - page 2

 
Edviao #:

Hello Vladimir,

I have a question about "Pending Orders" and the corresponding "Maximum Spread" parameter in the 4.004 trading engine;


How long does this function wait for pending orders to be placed before the corresponding spread is reached?

In other words, if the spread does not decrease to the specified value after a certain period of time, won't the pending order be cancelled? How does this cycle work?

Will wait until the spread decreases to the value'Pending: Maximum spread ('0' -> OFF)'.

 

I generated an Expert Advisor in MT5, tested it in the strategy tester, it works fine. I put it on a demo account to see how it will work in the real market, but it has two unforeseen moments:

1. when switching to other timeframes, unlike other Expert Advisors, it immediately reverses the open position, because there are corresponding trading signals, but why then all other Expert Advisors did not have such a sharp reaction to the change of timeframe?

2. the EA trades, opens and closes positions, but there are no profits or losses in the trading history, where do the trading results disappear?

 

1. при переключении на другие временные графики он, в отличие от других советников сразу переворачивает открытую позицию, поскольку там соответствующие торговые сигналы, но почему тогда у всех других советников не было такой острой реакции на смену временного графика?

Switching the timeframe is tantamount to restarting the Expert Advisor. Accordingly, on a different timeframe, the Expert Advisor looks for trading signals in a new way. You should think hard before restarting the Expert Advisor :)

2. Expert Advisor trades, opens and closes positions, but in the history of trading there are no profits or losses, where do the results of trading disappear?

Do not open a trading account in fake currencies - open a trading account in dollars.

 
Also a lot depends on the trading signal itself - for example the signal on the MACD indicator crossing the zero line: I doubt very, very much that you will get an immediate trading signal after switching the timeframe. You need to reconsider your trading signal. Also, you should always scrutinise the parameters in the 'Additional features' block.
 
Vladimir Karputov #:

Switching the timeframe is tantamount to restarting the Expert Advisor. Accordingly, on a different timeframe, the Expert Advisor looks for trading signals in a new way. You should think hard before restarting the Expert Advisor :)

Do not open a trading account in fake currencies - open a trading account in dollars.

Currency pair EURO/DOLLAR

 
Vladimir Karputov indicator crossing the zero line: I doubt very, very much that you will get an immediate trading signal after switching the timeframe. You need to reconsider your trading signal. Also, you should always carefully study the parameters from the 'Additional features' block.

Moving averege and ParabolicSar trading signals

 
vjqgfhjkm #:

EURO/DOLLAR currency pair

I was talking about the currency of the trading account
 
vjqgfhjkm #:

Moving averege and ParabolicSar trading signals

Doesn't say anything.
 
I have already tried to generate MACD, but the results were not impressive, as well as on ParabolicSAR, you need to insert a lot of additional filters to it, but the automatic generator of Expert Advisors on MT5 does not give such an opportunity, and it is necessary to be able to collect the code of the Expert Advisor manually.
 
vjqgfhjkm MACD, but I was not impressed with the results, as well as ParabolicSAR, you need to insert a lot of additional filters, but the automatic generator of Expert Advisors on MT5 does not give such an opportunity, and it is necessary to know how to build the code of an Expert Advisor manually.

Are you sure you are talking about the article? Or are you confusing the article with the MQL5 Wizard?