@zxcsmith94 said in Closing trade based off different indicator:
You're referring to replicating the conditions where the first would be based off the cross of candle ID 1 and then the other pair of conditions would be based off the cross of candle ID 2?
No. What I mean is that all crossings should be defined as I suggested in order to avoid problem like the one you described.
Would you just do it for the crosses? Or for all the conditions do the same candle ID?
Initially for all crossings only. Then backtest it and if the problem persists, then all conditions should be treated the same way.
Do you see anything wrong with the closing perimeters? I have done the most basic form of closing indicators to test but I cannot seem to create the code to close at the right signal...
You closings are wrongly defined. Both blocks can close buys and sells at the same time. On block should close buys only and the other one sells only.
Hope it helps 🙂