update
This commit is contained in:
parent
2bcda92196
commit
a43f4b77dc
1 changed files with 6 additions and 2 deletions
|
|
@ -277,21 +277,25 @@ export class IndicatorService {
|
|||
candles: Candle[],
|
||||
eventHandler: EventHandler
|
||||
) {
|
||||
if (analysis.isTouch200 && analysis.emaDirection === "Bullish") {
|
||||
if ((analysis.isTouch200 || analysis.isReverse200) && analysis.emaDirection === "Bullish") {
|
||||
const order = this.makeOrder(analysis, candles, "buy");
|
||||
eventHandler.onBuy(order, "Follow trend EMA Touch 200");
|
||||
return;
|
||||
}
|
||||
if (analysis.isTouch200 && analysis.emaDirection === "Bearish") {
|
||||
if ((analysis.isTouch200 || analysis.isReverse200) && analysis.emaDirection === "Bearish") {
|
||||
const order = this.makeOrder(analysis, candles, "sell");
|
||||
eventHandler.onSell(order, "Follow trend EMA Touch 200");
|
||||
return;
|
||||
}
|
||||
if (analysis.isMacdCrossUp && analysis.emaDirection === "Bullish") {
|
||||
const order = this.makeOrder(analysis, candles, "buy");
|
||||
eventHandler.onBuy(order, "Follow trend MACD Cross Up");
|
||||
return;
|
||||
}
|
||||
if (analysis.isMacdCrossDown && analysis.emaDirection === "Bearish") {
|
||||
const order = this.makeOrder(analysis, candles, "sell");
|
||||
eventHandler.onSell(order, "Follow trend MACD Cross Down");
|
||||
return;
|
||||
}
|
||||
|
||||
if (
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue