256

i would like to add a new step-mode

like if last candle was bullish or bearish open new buy position / new sell position

something like:

addposmode==5 &&  Bid>=highestshort+pipstep && last-candle (1h timeframe) was bearsih

addposmode==5 &&   Bid<=lowestshort-pipstep && last-candle (1h timeframe) was bearish

i got that code:

```   if(addpositions)
{
{
double MA11 = iMA(Symbol(),PERIOD_H1,MV1,0,MODE_SMA,PRICE_CLOSE,0);
double MA12 = iMA(Symbol(),PERIOD_H1,MV2,0,MODE_SMA,PRICE_CLOSE,0);

&& (signalfilter==false || (signalfilter && ((reversesignals==false && signal1==1)
}
if(count(OP_SELL)>0)
{
|| Bid<=lastsellopenprice-pipstep*pt*MathPow(pipstepfactor,count(OP_SELL)))))

&& (signalfilter==false || (signalfilter && ((reversesignals==false && signal2==2)
|| (reversesignals==false && signal1==1)))))sell=true;
}
}
```
489

christion:

something like:

addposmode==5 &&  Bid>=highestshort+pipstep && last-candle (1h timeframe) was bearsih

addposmode==5 &&   Bid<=lowestshort-pipstep && last-candle (1h timeframe) was bearish

then you got the conditions already, what's the question ?

obviously to detect a bearish candle : its close price is lower that its open price. bullish : close is higher that open.

PS. what's highestshort and lowestshort ?

256

Code2219 or probably 2319:

then you got the conditions already, what's the question ?

obviously to detect a bearish candle : its close price is lower that its open price. bullish : close is higher that open.

PS. what's highestshort and lowestshort ?

Lowestshort:

If there are more than a view open-sell-positions so will be the lowestshort the price of the lowest sell-position.

489