The current implementation of the trailing stop uses the CMoneyTrailingFixedPips and modifies the pips every bar based on the ATR. The current default is a distance of 2.5 ATR from every closing price.
[ ] Subclass CMoneyTrailing and pass a handle of the ATR to the instance for direct access.
[ ] The m_money member of the Expert class is currently fixed to CMoneyTrailingFixedPips. This should be changed to be any CMoneyTrailing class.
[ ] The NNFX rules say that the trailing stop should only start trailing once we scaled out and the price closed >2*ATR above the entry price of the trade.
[ ] currently the shift value is not considered for the price. When testing on Open Price only the bid/ask price (OPEN) is used which may be effected by a gap.
The current implementation of the trailing stop uses the CMoneyTrailingFixedPips and modifies the pips every bar based on the ATR. The current default is a distance of 2.5 ATR from every closing price.
m_money
member of the Expert class is currently fixed to CMoneyTrailingFixedPips. This should be changed to be any CMoneyTrailing class.