What type are TradingComment, DI_Cross and CCI_Extreme? They all need to be strings. Is the order sent from the same function, or is it sent to a separate function which you may forgotten to include.
And please in the future put your code after clicking the SRC button on the toolbar so it's easier to read:
if (UseCCI == 1) // Enter CCI Long { if (ATR_OK == True && Swing_Ratio_OK == True && M01_ShortTrend != True && M05_LongTrend == True && M05_CCI_Long == True) Order = SIGNAL_BUY; // Enter CCI Short if (ATR_OK == True && Swing_Ratio_OK == True && M01_LongTrend != True && M05_ShortTrend == True && M05_CCI_Short == True) Order = SIGNAL_SELL; TradingComment = CCI_Extreme; }
Доброго времени суток уважаемые форумчане!
Меня зовут Герман, мне 23 года, я являюсь трейдером компании "Инстафорекс"
Помогите в поиске нужного скрипта! Скрипт нужен для сетки отложенных ордеров.
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 am using an EA that opens a trade based on four different entry criteria. I would love it if I could see which criteria was triggering the entry in the comments field. I am new to mql4 and am feeling frustrated. With the code being used below, either nothing or a "0" is printed in the comment field. Any help would be tremendously appreciated!!!
Here's my entry criteria
------------------------------
(UseDI_Cross == 1)
// Enter DI Cross Long
{
if
(ATR_OK == True && Swing_Ratio_OK == True && M01_ShortTrend != True && M05_LongTrend == True && M05_DI_X_Long == True)
Order = SIGNAL_BUY;
// Enter DI Cross Short
if
(ATR_OK == True && Swing_Ratio_OK == True && M01_LongTrend != True && M05_ShortTrend == True && M05_DI_X_Short == True)
Order = SIGNAL_SELL;
TradingComment = DI_Cross;
}
if
(UseCCI == 1)
// Enter CCI Long
{
if
(ATR_OK == True && Swing_Ratio_OK == True && M01_ShortTrend != True && M05_LongTrend == True && M05_CCI_Long == True)
Order = SIGNAL_BUY;
// Enter CCI Short
if
(ATR_OK == True && Swing_Ratio_OK == True && M01_LongTrend != True && M05_ShortTrend == True && M05_CCI_Short == True)
Order = SIGNAL_SELL;
TradingComment = CCI_Extreme;
}