Hello All
Looking for a code to execute a trade on current bar/candlestick
Please advise.
Thanks,
Amit.
Hello Amit,
What do you mean exactly? Because trades ON MARKET (not pending ones) are only launched once at the end of the bar.
Hi Nicolas
Well, I want to trade on the ‘NOW’.
Trading on the ‘NEXT BAR’ is too late.
If there is news that move price significantly, I want to take advantage on that.
Waiting for the next bar is no good for the strategy.
Sorry it’s not possible unless you use pending orders like STOP or LIMIT ones. These kind of orders will be executed at the exact price you placed them but of course you’ll never know when they will be executed.