Need to set the stop price in a codeblack block to be based on the indicated at the entry bar. So, in Sell STOP or LIMIT, we can enter the price based on an indicator value. However, the values is based on current bar, not the Entry Bar, the bar number of the time the entry was made.
Can we have an "Entry Bar" option in thecodeblock SELL STOP or LIMIT qualifier exit?
Can we have an "Entry Bar" option in the
Rename
It may not apply in your use case, but when using Max Risk Percent sizing you can do this without any blocks. Look for this section in Preferences (F12) > Trading, set up your indicator and check (enable) Automatically issue a Stop Loss order.

If not using Max Risk Percent sizing, the closest we can get you with blocks is using one of the PriceComponent "indicators" (Low, Open, Close, AveragePriceOHLC, etc.) with the PowerPack condition "Price Compare to Entry Bar". Maybe Glitch can update that rule in the future to use any indicator.
If not using Max Risk Percent sizing, the closest we can get you with blocks is using one of the PriceComponent "indicators" (Low, Open, Close, AveragePriceOHLC, etc.) with the PowerPack condition "Price Compare to Entry Bar". Maybe Glitch can update that rule in the future to use any indicator.
We can tag this as a #FratureRequest, but Blocks will never be able to offer the full flexibility of a coded Strategy.
Your Response
Post
Edit Post
Login is required