@ Happy singh ji.
i tried it....
is it ok now....?
Buy =H < EMA(C, 3) ;
Sell = L > EMA(C, 3);
Filter = Buy OR Sell ;
AddColumn( IIf(Buy==1,BuyPrice,Null), "buy" );
AddColumn( IIf(Sell==1,SellPrice,Null), "sell"
i tried it....
is it ok now....?
Buy =H < EMA(C, 3) ;
Sell = L > EMA(C, 3);
Filter = Buy OR Sell ;
AddColumn( IIf(Buy==1,BuyPrice,Null), "buy" );
AddColumn( IIf(Sell==1,SellPrice,Null), "sell"
Code:
EMAdelay = 1;
Buy = H < Ref( EMA( C, 3 ), -EMAdelay );
Sell = L > Ref( EMA( C, 3 ), -EMAdelay );
// remove excessive signals
//Buy = ExRem( Buy, Sell );
//Sell = ExRem( Sell, Buy );
Filter = Buy OR Sell;
format = 1.2;
AddColumn( IIf( Buy, BuyPrice, Null ), "buy", format );
AddColumn( IIf( Sell, SellPrice, Null ), "sell", format );