Counting candles & pips gained vs pips lost New comment J Webster 2009.04.29 10:25 I want to design an indicator that tells me over, the current chart: - how many bear candles vs how many bull candles & - pips gained vs pips lost Any ideas how I would go about this? So, far I have: bool isBear(int shift) { if(Open[shift] > Close[shift]) return (true); return (false); } //+------------------------------------------------------------------+ bool isBull(int shift) { if(Open[shift] < Close[shift]) return (true); return (false); } //+------------------------------------------------------------------+ double BearCandlesCount = 0; double BullCandlesCount = 0; for(int i = 0; i < Bars - 1; i++) { if(isBear(i) == true) BearCandlesCount++; if(isBull(i) == true) BullCandlesCount++; } EURUSD - Trends, Forecasts and Implications (Part 1) bar up vs bull candle (bar down vs bear candle) "Trade initiated at" symbol on chart New comment
I want to design an indicator that tells me over, the current chart:
- how many bear candles vs how many bull candles &
- pips gained vs pips lost
Any ideas how I would go about this?
So, far I have: