I need a check whats based on bulls and bears.
I have the basics already:
extern bool EnableBull = True;
int BullSignal = EMPTY_VALUE;
//BULL
if (EnableBull==True) {
//check1 needed
BullSignal = OP_SELL
} else {
BullSignal = EMPTY_VALUE;
}
I need now add the commend of check needed the following.
When there are 4 or more bullish candles after each other.
And after those 4 or more bullish candles must be 1 bearish candle, when this bearish candle is closed it needs to open an Short trade.
In this picture you see an example:
http://www.fabje.eu/bla.png
1: Bullish Candle number one
2: Bullish Candle number two
3: Bullish Candle number three
4: Bullish Candle number four
5: Bearish Candle
6: Open Short
The code should be something like this I think:
If (bull1 = true) && (bull2 = true) && (bull3 = true) && (bull4 = true) && (bear = true) {
BullSignal = OP_SELL
} else {
BullSignal = EMPTY_VALUE;
}
Someone here that can help me with this?
I have the basics already:
extern bool EnableBull = True;
int BullSignal = EMPTY_VALUE;
//BULL
if (EnableBull==True) {
//check1 needed
BullSignal = OP_SELL
} else {
BullSignal = EMPTY_VALUE;
}
I need now add the commend of check needed the following.
When there are 4 or more bullish candles after each other.
And after those 4 or more bullish candles must be 1 bearish candle, when this bearish candle is closed it needs to open an Short trade.
In this picture you see an example:
http://www.fabje.eu/bla.png
1: Bullish Candle number one
2: Bullish Candle number two
3: Bullish Candle number three
4: Bullish Candle number four
5: Bearish Candle
6: Open Short
The code should be something like this I think:
If (bull1 = true) && (bull2 = true) && (bull3 = true) && (bull4 = true) && (bear = true) {
BullSignal = OP_SELL
} else {
BullSignal = EMPTY_VALUE;
}
Someone here that can help me with this?