Hi deepak, the logic is to 'check' if the system is in trade before adding/enforcing the stop. If system is neutral, then no stop. I dont know the code, but here are some thoughts >>Buy=Exrem (Buy, sell) will ensure once in BUY, no further BUY are signalled till there is a SELL. >> If system is in trade - flip a switch to 1, and then say use stop only if switch=1 maybe someone has a better idea or a few lines of code to implement this. best kazaan
2009/12/22 Deepak Patade <[email protected]> > Hi, > Can somebody help me in this > > Buy= diff>1.5 *AND* M1>1 *AND* M1<5; > > say above reurns the buy1 value as 5000 > > i want the stoploss as 20 points > > meaning buystoploss=buy-20 > > but when i write this i get all signals where buystoploss=buy-20 > > i want signal only/after the buy / sell signal is given. > > > > same for sell > > > > > > D > eepak Patade, > Nasik. > >
