Hi,
Thanks for the reply. Can you please update the file and send me as I have tried that as well and it doesn't work.
I have printed the prices on the console too and band upper price is above the market price.
Bid Price 21877.25
Band Upper price 21882.3570079829
This is for the NQ futrures
if (pos.MarketPosition == MarketPosition.Long)
{
Print(GetCurrentBid() + " " + band.Upper[0]);
AtmStrategyChangeStopTarget(0, band.Upper[0], "TARGET1", atmStrategyId);
//AtmStrategyChangeStopTarget(0, band.Lower[0], "Target1", atmStrategyId);
}
else
{
Print(GetCurrentBid() + " " + band.Lower[0]);
AtmStrategyChangeStopTarget(0, band.Lower[0], "TARGET1", atmStrategyId);
//AtmStrategyChangeStopTarget(0, band.Upper[0], "Target1", atmStrategyId);
}

Comment