Code: Select all
It works for me double UpandDown_slow = iCustom(_Symbol,_Period,"Up_and_Down",period+18,Arrow,ArrowSize,SIGNAL_BAR,clArrowBuy,clArrowSell,0,4);
I used the forth candle but is possible to work with the 3rd too.
I use as simple conditions :
if( UpandDown_slow>0.8
&& DontTrade==false && OrdersTotal()<1 ) { //test3_fast<test3 && SMA1>UBB && Mom30<100
// Create a sell signal
signal = "sell";
double SELL_TP = Bid-TP_IN_PIPS*_Point;
double SELL_SL = Ask+TP_IN_PIPS*_Point;
}