Description changed:
Description changed:
Status changed from New to Fixed
@SortOrder(900000)
public class FiboNegater extends Negater {
public static final Logger Log = LoggerFactory.getLogger("FiboNegater");
//------------------------------------------------------------------------
//------------------------------------------------------------------------
//------------------------------------------------------------------------
@Override
public IBlock negate(NegatersList negatersList, IBlock block, int blockType, int returnType, StrategyBase strategy) throws BlockDefinitionException {
IBlock oppositeBlock = Blocks.getOppositeBlock(block);
if(!block.getClass().getSimpleName().equals("Fibo")) {
// it is not Fibo block, skip
return null;
}
// standard negation first
ParametersHelper.negateParametersInClonedBlock(block, oppositeBlock, negatersList, strategy);
ParametersHelper.negateDataSeries(block, oppositeBlock);
// now special Fibo negation
Fibo source = (Fibo) block;
Fibo opposite = (Fibo) oppositeBlock;
opposite.FiboLevel = 100 - source.FiboLevel;
return opposite;
}
}
Yes, most definitely the reverse of the Fibo indicator should be either drawn in reverse (drawn from Low-High / High-Low) or the levels need to be reversed (+261.8 / -261.8) in this way we can have symmetry for SL, traling SL, TP and Entries.
Here is another example: