Dislikedversion 3.3: implemented : Trailling STOP, Equity STOP Send Alert or CloseAll , After level change lot A to B or B to A, Max Lot Default setting is aggressive.Ignored
I compiled the file and corrected the cause of many warnings ("implicit conversion from 'number' to 'string' etc.")
Two problems for me:
- I renamed the global variable m_spread in m_spreadX, because warning "declaration of 'm_spread' hides global declaration..."
- In the xBest function, in the "Hedging" sequence, you calculate "m_spread= Spread * m_pip"
But this is a fix value "Spread=2.0" and not "Spread=MarketInfo(Symbol(), MODE_SPREAD)" like in the Informacoes() function.
(In live trading we have variable spreads).
In the xBest function I have made no change, maybe I miss something.
Attached File(s)
xBest_V3.3.1.mq4
81 KB
|
1,039 downloads
6