Pending trades

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
Posted By: jcl

Re: Pending trades - 08/20/18 08:44

For closing the selected trade, use exitTrade(ThisTrade).

http://manual.zorro-project.com/sellong.htm
© 2024 lite-C Forums