Posted By: sdelatorre
Pending trades - 08/06/18 22:00
Hi,
How can I cancel all pending trades of the current asset ?
I tried:
int close_long(){
if (TradeProfit>0){
string CurrentAsset=Asset;
for(open_trades)
if(strstr(Asset,CurrentAsset)
&& TradeIsPending )
{cancelTrade(0);}
}
return 0;
And when I opne a Long :
openLong(close_long)
but it doesn'r work.
Any idea.
Thanks in advance
How can I cancel all pending trades of the current asset ?
I tried:
int close_long(){
if (TradeProfit>0){
string CurrentAsset=Asset;
for(open_trades)
if(strstr(Asset,CurrentAsset)
&& TradeIsPending )
{cancelTrade(0);}
}
return 0;
And when I opne a Long :
openLong(close_long)
but it doesn'r work.
Any idea.
Thanks in advance