Hello. Please explain what "uncomment the lines" means
It means: lines in the code are commented out - that is, the code is temporarily commented out: now a few lines of code is a simple text comment. Was code - became a comment in the code (just text).
Uncomment, means:
was
ExtStopLoss = InpStopLoss * m_adjusted_point; ExtTakeProfit = InpTakeProfit * m_adjusted_point; ExtTrailingStop= InpTrailingStop * m_adjusted_point; ExtTrailingStep= InpTrailingStep * m_adjusted_point; //m_trade.Buy(2.0); //m_trade.Sell(1.0); //--- return(INIT_SUCCEEDED); }
must become:
ExtStopLoss = InpStopLoss * m_adjusted_point; ExtTakeProfit = InpTakeProfit * m_adjusted_point; ExtTrailingStop= InpTrailingStop * m_adjusted_point; ExtTrailingStep= InpTrailingStep * m_adjusted_point; m_trade.Buy(2.0); m_trade.Sell(1.0); //--- return(INIT_SUCCEEDED); }
Thus, if you uncomment the lines, you can see in the strategy tester how the Expert Advisor works visually.
Okay, thanks. Except it's not working for me in real time. I installed it as usual and there is no action. The only entry in the log is that the EA is loaded and that's all.
More details, please.
- What exactly and where does not work?
- Are the lines commented out or commented in?
- What do you do BEFORE starting the EA: are there any other positions open?
More details, please.
- What exactly and where is not working?
- Are the lines commented or uncommented?
- What do you do BEFORE starting the Expert Advisor: are there any other positions open?
The Expert Advisor does not set the SL,TP set in the parameters. I did not change the lines in the Expert Advisor. At the moment there are open positions on two pairs and all with zero SL,TP. Before launching I set the desired SL,TP, trailing 0 in the parameters.
First read the description:
The Expert Advisor works for all positions on the current symbol - the unique identifier (magic) is not taken into account.
First, read the description:
The Expert Advisor works for all positions by the current symbol - the unique identifier (magic) is not taken into account.
Could you please explain what "by current symbol" means? It seems that I have tried everything and nothing, although I have been using similar Expert Advisors on 4 for a long time and without problems.
The current symbol for this EA is the symbol on which the EA is running.
The current symbol for this EA is the symbol on which the EA is running.
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
TP SL Trailing:
Stop loss and take profit initial setting. Trailing.
Author: Vladimir Karputov