I am trying to run a custom function when We get buy signal. But could not figure out how to do it.
The crude logic is something like this.
Buy = (condition for buy)
Sell = (condition for Sell)
Buy=ExRem(Buy,Sell); ( avoid multiple signals showing)
Sell=ExRem(Sell,Buy);
if(Buy)
{
myfunction_1();
}
if(Sell)
{
myfunction_2();
}
I want these functions called only once when the buy or sell signal arrives.
I am totally stuck.
Thanks
The crude logic is something like this.
Buy = (condition for buy)
Sell = (condition for Sell)
Buy=ExRem(Buy,Sell); ( avoid multiple signals showing)
Sell=ExRem(Sell,Buy);
if(Buy)
{
myfunction_1();
}
if(Sell)
{
myfunction_2();
}
I want these functions called only once when the buy or sell signal arrives.
I am totally stuck.
Thanks