Trades that are about to be Opened

Posted By: OptimusPrime

Trades that are about to be Opened - 04/12/19 22:47

Kind Sirs:

Am I correct that this condition will capture pending trades that have hit their entry price PLUS **pending trades that are "at market" orders ** ?

for(current_trades)
{
if (TradeIsPending && TradeIsEntry )
{
//....
}
}
Posted By: jcl

Re: Trades that are about to be Opened - 04/13/19 07:32

That would be (TradeIsPending || TradeIsEntry).
Posted By: OptimusPrime

Re: Trades that are about to be Opened - 04/13/19 11:46

Thank you, JCL. Oh yes, || ... Silly me. laugh

Thanks!
© 2024 lite-C Forums